[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Comments on the 4.1-alpha manual
- From: ramsdell@... (John D. Ramsdell)
- Date: 03 Aug 2001 08:03:40 -0400
Here is a nit pick about the BNF given in the section titled "The
Complete Syntax of Lua". Do you think the table constructor syntax
specification is easier to understand if it is rewritten as follows?
tableconstuctory --> '{' [ fieldlist ] '}'
fieldlist --> lfieldlist [ ';' [ ffieldlist ] ]
| ffieldlist [ ';' [ lfieldlist ] ]
lfieldlist --> exp { ',' exp } [,]
ffieldlist --> ffield { ',' ffield } [,]
ffield --> '[' exp ']' '=' exp | name '=' exp
John