|
But if count of this rules is about 50 how can i specify error for each block?
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