some changes

master
serr 2025-04-01 22:19:55 +03:00
parent 16ab2f9260
commit 099614822a
2 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ char* path;
// Program - последовательность утверждений
program:
| program statement
| program error { yyerrok; }
//| program error { yyerrok; }
;
// Утверждение - либо блок {...}, либо выражение с ; в конце,
@ -82,7 +82,7 @@ statement:
{ if (debug) printf("\033[1;34mELSE BLOCK ENDED\033[0m\n"); }
| func_decl
| error SEMICOLON { yyerrok; }
//| error SEMICOLON { yyerrok; }
;
func_decl:

View File

@ -4,7 +4,7 @@ func FUNC_1(a, b, c) {
print x;
}
x = x + 1
x = x + 1;
a = a + 1;
}
@ -17,14 +17,14 @@ func FUNC_2() {
x = x + 1;
} while(x < 5);
x = 5
x = 5;
}
func main()
{
// 123123132
/* test */
x = 2 + 1 % 1;;
x = 2 + 1 % 1;
if (!x && 1 || (x + (-100))) { // comment
x = 3;