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:
Wolfgang E. Sanyer
2016-05-07 13:40:35 -04:00
committed by wmayer
parent a2fc92970d
commit 4f264cff28
4 changed files with 715 additions and 750 deletions

View File

@@ -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