Added grouping
This commit is contained in:
@@ -247,7 +247,7 @@ expression:
|
|||||||
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, strdup("~"), 1, $2);
|
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, strdup("~"), 1, $2);
|
||||||
}
|
}
|
||||||
| '(' expression ')' {
|
| '(' expression ')' {
|
||||||
$$ = $2;
|
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, /*NULL*/ strdup("group"), 1, $2);
|
||||||
}
|
}
|
||||||
| number {
|
| number {
|
||||||
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, /*NULL*/ strdup("number"), 1, $1);
|
node_init($$ = malloc(sizeof(node_t)), EXPRESSION, /*NULL*/ strdup("number"), 1, $1);
|
||||||
|
|||||||
Reference in New Issue
Block a user