Added some NULLs

main
Øyvind Skaaden 2022-04-03 22:41:49 +02:00
parent 454d642f80
commit 83479f6a2d
1 changed files with 3 additions and 3 deletions

View File

@ -250,13 +250,13 @@ expression:
$$ = NODE(EXPRESSION, strdup("~"), 1, $2);
}
| '(' expression ')' {
$$ = NODE(EXPRESSION, /*NULL*/ strdup("group"), 1, $2);
$$ = NODE(EXPRESSION, NULL /*strdup("group")*/, 1, $2);
}
| number {
$$ = NODE(EXPRESSION, /*NULL*/ strdup("number"), 1, $1);
$$ = NODE(EXPRESSION, NULL /*strdup("number")*/, 1, $1);
}
| identifier {
$$ = NODE(EXPRESSION, /*NULL*/ strdup("identifier"), 1, $1);
$$ = NODE(EXPRESSION, NULL /*strdup("identifier")*/, 1, $1);
}
| identifier '(' argument_list ')' {
$$ = NODE(EXPRESSION, /*NULL*/ strdup("function_call"), 2, $1, $3);