lua-users home
lua-l archive

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


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