lua-users home
lua-l archive

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


But if count of this rules is about 50 how can i specify error for each block?

07.12.2012 15:55 пользователь "Philipp Janda" <siffiejoe@gmx.net> написал:
Am 07.12.2012 12:11, schrieb Vasiliy Tolstov:
Thanks. How can i add to this grammar file {} parsing (that have all
things like directory).. ?


- duplicate the directory rule and replace both "directory" strings in it with "file"
- add  +V"file" after V"directory inside the parentheses in the startrule
- change the error message for eof from "directory expected" to something like "directory or file expected"

Philipp