Renaming ASSERT_BEGIN and ASSERT_END into ASSERT and BANG.
This commit is contained in:
parent
4cdde5025a
commit
9e12a95612
|
@ -108,10 +108,10 @@ CHAR [a-zA-Z_]
|
||||||
return INPUT;
|
return INPUT;
|
||||||
}
|
}
|
||||||
"ho visto" {
|
"ho visto" {
|
||||||
return ASSERT_BEGIN;
|
return ASSERT;
|
||||||
}
|
}
|
||||||
"!" {
|
"!" {
|
||||||
return ASSERT_END;
|
return BANG;
|
||||||
}
|
}
|
||||||
"stuzzica" {
|
"stuzzica" {
|
||||||
return LOOP_BEGIN;
|
return LOOP_BEGIN;
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern int yylex();
|
||||||
%token ARTICLE TYPENAME STAR
|
%token ARTICLE TYPENAME STAR
|
||||||
%token VARDECL ASSIGN
|
%token VARDECL ASSIGN
|
||||||
%token PRINT INPUT
|
%token PRINT INPUT
|
||||||
%token ASSERT_BEGIN ASSERT_END
|
%token ASSERT BANG
|
||||||
%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
|
%token COLON COMMA
|
||||||
|
@ -97,7 +97,7 @@ input_stmt:
|
||||||
INPUT variable
|
INPUT variable
|
||||||
;
|
;
|
||||||
return_stmt:
|
return_stmt:
|
||||||
RETURN ASSERT_END | RETURN expression ASSERT_END
|
RETURN BANG | RETURN expression BANG
|
||||||
;
|
;
|
||||||
loop_stmt:
|
loop_stmt:
|
||||||
LOOP_BEGIN statements LOOP_CONDITION expression
|
LOOP_BEGIN statements LOOP_CONDITION expression
|
||||||
|
@ -130,7 +130,7 @@ abort_stmt:
|
||||||
ABORT
|
ABORT
|
||||||
;
|
;
|
||||||
assert_stmt:
|
assert_stmt:
|
||||||
ASSERT_BEGIN expression ASSERT_END
|
ASSERT expression BANG
|
||||||
;
|
;
|
||||||
expression:
|
expression:
|
||||||
simple_expression |
|
simple_expression |
|
||||||
|
|
Reference in New Issue
Block a user