Added an extention to the relation

main
Øyvind Skaaden 2022-04-23 23:08:12 +02:00
parent a7e5535dde
commit 53ec113f81
1 changed files with 5 additions and 0 deletions

View File

@ -219,6 +219,11 @@ relation:
| expression '>' expression {
$$ = NODE(RELATION, strdup(">"), 2, $1, $3);
}
/* This can actually be extented with the following (with some minor tweaks to the generator.c)
| expression {
$$ = NODE(RELATION, NULL, 1, $1);
}
That will allow to have "if 1 then" or "while 1 do" */
;
expression: