Added grouping

main
Øyvind Skaaden 2022-02-14 15:29:50 +01:00
parent a6b535248b
commit 525c2b1f6a
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ expression:
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, strdup("~"), 1, $2);
}
| '(' expression ')' {
$$ = $2;
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, /*NULL*/ strdup("group"), 1, $2);
}
| number {
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, /*NULL*/ strdup("number"), 1, $1);