add generated code chnages, remove unused file and add bison *.output to gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,6 +16,7 @@
|
||||
*.manifest
|
||||
*.o
|
||||
*.orig
|
||||
*.output
|
||||
qrc_*.cpp
|
||||
BuildLog.htm
|
||||
cmake_install.cmake
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8587,6 +8587,13 @@ char *yytext;
|
||||
|
||||
/* Lexer for the FreeCAD Expression language */
|
||||
|
||||
/* use this file to generate the file 'lex.ExpressionParser.c' using the program flex
|
||||
* the command for this operation is:
|
||||
* flex --outfile=lex.ExpressionParser.c ExpressionParser.l
|
||||
* (flex for Windows is available here:
|
||||
* https://sourceforge.net/projects/winflexbison/
|
||||
* (you must then change 'flex' to 'win_flex' in the command)) */
|
||||
|
||||
/* This disables inclusion of unistd.h, which is not available under Visual C++
|
||||
* on Win32. The C++ scanner uses STL streams instead. */
|
||||
#define YY_NO_UNISTD_H
|
||||
@@ -8601,13 +8608,14 @@ extern int column;
|
||||
|
||||
#define COUNTCHARS do { last_column = column; column += yyleng; } while (0)
|
||||
|
||||
#line 8604 "lex.ExpressionParser.c"
|
||||
#line 8611 "lex.ExpressionParser.c"
|
||||
/*** Flex Declarations and Options ***/
|
||||
/* change the name of the scanner class. */
|
||||
/* the manual says "somewhat more optimized" */
|
||||
/* no support for include files is planned */
|
||||
/* UTF-8 unicode regular expressions. */
|
||||
#line 8610 "lex.ExpressionParser.c"
|
||||
/* http://www.unicode.org/reports/tr44/#General_Category_Values */
|
||||
#line 8618 "lex.ExpressionParser.c"
|
||||
|
||||
#define INITIAL 0
|
||||
|
||||
@@ -8822,10 +8830,10 @@ YY_DECL
|
||||
}
|
||||
|
||||
{
|
||||
#line 162 "ExpressionParser.l"
|
||||
#line 170 "ExpressionParser.l"
|
||||
|
||||
|
||||
#line 8828 "lex.ExpressionParser.c"
|
||||
#line 8836 "lex.ExpressionParser.c"
|
||||
|
||||
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
|
||||
{
|
||||
@@ -8880,689 +8888,689 @@ do_action: /* This label is used only to access EOF actions. */
|
||||
|
||||
case 1:
|
||||
YY_RULE_SETUP
|
||||
#line 164 "ExpressionParser.l"
|
||||
#line 172 "ExpressionParser.l"
|
||||
COUNTCHARS;
|
||||
YY_BREAK
|
||||
case 2:
|
||||
/* rule 2 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 165 "ExpressionParser.l"
|
||||
#line 173 "ExpressionParser.l"
|
||||
column = 0;
|
||||
YY_BREAK
|
||||
case 3:
|
||||
/* rule 3 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 167 "ExpressionParser.l"
|
||||
#line 175 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.string = unquote(yytext); return STRING;
|
||||
YY_BREAK
|
||||
case 4:
|
||||
YY_RULE_SETUP
|
||||
#line 169 "ExpressionParser.l"
|
||||
#line 177 "ExpressionParser.l"
|
||||
COUNTCHARS; return *yytext;
|
||||
YY_BREAK
|
||||
case 5:
|
||||
YY_RULE_SETUP
|
||||
#line 171 "ExpressionParser.l"
|
||||
#line 179 "ExpressionParser.l"
|
||||
COUNTCHARS; return EQ;
|
||||
YY_BREAK
|
||||
case 6:
|
||||
YY_RULE_SETUP
|
||||
#line 172 "ExpressionParser.l"
|
||||
#line 180 "ExpressionParser.l"
|
||||
COUNTCHARS; return NEQ;
|
||||
YY_BREAK
|
||||
case 7:
|
||||
YY_RULE_SETUP
|
||||
#line 173 "ExpressionParser.l"
|
||||
#line 181 "ExpressionParser.l"
|
||||
COUNTCHARS; return GT;
|
||||
YY_BREAK
|
||||
case 8:
|
||||
YY_RULE_SETUP
|
||||
#line 174 "ExpressionParser.l"
|
||||
#line 182 "ExpressionParser.l"
|
||||
COUNTCHARS; return LT;
|
||||
YY_BREAK
|
||||
case 9:
|
||||
YY_RULE_SETUP
|
||||
#line 175 "ExpressionParser.l"
|
||||
#line 183 "ExpressionParser.l"
|
||||
COUNTCHARS; return GTE;
|
||||
YY_BREAK
|
||||
case 10:
|
||||
YY_RULE_SETUP
|
||||
#line 176 "ExpressionParser.l"
|
||||
#line 184 "ExpressionParser.l"
|
||||
COUNTCHARS; return LTE;
|
||||
YY_BREAK
|
||||
case 11:
|
||||
YY_RULE_SETUP
|
||||
#line 178 "ExpressionParser.l"
|
||||
#line 186 "ExpressionParser.l"
|
||||
COUNTCHARS; return MINUSSIGN;
|
||||
YY_BREAK
|
||||
case 12:
|
||||
YY_RULE_SETUP
|
||||
#line 179 "ExpressionParser.l"
|
||||
#line 187 "ExpressionParser.l"
|
||||
COUNTCHARS; return MINUSSIGN;
|
||||
YY_BREAK
|
||||
case 13:
|
||||
YY_RULE_SETUP
|
||||
#line 181 "ExpressionParser.l"
|
||||
#line 189 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::NanoMetre; yylval.quantity.unitStr = yytext; return UNIT; // nano meter
|
||||
YY_BREAK
|
||||
case 14:
|
||||
YY_RULE_SETUP
|
||||
#line 182 "ExpressionParser.l"
|
||||
#line 190 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroMetre; yylval.quantity.unitStr = yytext; return UNIT; // micro meter
|
||||
YY_BREAK
|
||||
case 15:
|
||||
YY_RULE_SETUP
|
||||
#line 183 "ExpressionParser.l"
|
||||
#line 191 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroMetre; yylval.quantity.unitStr = yytext; return UNIT; // micro meter (greek micro in UTF8)
|
||||
YY_BREAK
|
||||
case 16:
|
||||
YY_RULE_SETUP
|
||||
#line 184 "ExpressionParser.l"
|
||||
#line 192 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliMetre; yylval.quantity.unitStr = yytext; return UNIT; // milli meter (internal standard length)
|
||||
YY_BREAK
|
||||
case 17:
|
||||
YY_RULE_SETUP
|
||||
#line 185 "ExpressionParser.l"
|
||||
#line 193 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::CentiMetre; yylval.quantity.unitStr = yytext; return UNIT; // centi meter
|
||||
YY_BREAK
|
||||
case 18:
|
||||
YY_RULE_SETUP
|
||||
#line 186 "ExpressionParser.l"
|
||||
#line 194 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::DeciMetre; yylval.quantity.unitStr = yytext; return UNIT; // deci meter
|
||||
YY_BREAK
|
||||
case 19:
|
||||
YY_RULE_SETUP
|
||||
#line 187 "ExpressionParser.l"
|
||||
#line 195 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Metre; yylval.quantity.unitStr = yytext; return UNIT; // Metre
|
||||
YY_BREAK
|
||||
case 20:
|
||||
YY_RULE_SETUP
|
||||
#line 188 "ExpressionParser.l"
|
||||
#line 196 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloMetre; yylval.quantity.unitStr = yytext; return UNIT; // kilo meter
|
||||
YY_BREAK
|
||||
case 21:
|
||||
YY_RULE_SETUP
|
||||
#line 190 "ExpressionParser.l"
|
||||
#line 198 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Liter; yylval.quantity.unitStr = yytext; return UNIT; // Liter dm^3
|
||||
YY_BREAK
|
||||
case 22:
|
||||
YY_RULE_SETUP
|
||||
#line 191 "ExpressionParser.l"
|
||||
#line 199 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliLiter; yylval.quantity.unitStr = yytext; return UNIT; // milli Liter
|
||||
YY_BREAK
|
||||
case 23:
|
||||
YY_RULE_SETUP
|
||||
#line 193 "ExpressionParser.l"
|
||||
#line 201 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Hertz; yylval.quantity.unitStr = yytext; return UNIT; // Hertz
|
||||
YY_BREAK
|
||||
case 24:
|
||||
YY_RULE_SETUP
|
||||
#line 194 "ExpressionParser.l"
|
||||
#line 202 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloHertz; yylval.quantity.unitStr = yytext; return UNIT; // kilo Hertz
|
||||
YY_BREAK
|
||||
case 25:
|
||||
YY_RULE_SETUP
|
||||
#line 195 "ExpressionParser.l"
|
||||
#line 203 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaHertz; yylval.quantity.unitStr = yytext; return UNIT; // mega Hertz
|
||||
YY_BREAK
|
||||
case 26:
|
||||
YY_RULE_SETUP
|
||||
#line 196 "ExpressionParser.l"
|
||||
#line 204 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::GigaHertz; yylval.quantity.unitStr = yytext; return UNIT; // giga Hertz
|
||||
YY_BREAK
|
||||
case 27:
|
||||
YY_RULE_SETUP
|
||||
#line 197 "ExpressionParser.l"
|
||||
#line 205 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::TeraHertz; yylval.quantity.unitStr = yytext; return UNIT; // tera Hertz
|
||||
YY_BREAK
|
||||
case 28:
|
||||
YY_RULE_SETUP
|
||||
#line 199 "ExpressionParser.l"
|
||||
#line 207 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroGram; yylval.quantity.unitStr = yytext; return UNIT; // micro gram
|
||||
YY_BREAK
|
||||
case 29:
|
||||
YY_RULE_SETUP
|
||||
#line 200 "ExpressionParser.l"
|
||||
#line 208 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroGram; yylval.quantity.unitStr = yytext; return UNIT; // micro gram
|
||||
YY_BREAK
|
||||
case 30:
|
||||
YY_RULE_SETUP
|
||||
#line 201 "ExpressionParser.l"
|
||||
#line 209 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliGram; yylval.quantity.unitStr = yytext; return UNIT; // milli gram
|
||||
YY_BREAK
|
||||
case 31:
|
||||
YY_RULE_SETUP
|
||||
#line 202 "ExpressionParser.l"
|
||||
#line 210 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Gram; yylval.quantity.unitStr = yytext; return UNIT; // gram
|
||||
YY_BREAK
|
||||
case 32:
|
||||
YY_RULE_SETUP
|
||||
#line 203 "ExpressionParser.l"
|
||||
#line 211 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloGram; yylval.quantity.unitStr = yytext; return UNIT; // kilo gram (internal standard for mass)
|
||||
YY_BREAK
|
||||
case 33:
|
||||
YY_RULE_SETUP
|
||||
#line 204 "ExpressionParser.l"
|
||||
#line 212 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Ton; yylval.quantity.unitStr = yytext; return UNIT; // Metric Tonne
|
||||
YY_BREAK
|
||||
case 34:
|
||||
YY_RULE_SETUP
|
||||
#line 206 "ExpressionParser.l"
|
||||
#line 214 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Second; yylval.quantity.unitStr = yytext; return UNIT; // second (internal standard time)
|
||||
YY_BREAK
|
||||
case 35:
|
||||
YY_RULE_SETUP
|
||||
#line 207 "ExpressionParser.l"
|
||||
#line 215 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Minute; yylval.quantity.unitStr = yytext; return UNIT; // minute
|
||||
YY_BREAK
|
||||
case 36:
|
||||
YY_RULE_SETUP
|
||||
#line 208 "ExpressionParser.l"
|
||||
#line 216 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Hour; yylval.quantity.unitStr = yytext; return UNIT; // hour
|
||||
YY_BREAK
|
||||
case 37:
|
||||
YY_RULE_SETUP
|
||||
#line 210 "ExpressionParser.l"
|
||||
#line 218 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Ampere; yylval.quantity.unitStr = yytext; return UNIT; // Ampere (internal standard electric current)
|
||||
YY_BREAK
|
||||
case 38:
|
||||
YY_RULE_SETUP
|
||||
#line 211 "ExpressionParser.l"
|
||||
#line 219 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliAmpere; yylval.quantity.unitStr = yytext; return UNIT; // milli Ampere
|
||||
YY_BREAK
|
||||
case 39:
|
||||
YY_RULE_SETUP
|
||||
#line 212 "ExpressionParser.l"
|
||||
#line 220 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloAmpere; yylval.quantity.unitStr = yytext; return UNIT; // kilo Ampere
|
||||
YY_BREAK
|
||||
case 40:
|
||||
YY_RULE_SETUP
|
||||
#line 213 "ExpressionParser.l"
|
||||
#line 221 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaAmpere; yylval.quantity.unitStr = yytext; return UNIT; // mega Ampere
|
||||
YY_BREAK
|
||||
case 41:
|
||||
YY_RULE_SETUP
|
||||
#line 215 "ExpressionParser.l"
|
||||
#line 223 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Kelvin; yylval.quantity.unitStr = yytext; return UNIT; // Kelvin (internal standard thermodynamic temperature)
|
||||
YY_BREAK
|
||||
case 42:
|
||||
YY_RULE_SETUP
|
||||
#line 216 "ExpressionParser.l"
|
||||
#line 224 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliKelvin; yylval.quantity.unitStr = yytext; return UNIT; // milli Kelvin
|
||||
YY_BREAK
|
||||
case 43:
|
||||
YY_RULE_SETUP
|
||||
#line 217 "ExpressionParser.l"
|
||||
#line 225 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroKelvin; yylval.quantity.unitStr = yytext; return UNIT; // micro Kelvin
|
||||
YY_BREAK
|
||||
case 44:
|
||||
YY_RULE_SETUP
|
||||
#line 218 "ExpressionParser.l"
|
||||
#line 226 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroKelvin; yylval.quantity.unitStr = yytext; return UNIT; // micro Kelvin
|
||||
YY_BREAK
|
||||
case 45:
|
||||
YY_RULE_SETUP
|
||||
#line 220 "ExpressionParser.l"
|
||||
#line 228 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Mole; yylval.quantity.unitStr = yytext; return UNIT; // Mole (internal standard amount of substance)
|
||||
YY_BREAK
|
||||
case 46:
|
||||
YY_RULE_SETUP
|
||||
#line 221 "ExpressionParser.l"
|
||||
#line 229 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliMole; yylval.quantity.unitStr = yytext; return UNIT; // milli Mole
|
||||
YY_BREAK
|
||||
case 47:
|
||||
YY_RULE_SETUP
|
||||
#line 223 "ExpressionParser.l"
|
||||
#line 231 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Candela; yylval.quantity.unitStr = yytext; return UNIT; // Candela (internal standard luminous intensity)
|
||||
YY_BREAK
|
||||
case 48:
|
||||
YY_RULE_SETUP
|
||||
#line 225 "ExpressionParser.l"
|
||||
#line 233 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Inch; yylval.quantity.unitStr = yytext; return UNIT; // inch
|
||||
YY_BREAK
|
||||
case 49:
|
||||
YY_RULE_SETUP
|
||||
#line 226 "ExpressionParser.l"
|
||||
#line 234 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Inch; yylval.quantity.unitStr = yytext; return UNIT; // inch
|
||||
YY_BREAK
|
||||
case 50:
|
||||
YY_RULE_SETUP
|
||||
#line 227 "ExpressionParser.l"
|
||||
#line 235 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Foot; yylval.quantity.unitStr = yytext; return UNIT; // foot
|
||||
YY_BREAK
|
||||
case 51:
|
||||
YY_RULE_SETUP
|
||||
#line 228 "ExpressionParser.l"
|
||||
#line 236 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Foot; yylval.quantity.unitStr = yytext; return UNIT; // foot
|
||||
YY_BREAK
|
||||
case 52:
|
||||
YY_RULE_SETUP
|
||||
#line 229 "ExpressionParser.l"
|
||||
#line 237 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Thou; yylval.quantity.unitStr = yytext; return UNIT; // thou (in/1000)
|
||||
YY_BREAK
|
||||
case 53:
|
||||
YY_RULE_SETUP
|
||||
#line 230 "ExpressionParser.l"
|
||||
#line 238 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Thou; yylval.quantity.unitStr = yytext; return UNIT; // mil (the thou in US)
|
||||
YY_BREAK
|
||||
case 54:
|
||||
YY_RULE_SETUP
|
||||
#line 231 "ExpressionParser.l"
|
||||
#line 239 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Yard; yylval.quantity.unitStr = yytext; return UNIT; // yard
|
||||
YY_BREAK
|
||||
case 55:
|
||||
YY_RULE_SETUP
|
||||
#line 232 "ExpressionParser.l"
|
||||
#line 240 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Mile; yylval.quantity.unitStr = yytext; return UNIT; // mile
|
||||
YY_BREAK
|
||||
case 56:
|
||||
YY_RULE_SETUP
|
||||
#line 234 "ExpressionParser.l"
|
||||
#line 242 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilePerHour; yylval.quantity.unitStr = yytext; return UNIT; // mile per hour
|
||||
YY_BREAK
|
||||
case 57:
|
||||
YY_RULE_SETUP
|
||||
#line 235 "ExpressionParser.l"
|
||||
#line 243 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::SquareFoot; yylval.quantity.unitStr = yytext; return UNIT; // square foot
|
||||
YY_BREAK
|
||||
case 58:
|
||||
YY_RULE_SETUP
|
||||
#line 236 "ExpressionParser.l"
|
||||
#line 244 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::CubicFoot; yylval.quantity.unitStr = yytext; return UNIT; // cubic foot
|
||||
YY_BREAK
|
||||
case 59:
|
||||
YY_RULE_SETUP
|
||||
#line 238 "ExpressionParser.l"
|
||||
#line 246 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Pound; yylval.quantity.unitStr = yytext; return UNIT; // pound
|
||||
YY_BREAK
|
||||
case 60:
|
||||
YY_RULE_SETUP
|
||||
#line 239 "ExpressionParser.l"
|
||||
#line 247 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Pound; yylval.quantity.unitStr = yytext; return UNIT; // pound
|
||||
YY_BREAK
|
||||
case 61:
|
||||
YY_RULE_SETUP
|
||||
#line 240 "ExpressionParser.l"
|
||||
#line 248 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Ounce; yylval.quantity.unitStr = yytext; return UNIT; // ounce
|
||||
YY_BREAK
|
||||
case 62:
|
||||
YY_RULE_SETUP
|
||||
#line 241 "ExpressionParser.l"
|
||||
#line 249 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Stone; yylval.quantity.unitStr = yytext; return UNIT; // Stone
|
||||
YY_BREAK
|
||||
case 63:
|
||||
YY_RULE_SETUP
|
||||
#line 242 "ExpressionParser.l"
|
||||
#line 250 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Hundredweights; yylval.quantity.unitStr = yytext; return UNIT; // hundredweights
|
||||
YY_BREAK
|
||||
case 64:
|
||||
YY_RULE_SETUP
|
||||
#line 244 "ExpressionParser.l"
|
||||
#line 252 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::PoundForce; yylval.quantity.unitStr = yytext; return UNIT; // pound
|
||||
YY_BREAK
|
||||
case 65:
|
||||
YY_RULE_SETUP
|
||||
#line 246 "ExpressionParser.l"
|
||||
#line 254 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Newton; yylval.quantity.unitStr = yytext; return UNIT; // Newton (kg*m/s^2)a-za-za-z
|
||||
YY_BREAK
|
||||
case 66:
|
||||
YY_RULE_SETUP
|
||||
#line 247 "ExpressionParser.l"
|
||||
#line 255 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliNewton; yylval.quantity.unitStr = yytext; return UNIT; // milli Newton
|
||||
YY_BREAK
|
||||
case 67:
|
||||
YY_RULE_SETUP
|
||||
#line 248 "ExpressionParser.l"
|
||||
#line 256 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloNewton; yylval.quantity.unitStr = yytext; return UNIT; // kilo Newton
|
||||
YY_BREAK
|
||||
case 68:
|
||||
YY_RULE_SETUP
|
||||
#line 249 "ExpressionParser.l"
|
||||
#line 257 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaNewton; yylval.quantity.unitStr = yytext; return UNIT; // mega Newton
|
||||
YY_BREAK
|
||||
case 69:
|
||||
YY_RULE_SETUP
|
||||
#line 251 "ExpressionParser.l"
|
||||
#line 259 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Pascal; yylval.quantity.unitStr = yytext; return UNIT; // Pascal (kg/m*s^2 or N/m^2)
|
||||
YY_BREAK
|
||||
case 70:
|
||||
YY_RULE_SETUP
|
||||
#line 252 "ExpressionParser.l"
|
||||
#line 260 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloPascal; yylval.quantity.unitStr = yytext; return UNIT; // kilo Pascal
|
||||
YY_BREAK
|
||||
case 71:
|
||||
YY_RULE_SETUP
|
||||
#line 253 "ExpressionParser.l"
|
||||
#line 261 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaPascal; yylval.quantity.unitStr = yytext; return UNIT; // mega Pascal
|
||||
YY_BREAK
|
||||
case 72:
|
||||
YY_RULE_SETUP
|
||||
#line 254 "ExpressionParser.l"
|
||||
#line 262 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::GigaPascal; yylval.quantity.unitStr = yytext; return UNIT; // giga Pascal
|
||||
YY_BREAK
|
||||
case 73:
|
||||
YY_RULE_SETUP
|
||||
#line 256 "ExpressionParser.l"
|
||||
#line 264 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Bar; yylval.quantity.unitStr = yytext; return UNIT; // Bar
|
||||
YY_BREAK
|
||||
case 74:
|
||||
YY_RULE_SETUP
|
||||
#line 257 "ExpressionParser.l"
|
||||
#line 265 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliBar; yylval.quantity.unitStr = yytext; return UNIT; // milli Bar
|
||||
YY_BREAK
|
||||
case 75:
|
||||
YY_RULE_SETUP
|
||||
#line 259 "ExpressionParser.l"
|
||||
#line 267 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Torr; yylval.quantity.unitStr = yytext; return UNIT; // portion of Pascal ( 101325/760 )
|
||||
YY_BREAK
|
||||
case 76:
|
||||
YY_RULE_SETUP
|
||||
#line 260 "ExpressionParser.l"
|
||||
#line 268 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::mTorr; yylval.quantity.unitStr = yytext; return UNIT; //
|
||||
YY_BREAK
|
||||
case 77:
|
||||
YY_RULE_SETUP
|
||||
#line 261 "ExpressionParser.l"
|
||||
#line 269 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::yTorr; yylval.quantity.unitStr = yytext; return UNIT; //
|
||||
YY_BREAK
|
||||
case 78:
|
||||
YY_RULE_SETUP
|
||||
#line 262 "ExpressionParser.l"
|
||||
#line 270 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::yTorr; yylval.quantity.unitStr = yytext; return UNIT; //
|
||||
YY_BREAK
|
||||
case 79:
|
||||
YY_RULE_SETUP
|
||||
#line 264 "ExpressionParser.l"
|
||||
#line 272 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::PSI; yylval.quantity.unitStr = yytext; return UNIT; // pounds/in^2
|
||||
YY_BREAK
|
||||
case 80:
|
||||
YY_RULE_SETUP
|
||||
#line 265 "ExpressionParser.l"
|
||||
#line 273 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KSI; yylval.quantity.unitStr = yytext; return UNIT; // 1000 x pounds/in^2
|
||||
YY_BREAK
|
||||
case 81:
|
||||
YY_RULE_SETUP
|
||||
#line 266 "ExpressionParser.l"
|
||||
#line 274 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MPSI; yylval.quantity.unitStr = yytext; return UNIT; // 1000 ksi
|
||||
YY_BREAK
|
||||
case 82:
|
||||
YY_RULE_SETUP
|
||||
#line 268 "ExpressionParser.l"
|
||||
#line 276 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Watt; yylval.quantity.unitStr = yytext; return UNIT; // Watt (kg*m^2/s^3)
|
||||
YY_BREAK
|
||||
case 83:
|
||||
YY_RULE_SETUP
|
||||
#line 269 "ExpressionParser.l"
|
||||
#line 277 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliWatt; yylval.quantity.unitStr = yytext; return UNIT; // milli Watt
|
||||
YY_BREAK
|
||||
case 84:
|
||||
YY_RULE_SETUP
|
||||
#line 270 "ExpressionParser.l"
|
||||
#line 278 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloWatt; yylval.quantity.unitStr = yytext; return UNIT; // kilo Watt
|
||||
YY_BREAK
|
||||
case 85:
|
||||
YY_RULE_SETUP
|
||||
#line 271 "ExpressionParser.l"
|
||||
#line 279 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::VoltAmpere; yylval.quantity.unitStr = yytext; return UNIT; // VoltAmpere (kg*m^2/s^3)
|
||||
YY_BREAK
|
||||
case 86:
|
||||
YY_RULE_SETUP
|
||||
#line 273 "ExpressionParser.l"
|
||||
#line 281 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Volt; yylval.quantity.unitStr = yytext; return UNIT; // Volt (kg*m^2/A/s^3)
|
||||
YY_BREAK
|
||||
case 87:
|
||||
YY_RULE_SETUP
|
||||
#line 274 "ExpressionParser.l"
|
||||
#line 282 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloVolt; yylval.quantity.unitStr = yytext; return UNIT; // kilo Volt
|
||||
YY_BREAK
|
||||
case 88:
|
||||
YY_RULE_SETUP
|
||||
#line 275 "ExpressionParser.l"
|
||||
#line 283 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliVolt; yylval.quantity.unitStr = yytext; return UNIT; // milli Volt
|
||||
YY_BREAK
|
||||
case 89:
|
||||
YY_RULE_SETUP
|
||||
#line 277 "ExpressionParser.l"
|
||||
#line 285 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaSiemens; yylval.quantity.unitStr = yytext; return UNIT; // mega Siemens
|
||||
YY_BREAK
|
||||
case 90:
|
||||
YY_RULE_SETUP
|
||||
#line 278 "ExpressionParser.l"
|
||||
#line 286 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloSiemens; yylval.quantity.unitStr = yytext; return UNIT; // kilo Siemens
|
||||
YY_BREAK
|
||||
case 91:
|
||||
YY_RULE_SETUP
|
||||
#line 279 "ExpressionParser.l"
|
||||
#line 287 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Siemens; yylval.quantity.unitStr = yytext; return UNIT; // Siemens (A^2*s^3/kg/m^2)
|
||||
YY_BREAK
|
||||
case 92:
|
||||
YY_RULE_SETUP
|
||||
#line 280 "ExpressionParser.l"
|
||||
#line 288 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliSiemens; yylval.quantity.unitStr = yytext; return UNIT; // milli Siemens
|
||||
YY_BREAK
|
||||
case 93:
|
||||
YY_RULE_SETUP
|
||||
#line 281 "ExpressionParser.l"
|
||||
#line 289 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroSiemens; yylval.quantity.unitStr = yytext; return UNIT; // micro Siemens
|
||||
YY_BREAK
|
||||
case 94:
|
||||
YY_RULE_SETUP
|
||||
#line 282 "ExpressionParser.l"
|
||||
#line 290 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroSiemens; yylval.quantity.unitStr = yytext; return UNIT; // micro Siemens
|
||||
YY_BREAK
|
||||
case 95:
|
||||
YY_RULE_SETUP
|
||||
#line 284 "ExpressionParser.l"
|
||||
#line 292 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Ohm; yylval.quantity.unitStr = yytext; return UNIT; // Ohm (kg*m^2/A^2/s^3)
|
||||
YY_BREAK
|
||||
case 96:
|
||||
YY_RULE_SETUP
|
||||
#line 285 "ExpressionParser.l"
|
||||
#line 293 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloOhm; yylval.quantity.unitStr = yytext; return UNIT; // kilo Ohm
|
||||
YY_BREAK
|
||||
case 97:
|
||||
YY_RULE_SETUP
|
||||
#line 286 "ExpressionParser.l"
|
||||
#line 294 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaOhm; yylval.quantity.unitStr = yytext; return UNIT; // mega Ohm
|
||||
YY_BREAK
|
||||
case 98:
|
||||
YY_RULE_SETUP
|
||||
#line 288 "ExpressionParser.l"
|
||||
#line 296 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Coulomb; yylval.quantity.unitStr = yytext; return UNIT; // Coulomb (A*s)
|
||||
YY_BREAK
|
||||
case 99:
|
||||
YY_RULE_SETUP
|
||||
#line 290 "ExpressionParser.l"
|
||||
#line 298 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Tesla; yylval.quantity.unitStr = yytext; return UNIT; // Tesla (kg/s^2/A)
|
||||
YY_BREAK
|
||||
case 100:
|
||||
YY_RULE_SETUP
|
||||
#line 291 "ExpressionParser.l"
|
||||
#line 299 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Gauss; yylval.quantity.unitStr = yytext; return UNIT; // Gauss (1 G = 1e-4 T)
|
||||
YY_BREAK
|
||||
case 101:
|
||||
YY_RULE_SETUP
|
||||
#line 293 "ExpressionParser.l"
|
||||
#line 301 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Weber; yylval.quantity.unitStr = yytext; return UNIT; // Weber (kg*m^2/s^2/A)
|
||||
YY_BREAK
|
||||
case 102:
|
||||
YY_RULE_SETUP
|
||||
#line 295 "ExpressionParser.l"
|
||||
#line 303 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Farad; yylval.quantity.unitStr = yytext; return UNIT; // Farad (s^4*A^2/m^2/kg)
|
||||
YY_BREAK
|
||||
case 103:
|
||||
YY_RULE_SETUP
|
||||
#line 296 "ExpressionParser.l"
|
||||
#line 304 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliFarad; yylval.quantity.unitStr = yytext; return UNIT; // milli Farad
|
||||
YY_BREAK
|
||||
case 104:
|
||||
YY_RULE_SETUP
|
||||
#line 297 "ExpressionParser.l"
|
||||
#line 305 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroFarad; yylval.quantity.unitStr = yytext; return UNIT; // micro Farad
|
||||
YY_BREAK
|
||||
case 105:
|
||||
YY_RULE_SETUP
|
||||
#line 298 "ExpressionParser.l"
|
||||
#line 306 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroFarad; yylval.quantity.unitStr = yytext; return UNIT; // micro Farad
|
||||
YY_BREAK
|
||||
case 106:
|
||||
YY_RULE_SETUP
|
||||
#line 299 "ExpressionParser.l"
|
||||
#line 307 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::NanoFarad; yylval.quantity.unitStr = yytext; return UNIT; // nano Farad
|
||||
YY_BREAK
|
||||
case 107:
|
||||
YY_RULE_SETUP
|
||||
#line 300 "ExpressionParser.l"
|
||||
#line 308 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::PicoFarad; yylval.quantity.unitStr = yytext; return UNIT; // pico Farad
|
||||
YY_BREAK
|
||||
case 108:
|
||||
YY_RULE_SETUP
|
||||
#line 302 "ExpressionParser.l"
|
||||
#line 310 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Henry; yylval.quantity.unitStr = yytext; return UNIT; // Henry (kg*m^2/s^2/A^2)
|
||||
YY_BREAK
|
||||
case 109:
|
||||
YY_RULE_SETUP
|
||||
#line 303 "ExpressionParser.l"
|
||||
#line 311 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliHenry; yylval.quantity.unitStr = yytext; return UNIT; // milli Henry
|
||||
YY_BREAK
|
||||
case 110:
|
||||
YY_RULE_SETUP
|
||||
#line 304 "ExpressionParser.l"
|
||||
#line 312 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroHenry; yylval.quantity.unitStr = yytext; return UNIT; // micro Henry
|
||||
YY_BREAK
|
||||
case 111:
|
||||
YY_RULE_SETUP
|
||||
#line 305 "ExpressionParser.l"
|
||||
#line 313 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MicroHenry; yylval.quantity.unitStr = yytext; return UNIT; // micro Henry)
|
||||
YY_BREAK
|
||||
case 112:
|
||||
YY_RULE_SETUP
|
||||
#line 306 "ExpressionParser.l"
|
||||
#line 314 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::NanoHenry; yylval.quantity.unitStr = yytext; return UNIT; // nano Henry
|
||||
YY_BREAK
|
||||
case 113:
|
||||
YY_RULE_SETUP
|
||||
#line 308 "ExpressionParser.l"
|
||||
#line 316 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Joule; yylval.quantity.unitStr = yytext; return UNIT; // Joule (kg*m^2/s^2)
|
||||
YY_BREAK
|
||||
case 114:
|
||||
YY_RULE_SETUP
|
||||
#line 309 "ExpressionParser.l"
|
||||
#line 317 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MilliJoule; yylval.quantity.unitStr = yytext; return UNIT; // milli Joule
|
||||
YY_BREAK
|
||||
case 115:
|
||||
YY_RULE_SETUP
|
||||
#line 310 "ExpressionParser.l"
|
||||
#line 318 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloJoule; yylval.quantity.unitStr = yytext; return UNIT; // kilo Joule
|
||||
YY_BREAK
|
||||
case 116:
|
||||
YY_RULE_SETUP
|
||||
#line 311 "ExpressionParser.l"
|
||||
#line 319 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::NewtonMeter; yylval.quantity.unitStr = yytext; return UNIT; // N*m = Joule
|
||||
YY_BREAK
|
||||
case 117:
|
||||
YY_RULE_SETUP
|
||||
#line 312 "ExpressionParser.l"
|
||||
#line 320 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::VoltAmpereSecond; yylval.quantity.unitStr = yytext; return UNIT; // V*A*s = Joule
|
||||
YY_BREAK
|
||||
case 118:
|
||||
YY_RULE_SETUP
|
||||
#line 313 "ExpressionParser.l"
|
||||
#line 321 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::WattSecond; yylval.quantity.unitStr = yytext; return UNIT; //
|
||||
YY_BREAK
|
||||
case 119:
|
||||
YY_RULE_SETUP
|
||||
#line 314 "ExpressionParser.l"
|
||||
#line 322 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::WattSecond; yylval.quantity.unitStr = yytext; return UNIT; // W*s = Joule
|
||||
YY_BREAK
|
||||
case 120:
|
||||
YY_RULE_SETUP
|
||||
#line 315 "ExpressionParser.l"
|
||||
#line 323 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloWattHour; yylval.quantity.unitStr = yytext; return UNIT; // 1 kWh = 3.6e6 J
|
||||
YY_BREAK
|
||||
case 121:
|
||||
YY_RULE_SETUP
|
||||
#line 316 "ExpressionParser.l"
|
||||
#line 324 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::ElectronVolt; yylval.quantity.unitStr = yytext; return UNIT; // 1 eV = 1.602176634e-19 J
|
||||
YY_BREAK
|
||||
case 122:
|
||||
YY_RULE_SETUP
|
||||
#line 317 "ExpressionParser.l"
|
||||
#line 325 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloElectronVolt; yylval.quantity.unitStr = yytext; return UNIT;
|
||||
YY_BREAK
|
||||
case 123:
|
||||
YY_RULE_SETUP
|
||||
#line 318 "ExpressionParser.l"
|
||||
#line 326 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::MegaElectronVolt; yylval.quantity.unitStr = yytext; return UNIT;
|
||||
YY_BREAK
|
||||
case 124:
|
||||
YY_RULE_SETUP
|
||||
#line 319 "ExpressionParser.l"
|
||||
#line 327 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Calorie; yylval.quantity.unitStr = yytext; return UNIT; // 1 cal = 4.1868 J
|
||||
YY_BREAK
|
||||
case 125:
|
||||
YY_RULE_SETUP
|
||||
#line 320 "ExpressionParser.l"
|
||||
#line 328 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::KiloCalorie; yylval.quantity.unitStr = yytext; return UNIT;
|
||||
YY_BREAK
|
||||
case 126:
|
||||
YY_RULE_SETUP
|
||||
#line 322 "ExpressionParser.l"
|
||||
#line 330 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Degree; yylval.quantity.unitStr = yytext; return UNIT; // degree (internal standard angle)
|
||||
YY_BREAK
|
||||
case 127:
|
||||
YY_RULE_SETUP
|
||||
#line 323 "ExpressionParser.l"
|
||||
#line 331 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Degree; yylval.quantity.unitStr = yytext; return UNIT; // degree (internal standard angle)
|
||||
YY_BREAK
|
||||
case 128:
|
||||
YY_RULE_SETUP
|
||||
#line 324 "ExpressionParser.l"
|
||||
#line 332 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Radian; yylval.quantity.unitStr = yytext; return UNIT; // radian
|
||||
YY_BREAK
|
||||
case 129:
|
||||
YY_RULE_SETUP
|
||||
#line 325 "ExpressionParser.l"
|
||||
#line 333 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::Gon; yylval.quantity.unitStr = yytext; return UNIT; // gon
|
||||
YY_BREAK
|
||||
case 130:
|
||||
YY_RULE_SETUP
|
||||
#line 326 "ExpressionParser.l"
|
||||
#line 334 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::AngMinute; yylval.quantity.unitStr = yytext; return UNIT; // angminute
|
||||
YY_BREAK
|
||||
case 131:
|
||||
YY_RULE_SETUP
|
||||
#line 327 "ExpressionParser.l"
|
||||
#line 335 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::AngMinute; yylval.quantity.unitStr = yytext; return UNIT; // angminute U+2032 ′ ′ ′
|
||||
YY_BREAK
|
||||
case 132:
|
||||
YY_RULE_SETUP
|
||||
#line 328 "ExpressionParser.l"
|
||||
#line 336 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::AngSecond; yylval.quantity.unitStr = yytext; return UNIT; // angsecond
|
||||
YY_BREAK
|
||||
case 133:
|
||||
YY_RULE_SETUP
|
||||
#line 329 "ExpressionParser.l"
|
||||
#line 337 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.quantity.scaler = Quantity::AngSecond; yylval.quantity.unitStr = yytext; return UNIT; // angsecond U+2033 ″ ″ ″
|
||||
YY_BREAK
|
||||
case 134:
|
||||
YY_RULE_SETUP
|
||||
#line 331 "ExpressionParser.l"
|
||||
#line 339 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.fvalue = num_change(yytext,'.',','); return yylval.fvalue == 1 ? ONE : NUM;
|
||||
YY_BREAK
|
||||
case 135:
|
||||
YY_RULE_SETUP
|
||||
#line 332 "ExpressionParser.l"
|
||||
#line 340 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.fvalue = num_change(yytext,',','.'); return yylval.fvalue == 1 ? ONE : NUM;
|
||||
YY_BREAK
|
||||
case 136:
|
||||
YY_RULE_SETUP
|
||||
#line 333 "ExpressionParser.l"
|
||||
#line 341 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.fvalue = num_change(yytext,',','.'); return yylval.fvalue == 1 ? ONE : NUM;
|
||||
YY_BREAK
|
||||
case 137:
|
||||
YY_RULE_SETUP
|
||||
#line 334 "ExpressionParser.l"
|
||||
#line 342 "ExpressionParser.l"
|
||||
{ COUNTCHARS;
|
||||
yylval.ivalue = strtoll( yytext, NULL, 0 );
|
||||
if (yylval.ivalue == LLONG_MIN)
|
||||
@@ -9574,57 +9582,57 @@ YY_RULE_SETUP
|
||||
YY_BREAK
|
||||
case 138:
|
||||
YY_RULE_SETUP
|
||||
#line 343 "ExpressionParser.l"
|
||||
#line 351 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = M_PI; yylval.constant.name = "pi"; return CONSTANT; // constant pi
|
||||
YY_BREAK
|
||||
case 139:
|
||||
YY_RULE_SETUP
|
||||
#line 344 "ExpressionParser.l"
|
||||
#line 352 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = M_E; yylval.constant.name = "e"; return CONSTANT; // constant e
|
||||
YY_BREAK
|
||||
case 140:
|
||||
YY_RULE_SETUP
|
||||
#line 346 "ExpressionParser.l"
|
||||
#line 354 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = 0; yylval.constant.name = "None"; return CONSTANT;
|
||||
YY_BREAK
|
||||
case 141:
|
||||
YY_RULE_SETUP
|
||||
#line 347 "ExpressionParser.l"
|
||||
#line 355 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = 1; yylval.constant.name = "True"; return CONSTANT;
|
||||
YY_BREAK
|
||||
case 142:
|
||||
YY_RULE_SETUP
|
||||
#line 348 "ExpressionParser.l"
|
||||
#line 356 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = 1; yylval.constant.name = "True"; return CONSTANT;
|
||||
YY_BREAK
|
||||
case 143:
|
||||
YY_RULE_SETUP
|
||||
#line 349 "ExpressionParser.l"
|
||||
#line 357 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = 0; yylval.constant.name = "False"; return CONSTANT;
|
||||
YY_BREAK
|
||||
case 144:
|
||||
YY_RULE_SETUP
|
||||
#line 350 "ExpressionParser.l"
|
||||
#line 358 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.constant.fvalue = 0; yylval.constant.name = "False"; return CONSTANT;
|
||||
YY_BREAK
|
||||
case 145:
|
||||
YY_RULE_SETUP
|
||||
#line 352 "ExpressionParser.l"
|
||||
#line 360 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.string = yytext; return CELLADDRESS;
|
||||
YY_BREAK
|
||||
case 146:
|
||||
YY_RULE_SETUP
|
||||
#line 353 "ExpressionParser.l"
|
||||
#line 361 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.string = yytext; return CELLADDRESS;
|
||||
YY_BREAK
|
||||
case 147:
|
||||
YY_RULE_SETUP
|
||||
#line 354 "ExpressionParser.l"
|
||||
#line 362 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.string = yytext; return CELLADDRESS;
|
||||
YY_BREAK
|
||||
case 148:
|
||||
YY_RULE_SETUP
|
||||
#line 356 "ExpressionParser.l"
|
||||
#line 364 "ExpressionParser.l"
|
||||
{
|
||||
COUNTCHARS;
|
||||
std::string s = yytext;
|
||||
@@ -9642,15 +9650,15 @@ YY_RULE_SETUP
|
||||
YY_BREAK
|
||||
case 149:
|
||||
YY_RULE_SETUP
|
||||
#line 371 "ExpressionParser.l"
|
||||
#line 379 "ExpressionParser.l"
|
||||
COUNTCHARS; yylval.string = yytext; return IDENTIFIER;
|
||||
YY_BREAK
|
||||
case 150:
|
||||
YY_RULE_SETUP
|
||||
#line 372 "ExpressionParser.l"
|
||||
#line 380 "ExpressionParser.l"
|
||||
ECHO;
|
||||
YY_BREAK
|
||||
#line 9653 "lex.ExpressionParser.c"
|
||||
#line 9661 "lex.ExpressionParser.c"
|
||||
case YY_STATE_EOF(INITIAL):
|
||||
yyterminate();
|
||||
|
||||
@@ -10619,4 +10627,4 @@ void yyfree (void * ptr )
|
||||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 372 "ExpressionParser.l"
|
||||
#line 380 "ExpressionParser.l"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user