Bug fix for ID#0002453
Note that the version of Bison and Flex used to generate the two .c files are newer than in the last commit from 2010. Also,for anyine working on tbis in the future, dont forget to run flex and bison on the .l and .y files respectively.
This commit is contained in:
committed by
wmayer
parent
a2fc92970d
commit
4f264cff28
@@ -131,7 +131,9 @@ CGRP '\,'[0-9][0-9][0-9]
|
||||
"gon" yylval = Quantity::Gon; return UNIT; // gon
|
||||
|
||||
{DIGIT}+"."?{DIGIT}*{EXPO}? { yylval = num_change(yytext,'.',',');return NUM; }
|
||||
"."?{DIGIT}+{EXPO}? { yylval = num_change(yytext,'.',',');return NUM; }
|
||||
{DIGIT}+","?{DIGIT}*{EXPO}? { yylval = num_change(yytext,',','.');return NUM; }
|
||||
","?{DIGIT}+{EXPO}? { yylval = num_change(yytext,',','.');return NUM; }
|
||||
|
||||
|
||||
"pi" {yylval = M_PI ; return NUM;} // constant pi
|
||||
|
||||
Reference in New Issue
Block a user