Enki - Use
(Back to Enki Main)
To use Enki, simply run 'enki' and read the online instructions. Generating a parser frontend is as simple as passing it your enki code (annotated EBNF) and, optionally, specifying the output file via '-f' if the default 'parser.d' isn't to you liking.
The use of the '-b' option, to re-generate the BNF code, may seem pointless at first glance. It is in fact a good diagnostic to use should you suspect Enki of not parsing your code correctly. The generated BNF file is created from the internal parse-tree and is an accurate representation of what Enki thinks your code means.
