Hi,

I'm learning ANTLR by modifying the C grammar and trying something interests
myself. The C grammar I started with is from:
http://www.antlr.org/grammar/1153358328744/C.g

Now I want to transform postfix_expression to its corresponding AST but
haven't known anything related to the transformation of the form xx
(aa|bb|cc)* yy

...
unary_expression
  : postfix_expression
  | unary_operator*^* unary_expression
  ;

postfix_expression
  : primary_expression
  ( '[' expression ']'
  | '(' ')'
  | '(' argument_expression_list ')'
  | '.' ID
  )*
  ;

unary_operator
  : '+'
  | '-'
  | '~'
  | '!'
  ;
...

Can you help me with this?

Thanks,
Xiao Jia

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to