4 * Copyright (C) 2003 Transmeta Corp.
5 * 2003-2004 Linus Torvalds
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 * This is the expression parsing part of parsing C.
43 #include "expression.h"
47 static int match_oplist(int op
, ...)
54 nextop
= va_arg(args
, int);
55 } while (nextop
!= 0 && nextop
!= op
);
61 static struct token
*comma_expression(struct token
*, struct expression
**);
63 struct token
*parens_expression(struct token
*token
, struct expression
**expr
, const char *where
)
65 token
= expect(token
, '(', where
);
66 if (match_op(token
, '{')) {
67 struct expression
*e
= alloc_expression(token
->pos
, EXPR_STATEMENT
);
68 struct statement
*stmt
= alloc_statement(token
->pos
, STMT_COMPOUND
);
72 token
= compound_statement(token
->next
, stmt
);
74 token
= expect(token
, '}', "at end of statement expression");
76 token
= parse_expression(token
, expr
);
77 return expect(token
, ')', where
);
81 * Handle __func__, __FUNCTION__ and __PRETTY_FUNCTION__ token
84 static struct symbol
*handle_func(struct token
*token
)
86 struct ident
*ident
= token
->ident
;
87 struct symbol
*decl
, *array
;
88 struct string
*string
;
91 if (ident
!= &__func___ident
&&
92 ident
!= &__FUNCTION___ident
&&
93 ident
!= &__PRETTY_FUNCTION___ident
)
96 if (!current_fn
|| !current_fn
->ident
)
99 /* OK, it's one of ours */
100 array
= alloc_symbol(token
->pos
, SYM_ARRAY
);
101 array
->ctype
.base_type
= &char_ctype
;
102 array
->ctype
.alignment
= 1;
103 array
->endpos
= token
->pos
;
104 decl
= alloc_symbol(token
->pos
, SYM_NODE
);
105 decl
->ctype
.base_type
= array
;
106 decl
->ctype
.alignment
= 1;
107 decl
->ctype
.modifiers
= MOD_STATIC
;
108 decl
->endpos
= token
->pos
;
110 /* function-scope, but in NS_SYMBOL */
111 bind_symbol(decl
, ident
, NS_LABEL
);
112 decl
->namespace = NS_SYMBOL
;
114 len
= current_fn
->ident
->len
;
115 string
= __alloc_string(len
+ 1);
116 memcpy(string
->data
, current_fn
->ident
->name
, len
);
117 string
->data
[len
] = 0;
118 string
->length
= len
+ 1;
120 decl
->initializer
= alloc_expression(token
->pos
, EXPR_STRING
);
121 decl
->initializer
->string
= string
;
122 decl
->initializer
->ctype
= decl
;
123 decl
->array_size
= alloc_const_expression(token
->pos
, len
+ 1);
124 array
->array_size
= decl
->array_size
;
125 decl
->bit_size
= array
->bit_size
= bytes_to_bits(len
+ 1);
130 static struct token
*parse_type(struct token
*token
, struct expression
**tree
)
133 *tree
= alloc_expression(token
->pos
, EXPR_TYPE
);
134 (*tree
)->flags
= Int_const_expr
; /* sic */
135 token
= typename(token
, &sym
, NULL
);
137 sparse_error(token
->pos
,
138 "type expression should not include identifier "
139 "\"%s\"", sym
->ident
->name
);
140 (*tree
)->symbol
= sym
;
144 static struct token
*builtin_types_compatible_p_expr(struct token
*token
,
145 struct expression
**tree
)
147 struct expression
*expr
= alloc_expression(
148 token
->pos
, EXPR_COMPARE
);
149 expr
->flags
= Int_const_expr
;
150 expr
->op
= SPECIAL_EQUAL
;
152 if (!match_op(token
, '('))
153 return expect(token
, '(',
154 "after __builtin_types_compatible_p");
156 token
= parse_type(token
, &expr
->left
);
157 if (!match_op(token
, ','))
158 return expect(token
, ',',
159 "in __builtin_types_compatible_p");
161 token
= parse_type(token
, &expr
->right
);
162 if (!match_op(token
, ')'))
163 return expect(token
, ')',
164 "at end of __builtin_types_compatible_p");
171 static struct token
*builtin_offsetof_expr(struct token
*token
,
172 struct expression
**tree
)
174 struct expression
*expr
= NULL
;
175 struct expression
**p
= &expr
;
180 if (!match_op(token
, '('))
181 return expect(token
, '(', "after __builtin_offset");
184 token
= typename(token
, &sym
, NULL
);
186 sparse_error(token
->pos
,
187 "type expression should not include identifier "
188 "\"%s\"", sym
->ident
->name
);
190 if (!match_op(token
, ','))
191 return expect(token
, ',', "in __builtin_offset");
194 struct expression
*e
;
200 return expect(token
, ')', "at end of __builtin_offset");
201 case SPECIAL_DEREFERENCE
:
202 e
= alloc_expression(token
->pos
, EXPR_OFFSETOF
);
203 e
->flags
= Int_const_expr
;
210 e
= alloc_expression(token
->pos
, EXPR_OFFSETOF
);
211 e
->flags
= Int_const_expr
;
213 if (token_type(token
) != TOKEN_IDENT
) {
214 sparse_error(token
->pos
, "Expected member name");
217 e
->ident
= token
->ident
;
222 e
= alloc_expression(token
->pos
, EXPR_OFFSETOF
);
223 e
->flags
= Int_const_expr
;
225 token
= parse_expression(token
, &e
->index
);
226 token
= expect(token
, ']',
227 "at end of array dereference");
233 op
= token_type(token
) == TOKEN_SPECIAL
? token
->special
: 0;
238 #define ULLONG_MAX (~0ULL)
241 static unsigned long long parse_num(const char *nptr
, char **end
)
243 if (nptr
[0] == '0' && tolower((unsigned char)nptr
[1]) == 'b')
244 return strtoull(&nptr
[2], end
, 2);
245 return strtoull(nptr
, end
, 0);
248 static void get_number_value(struct expression
*expr
, struct token
*token
)
250 const char *str
= token
->number
;
251 unsigned long long value
;
253 int size
= 0, want_unsigned
= 0;
254 int overflow
= 0, do_warn
= 0;
255 int try_unsigned
= 1;
259 value
= parse_num(str
, &end
);
262 if (value
== ULLONG_MAX
&& errno
== ERANGE
)
268 } else if (c
== 'u' || c
== 'U') {
272 } else if (c
== 'l' || c
== 'L') {
285 /* OK, it's a valid integer */
286 /* decimals can be unsigned only if directly specified as such */
287 if (str
[0] != '0' && !want_unsigned
)
290 bits
= bits_in_int
- 1;
291 if (!(value
& (~1ULL << bits
))) {
292 if (!(value
& (1ULL << bits
))) {
294 } else if (try_unsigned
) {
303 bits
= bits_in_long
- 1;
304 if (!(value
& (~1ULL << bits
))) {
305 if (!(value
& (1ULL << bits
))) {
307 } else if (try_unsigned
) {
316 bits
= bits_in_longlong
- 1;
317 if (value
& (~1ULL << bits
))
319 if (!(value
& (1ULL << bits
)))
322 warning(expr
->pos
, "decimal constant %s is too big for long long",
327 warning(expr
->pos
, "constant %s is so big it is%s%s%s",
329 want_unsigned
? " unsigned":"",
330 size
> 0 ? " long":"",
331 size
> 1 ? " long":"");
334 "decimal constant %s is between LONG_MAX and ULONG_MAX."
335 " For C99 that means long long, C90 compilers are very "
336 "likely to produce unsigned long (and a warning) here",
338 expr
->type
= EXPR_VALUE
;
339 expr
->flags
= Int_const_expr
;
340 expr
->ctype
= ctype_integer(size
, want_unsigned
);
344 error_die(expr
->pos
, "constant %s is too big even for unsigned long long",
348 expr
->fvalue
= string_to_ld(str
, &end
);
355 if (*end
== 'f' || *end
== 'F')
356 expr
->ctype
= &float_ctype
;
357 else if (*end
== 'l' || *end
== 'L')
358 expr
->ctype
= &ldouble_ctype
;
360 expr
->ctype
= &double_ctype
;
364 expr
->flags
= Float_literal
;
365 expr
->type
= EXPR_FVALUE
;
369 error_die(expr
->pos
, "constant %s is not a valid number", show_token(token
));
372 struct token
*primary_expression(struct token
*token
, struct expression
**tree
)
374 struct expression
*expr
= NULL
;
376 switch (token_type(token
)) {
377 case TOKEN_CHAR
... TOKEN_WIDE_CHAR_EMBEDDED_3
:
378 expr
= alloc_expression(token
->pos
, EXPR_VALUE
);
379 expr
->flags
= Int_const_expr
;
380 expr
->ctype
= token_type(token
) < TOKEN_WIDE_CHAR
? &int_ctype
: &long_ctype
;
381 get_char_constant(token
, &expr
->value
);
386 expr
= alloc_expression(token
->pos
, EXPR_VALUE
);
387 get_number_value(expr
, token
); /* will see if it's an integer */
391 case TOKEN_ZERO_IDENT
: {
392 expr
= alloc_expression(token
->pos
, EXPR_SYMBOL
);
393 expr
->flags
= Int_const_expr
;
394 expr
->ctype
= &int_ctype
;
395 expr
->symbol
= &zero_int
;
396 expr
->symbol_name
= token
->ident
;
402 struct symbol
*sym
= lookup_symbol(token
->ident
, NS_SYMBOL
| NS_TYPEDEF
);
403 struct token
*next
= token
->next
;
406 sym
= handle_func(token
);
407 if (token
->ident
== &__builtin_types_compatible_p_ident
) {
408 token
= builtin_types_compatible_p_expr(token
, &expr
);
411 if (token
->ident
== &__builtin_offsetof_ident
) {
412 token
= builtin_offsetof_expr(token
, &expr
);
415 } else if (sym
->enum_member
) {
416 expr
= alloc_expression(token
->pos
, EXPR_VALUE
);
417 *expr
= *sym
->initializer
;
418 /* we want the right position reported, thus the copy */
419 expr
->pos
= token
->pos
;
420 expr
->flags
= Int_const_expr
;
425 expr
= alloc_expression(token
->pos
, EXPR_SYMBOL
);
428 * We support types as real first-class citizens, with type
431 * if (typeof(a) == int) ..
433 if (sym
&& sym
->namespace == NS_TYPEDEF
) {
434 sparse_error(token
->pos
, "typename in expression");
437 expr
->symbol_name
= token
->ident
;
444 case TOKEN_WIDE_STRING
:
445 expr
= alloc_expression(token
->pos
, EXPR_STRING
);
446 token
= get_string_constant(token
, expr
);
450 if (token
->special
== '(') {
451 expr
= alloc_expression(token
->pos
, EXPR_PREOP
);
453 token
= parens_expression(token
, &expr
->unop
, "in expression");
455 expr
->flags
= expr
->unop
->flags
;
458 if (token
->special
== '[' && lookup_type(token
->next
)) {
459 expr
= alloc_expression(token
->pos
, EXPR_TYPE
);
460 expr
->flags
= Int_const_expr
; /* sic */
461 token
= typename(token
->next
, &expr
->symbol
, NULL
);
462 token
= expect(token
, ']', "in type expression");
473 static struct token
*expression_list(struct token
*token
, struct expression_list
**list
)
475 while (!match_op(token
, ')')) {
476 struct expression
*expr
= NULL
;
477 token
= assignment_expression(token
, &expr
);
480 add_expression(list
, expr
);
481 if (!match_op(token
, ','))
489 * extend to deal with the ambiguous C grammar for parsing
490 * a cast expressions followed by an initializer.
492 static struct token
*postfix_expression(struct token
*token
, struct expression
**tree
, struct expression
*cast_init_expr
)
494 struct expression
*expr
= cast_init_expr
;
497 token
= primary_expression(token
, &expr
);
499 while (expr
&& token_type(token
) == TOKEN_SPECIAL
) {
500 switch (token
->special
) {
501 case '[': { /* Array dereference */
502 struct expression
*deref
= alloc_expression(token
->pos
, EXPR_PREOP
);
503 struct expression
*add
= alloc_expression(token
->pos
, EXPR_BINOP
);
510 token
= parse_expression(token
->next
, &add
->right
);
511 token
= expect(token
, ']', "at end of array dereference");
515 case SPECIAL_INCREMENT
: /* Post-increment */
516 case SPECIAL_DECREMENT
: { /* Post-decrement */
517 struct expression
*post
= alloc_expression(token
->pos
, EXPR_POSTOP
);
518 post
->op
= token
->special
;
524 case SPECIAL_DEREFERENCE
: { /* Structure pointer member dereference */
525 /* "x->y" is just shorthand for "(*x).y" */
526 struct expression
*inner
= alloc_expression(token
->pos
, EXPR_PREOP
);
532 case '.': { /* Structure member dereference */
533 struct expression
*deref
= alloc_expression(token
->pos
, EXPR_DEREF
);
537 if (token_type(token
) != TOKEN_IDENT
) {
538 sparse_error(token
->pos
, "Expected member name");
541 deref
->member
= token
->ident
;
547 case '(': { /* Function call */
548 struct expression
*call
= alloc_expression(token
->pos
, EXPR_CALL
);
551 token
= expression_list(token
->next
, &call
->args
);
552 token
= expect(token
, ')', "in function call");
566 static struct token
*cast_expression(struct token
*token
, struct expression
**tree
);
567 static struct token
*unary_expression(struct token
*token
, struct expression
**tree
);
569 static struct token
*type_info_expression(struct token
*token
,
570 struct expression
**tree
, int type
)
572 struct expression
*expr
= alloc_expression(token
->pos
, type
);
576 expr
->flags
= Int_const_expr
; /* XXX: VLA support will need that changed */
578 if (!match_op(token
, '(') || !lookup_type(token
->next
))
579 return unary_expression(token
, &expr
->cast_expression
);
581 token
= typename(token
->next
, &expr
->cast_type
, NULL
);
583 if (!match_op(token
, ')')) {
584 static const char * error
[] = {
585 [EXPR_SIZEOF
] = "at end of sizeof",
586 [EXPR_ALIGNOF
] = "at end of __alignof__",
587 [EXPR_PTRSIZEOF
] = "at end of __sizeof_ptr__"
589 return expect(token
, ')', error
[type
]);
594 * C99 ambiguity: the typename might have been the beginning
595 * of a typed initializer expression..
597 if (match_op(token
, '{')) {
598 struct expression
*cast
= alloc_expression(p
->pos
, EXPR_CAST
);
599 cast
->cast_type
= expr
->cast_type
;
600 expr
->cast_type
= NULL
;
601 expr
->cast_expression
= cast
;
602 token
= initializer(&cast
->cast_expression
, token
);
603 token
= postfix_expression(token
, &expr
->cast_expression
, cast
);
608 static struct token
*unary_expression(struct token
*token
, struct expression
**tree
)
610 if (token_type(token
) == TOKEN_IDENT
) {
611 struct ident
*ident
= token
->ident
;
612 if (ident
->reserved
) {
613 static const struct {
616 } type_information
[] = {
617 { &sizeof_ident
, EXPR_SIZEOF
},
618 { &__alignof___ident
, EXPR_ALIGNOF
},
619 { &__alignof_ident
, EXPR_ALIGNOF
},
620 { &_Alignof_ident
, EXPR_ALIGNOF
},
621 { &__sizeof_ptr___ident
, EXPR_PTRSIZEOF
},
624 for (i
= 0; i
< ARRAY_SIZE(type_information
); i
++) {
625 if (ident
== type_information
[i
].id
)
626 return type_info_expression(token
, tree
, type_information
[i
].type
);
631 if (token_type(token
) == TOKEN_SPECIAL
) {
632 if (match_oplist(token
->special
,
633 SPECIAL_INCREMENT
, SPECIAL_DECREMENT
,
635 struct expression
*unop
;
636 struct expression
*unary
;
639 next
= cast_expression(token
->next
, &unop
);
641 sparse_error(token
->pos
, "Syntax error in unary expression");
645 unary
= alloc_expression(token
->pos
, EXPR_PREOP
);
646 unary
->op
= token
->special
;
651 /* possibly constant ones */
652 if (match_oplist(token
->special
, '+', '-', '~', '!', 0)) {
653 struct expression
*unop
;
654 struct expression
*unary
;
657 next
= cast_expression(token
->next
, &unop
);
659 sparse_error(token
->pos
, "Syntax error in unary expression");
663 unary
= alloc_expression(token
->pos
, EXPR_PREOP
);
664 unary
->op
= token
->special
;
666 unary
->flags
= unop
->flags
& Int_const_expr
;
670 /* Gcc extension: &&label gives the address of a label */
671 if (match_op(token
, SPECIAL_LOGICAL_AND
) &&
672 token_type(token
->next
) == TOKEN_IDENT
) {
673 struct expression
*label
= alloc_expression(token
->pos
, EXPR_LABEL
);
674 struct symbol
*sym
= label_symbol(token
->next
);
675 if (!(sym
->ctype
.modifiers
& MOD_ADDRESSABLE
)) {
676 sym
->ctype
.modifiers
|= MOD_ADDRESSABLE
;
677 add_symbol(&function_computed_target_list
, sym
);
679 label
->label_symbol
= sym
;
681 return token
->next
->next
;
686 return postfix_expression(token
, tree
, NULL
);
690 * Ambiguity: a '(' can be either a cast-expression or
691 * a primary-expression depending on whether it is followed
694 * additional ambiguity: a "cast expression" followed by
695 * an initializer is really a postfix-expression.
697 static struct token
*cast_expression(struct token
*token
, struct expression
**tree
)
699 if (match_op(token
, '(')) {
700 struct token
*next
= token
->next
;
701 if (lookup_type(next
)) {
702 struct expression
*cast
= alloc_expression(next
->pos
, EXPR_CAST
);
703 struct expression
*v
;
707 token
= typename(next
, &sym
, &is_force
);
708 cast
->cast_type
= sym
;
709 token
= expect(token
, ')', "at end of cast operator");
710 if (match_op(token
, '{')) {
713 "[force] in compound literal");
714 token
= initializer(&cast
->cast_expression
, token
);
715 return postfix_expression(token
, tree
, cast
);
719 cast
->type
= EXPR_FORCE_CAST
;
720 token
= cast_expression(token
, &v
);
723 cast
->cast_expression
= v
;
724 if (v
->flags
& Int_const_expr
)
725 cast
->flags
= Int_const_expr
;
726 else if (v
->flags
& Float_literal
) /* and _not_ int */
727 cast
->flags
= Int_const_expr
| Float_literal
;
731 return unary_expression(token
, tree
);
735 * Generic left-to-right binop parsing
737 * This _really_ needs to be inlined, because that makes the inner
738 * function call statically deterministic rather than a totally
739 * unpredictable indirect call. But gcc-3 is so "clever" that it
740 * doesn't do so by default even when you tell it to inline it.
742 * Making it a macro avoids the inlining problem, and also means
743 * that we can pass in the op-comparison as an expression rather
744 * than create a data structure for it.
747 #define LR_BINOP_EXPRESSION(__token, tree, type, inner, compare) \
748 struct expression *left = NULL; \
749 struct token * next = inner(__token, &left); \
752 while (token_type(next) == TOKEN_SPECIAL) { \
753 struct expression *top, *right = NULL; \
754 int op = next->special; \
758 top = alloc_expression(next->pos, type); \
759 next = inner(next->next, &right); \
761 sparse_error(next->pos, "No right hand side of '%s'-expression", show_special(op)); \
764 top->flags = left->flags & right->flags \
768 top->right = right; \
776 static struct token *multiplicative_expression(struct token *token, struct expression **tree)
779 token
, tree
, EXPR_BINOP
, cast_expression
,
780 (op
== '*') || (op
== '/') || (op
== '%')
784 static struct token
*additive_expression(struct token
*token
, struct expression
**tree
)
787 token
, tree
, EXPR_BINOP
, multiplicative_expression
,
788 (op
== '+') || (op
== '-')
792 static struct token
*shift_expression(struct token
*token
, struct expression
**tree
)
795 token
, tree
, EXPR_BINOP
, additive_expression
,
796 (op
== SPECIAL_LEFTSHIFT
) || (op
== SPECIAL_RIGHTSHIFT
)
800 static struct token
*relational_expression(struct token
*token
, struct expression
**tree
)
803 token
, tree
, EXPR_COMPARE
, shift_expression
,
804 (op
== '<') || (op
== '>') ||
805 (op
== SPECIAL_LTE
) || (op
== SPECIAL_GTE
)
809 static struct token
*equality_expression(struct token
*token
, struct expression
**tree
)
812 token
, tree
, EXPR_COMPARE
, relational_expression
,
813 (op
== SPECIAL_EQUAL
) || (op
== SPECIAL_NOTEQUAL
)
817 static struct token
*bitwise_and_expression(struct token
*token
, struct expression
**tree
)
820 token
, tree
, EXPR_BINOP
, equality_expression
,
825 static struct token
*bitwise_xor_expression(struct token
*token
, struct expression
**tree
)
828 token
, tree
, EXPR_BINOP
, bitwise_and_expression
,
833 static struct token
*bitwise_or_expression(struct token
*token
, struct expression
**tree
)
836 token
, tree
, EXPR_BINOP
, bitwise_xor_expression
,
841 static struct token
*logical_and_expression(struct token
*token
, struct expression
**tree
)
844 token
, tree
, EXPR_LOGICAL
, bitwise_or_expression
,
845 (op
== SPECIAL_LOGICAL_AND
)
849 static struct token
*logical_or_expression(struct token
*token
, struct expression
**tree
)
852 token
, tree
, EXPR_LOGICAL
, logical_and_expression
,
853 (op
== SPECIAL_LOGICAL_OR
)
857 struct token
*conditional_expression(struct token
*token
, struct expression
**tree
)
859 token
= logical_or_expression(token
, tree
);
860 if (*tree
&& match_op(token
, '?')) {
861 struct expression
*expr
= alloc_expression(token
->pos
, EXPR_CONDITIONAL
);
862 expr
->op
= token
->special
;
865 token
= parse_expression(token
->next
, &expr
->cond_true
);
866 token
= expect(token
, ':', "in conditional expression");
867 token
= conditional_expression(token
, &expr
->cond_false
);
868 if (expr
->left
&& expr
->cond_false
) {
869 int is_const
= expr
->left
->flags
&
870 expr
->cond_false
->flags
&
873 is_const
&= expr
->cond_true
->flags
;
874 expr
->flags
= is_const
;
880 struct token
*assignment_expression(struct token
*token
, struct expression
**tree
)
882 token
= conditional_expression(token
, tree
);
883 if (*tree
&& token_type(token
) == TOKEN_SPECIAL
) {
884 static const int assignments
[] = {
886 SPECIAL_ADD_ASSIGN
, SPECIAL_SUB_ASSIGN
,
887 SPECIAL_MUL_ASSIGN
, SPECIAL_DIV_ASSIGN
,
888 SPECIAL_MOD_ASSIGN
, SPECIAL_SHL_ASSIGN
,
889 SPECIAL_SHR_ASSIGN
, SPECIAL_AND_ASSIGN
,
890 SPECIAL_OR_ASSIGN
, SPECIAL_XOR_ASSIGN
};
891 int i
, op
= token
->special
;
892 for (i
= 0; i
< ARRAY_SIZE(assignments
); i
++)
893 if (assignments
[i
] == op
) {
894 struct expression
* expr
= alloc_expression(token
->pos
, EXPR_ASSIGNMENT
);
898 return assignment_expression(token
->next
, &expr
->right
);
904 static struct token
*comma_expression(struct token
*token
, struct expression
**tree
)
907 token
, tree
, EXPR_COMMA
, assignment_expression
,
912 struct token
*parse_expression(struct token
*token
, struct expression
**tree
)
914 return comma_expression(token
,tree
);