00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // G4UItokenNum.hh 00030 00031 #ifndef G4UItokenNum_hh 00032 #define G4UItokenNum_hh 1 00033 #include "globals.hh" 00034 00035 00036 enum tokenNum 00037 { 00038 NONE = 0, 00039 IDENTIFIER = 257, 00040 CONSTINT = 258, 00041 CONSTDOUBLE= 259, 00042 CONSTCHAR = 260, 00043 CONSTSTRING= 261, 00044 GT = 262, 00045 GE = 263, 00046 LT = 264, 00047 LE = 265, 00048 EQ = 266, 00049 NE = 267, 00050 //LOGICALNOT = 268, 00051 LOGICALOR = 269, 00052 LOGICALAND = 270, 00053 SCAREAMER = 33, 00054 LPAREN = 40, 00055 PLUS = 43, 00056 MINUS = 45 00057 }; 00058 00059 00060 typedef struct yystype 00061 { 00062 tokenNum type; 00063 G4double D; 00064 G4int I; 00065 char C; 00066 G4String S; 00067 00068 yystype() : type(NONE), D(0.0), I(0), C(' '), S("") 00069 { 00070 } 00071 G4int operator==(const yystype& right) const 00072 { 00073 return (this == &right)?1:0; 00074 } 00075 yystype& operator=(const yystype& right) 00076 { 00077 if (&right==this) return *this; 00078 type = right.type; 00079 D = right.D; 00080 I = right.I; 00081 C = right.C; 00082 S = right.S; 00083 return *this; 00084 } 00085 yystype(const yystype& right) 00086 { 00087 *this=right; 00088 } 00089 } yystype; 00090 00091 #endif