[Mono-list] I want to get in on this.
Miguel de Icaza
miguel@ximian.com
12 Jul 2001 15:56:13 -0400
> Interesting... yacc... how are you dealing with collapsed Next structures
> using yacc (as it shouldn't be fundamentally capable of this)?
>
> For X = 1 To 10
> For Y = 1 To 20
> Next Y, X
This is not complex at all. You just use a production like this:
for_statement:
FOR VAR '=' EXPR TO EXPR body opt_next
opt_next
: /* empty */
| NEXT var_list
;
So basically, the work to match begin/end is postponed
Miguel.