Q: I get "parse error". What to do?
A: That means the grammar is syntactically not correct. The most frequent mistake
is that semicolon is missing at the end of the rules. Try to run kaptain
with
--verbose
switch, it will print out the parsed rules.
The last rule printed out is just before the rule containing the error.
That means the next rule contains errors. Check if it is finished with a semicolon and for other syntaxical problems.
Q: How can I use recursive rules?
A: Kaptain doesn't enable recursion in grammar. You can create repetition with the @container
special symbol.
If you have other questions, problems, wishes, etc., drop me a mail. terek@users.sourceforge.net