Get rid of DOTS.

This commit is contained in:
Stefano Sanfilippo 2014-11-23 22:33:50 +01:00
parent ae7920d5dd
commit cad818d33b
2 changed files with 2 additions and 5 deletions

View File

@ -147,9 +147,6 @@ CHAR [a-zA-Z_]
"O scherziamo?" { "O scherziamo?" {
return CASE_END; return CASE_END;
} }
"..." {
return DOTS;
}
[ \t\f\v] {} [ \t\f\v] {}

View File

@ -20,7 +20,7 @@ extern void emit(const char *, ...);
%token ASSERT_BEGIN ASSERT_END %token ASSERT_BEGIN ASSERT_END
%token LOOP_BEGIN LOOP_CONDITION %token LOOP_BEGIN LOOP_CONDITION
%token BRANCH_CONDITION BRANCH_BEGIN BRANCH_ELSE BRANCH_END CASE_END %token BRANCH_CONDITION BRANCH_BEGIN BRANCH_ELSE BRANCH_END CASE_END
%token COLON COMMA DOTS %token COLON COMMA
%token FUNDECL PARAMS FUNCALL %token FUNDECL PARAMS FUNCALL
%token ABORT %token ABORT
%token ID NUMBER FLOAT %token ID NUMBER FLOAT
@ -55,7 +55,7 @@ args:
/* epsilon */ | PARAMS arglist /* epsilon */ | PARAMS arglist
; ;
arglist: arglist:
ID | ID DOTS arglist ID | ID arglist
; ;
main: main:
MAIN statements MAIN statements