C
Carlos
Hi,
imagine I have a parser like this:
program: PROGRAM name '{' statements '}' { ... }
;
statements: statement { ... }
| statements statement { ... }
;
statement: ...
and I want to parse a single statement. How I can tell the parser to
start at 'statement' and return?
Thanks.
imagine I have a parser like this:
program: PROGRAM name '{' statements '}' { ... }
;
statements: statement { ... }
| statements statement { ... }
;
statement: ...
and I want to parse a single statement. How I can tell the parser to
start at 'statement' and return?
Thanks.