Allow dotted identifiers
This commit is contained in:
parent
a7edad1e66
commit
5886dcd8ff
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
deelang
|
||||
*.o
|
||||
parser.h
|
||||
lexer.h
|
2
lexer.l
2
lexer.l
@ -39,7 +39,7 @@ if return IF;
|
||||
else return ELSE;
|
||||
elif return ELIF;
|
||||
{digit}+|{digit}*\.{digit}+ yylval.num = atof(yytext); return NUM;
|
||||
{letter}({letter}|{digit}|[?-])* yylval.sym = yytext; return ID;
|
||||
{letter}({letter}|{digit}|[?.-])* yylval.sym = yytext; return ID;
|
||||
"<-" return GETS;
|
||||
"->" return MAPS;
|
||||
[(){}.,*/+-] return yytext[0];
|
||||
|
Loading…
Reference in New Issue
Block a user