Closed ykafia closed 2 years ago
I Have this EBNF example, and i'm trying to reproduce what postfix_expression does using the C# api
postfix_expression
constants = integer_cst | float_cst | bool_cst; identifier := letter, {"_" | letter_or_digit}; primary_expression := identifier | constants; increment_op = "++" | "--"; (* This part is recursive *) postfix_expression := primary_expression | postfix_expression, "[", postfix_expression, "]" | postfix_expression, increment_op; grammar = postfix_expression;
I have an answer to my question,
The trick is to use an AlternativeParser
I Have this EBNF example, and i'm trying to reproduce what
postfix_expression
does using the C# api