{
sprintf "string[%S]" $1
}
- | fun_call
+ | ID unit
{
- $1
+ let id = $1 in
+ sprintf "fun_call[%s, []]" id
+ }
+ | ID LPAREN fun_args RPAREN
+ {
+ let id = $1 in
+ let fun_args = $3 in
+ sprintf "fun_call[%s, %s]" id fun_args
}
| exp op exp
{
sprintf "%S = %s, %s" id exp rec_field_assignments
}
-fun_call:
- | ID unit
- {
- let id = $1 in
- sprintf "fun_call[%s, []]" id
- }
- | ID LPAREN fun_args RPAREN
- {
- let id = $1 in
- let fun_args = $3 in
- sprintf "fun_call[%s, %s]" id fun_args
- }
-
fun_args:
| exp
{