Jan Hidders wrote:
Timwi wrote:
Michael Becker wrote:
I'm going to break out my compiler books and
start working on a CFG
for the wiki code
I am already working on this.
Yes. Impressive. But do you already have a grammar that describes
what your parser parses?
I have indeed been told by a friend that it would be a better idea to
write down the BNF for the grammar before starting to write the yacc
file. So I tried. But then, when I finally did the yacc file, I
realised that it was not such a good idea after all. In fact, it was
a waste of time. You need to be able to test the grammar while you
are working on it, and you want to be able to tweak certain parts
before writing certain other parts that depend on them.
I hadn't realized yet you were already using yacc. All I wanted was to
see the grammar you are using now, by which I simply mean the yacc input.
-- Jan Hidders