This commit is contained in:
parent
48629e2f3d
commit
e98f64c419
20 changed files with 1052 additions and 637 deletions
|
@ -8,6 +8,7 @@ Date: 07 December 2000
|
|||
|
||||
#include "parser.h"
|
||||
#include "var.h"
|
||||
#include "function.h"
|
||||
#include "prepro.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -78,11 +79,15 @@ print {return PRINT;}
|
|||
\) {return CLOSE_PAR;}
|
||||
\{ {return BEGIN_CS;}
|
||||
\} {return END_CS;}
|
||||
, {return COMMA;}
|
||||
|
||||
|
||||
\$[a-zA-Z_][a-zA-Z_0-9]* {yylval.variableIdx=lookupVarName(yytext+1);return VARIABLE;}
|
||||
[0-9]+ {yylval.value=atoi(yytext);return VALUE;}
|
||||
// \"[^\"]*\" {printf("s:%s\n",yytext);return STRING;}
|
||||
|
||||
_[a-zA-Z_][a-zA-Z_0-9]* {yylval.functionNumber=lookupFunctionName(yytext+1);return FUNCTION;}
|
||||
|
||||
\/\/.* {}
|
||||
[ \t]+ {}
|
||||
\n {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue