lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>The reference manual contains the syntax rule
>
>   block ::= [label] { stat [';'] }
>
>while the parser itself contains (both implicitly and explicitly)
>
>   block ::= chunk

The code is right ;-) and the manual is wrong.
This is a known bug int the manual which wil be fixed for 4.0b

>   chunk ::= { [label] stat [';'] }

There will be no labels after all in 4.0.

>(Although it would be nice if it were possible to make
>a parser based solely on the information in the reference
>manual... :)

Yes, of course. The new manual will also contain a full BNF for Lua in a
single page, which should help too.
--lhf