Skip to content

Commit

Permalink
adapt 'stack_call' variable to support the storage of any type using …
Browse files Browse the repository at this point in the history
…'boost::any' type
  • Loading branch information
ahmed-BH committed Jun 16, 2018
1 parent 5e9a7c3 commit 67a3420
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 133 deletions.
2 changes: 1 addition & 1 deletion src/interpreter.l
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ comment ("/""*"+([\n\r]|[^"/*"])*"*"+"/")|("//".*[\n])
{pi} return PI;
{id} {sprintf(yylval.str,"%s",yytext);return ID; }
{real} {sscanf(yytext,"%lf",&yylval.real);return REAL; }
{integer} {sscanf(yytext,"%d",&yylval.integer);return INT; }
{integer} {sscanf(yytext,"%d",&yylval.integer);return INT; }
[\n] {line++; column = 1; line_content = "";}
[ \t\r]
. {char msg[yyleng+1]; sprintf(msg,"invalid syntax : '%s'", yytext); yyerror(msg);}
Expand Down
Loading

0 comments on commit 67a3420

Please sign in to comment.