From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-06-10 07:28:27
----- Original Message -----
From: "John Max Skaller"
> > I am asking this because in principle (I haven't done this yet)
> > Spirit can be a lexer and a parser.
> Well, just an idea .. bootstrap it.
> First, you write your lexer and/or parser using
> Spirit. You don't care if it is fast, you're just prototyping.
> Now, feed the Spirit C++ encoding into a
> lexer/parser generator to produce production quality
> lexer/parser tables.
> The front end of the lexer/parser generator
> has to lex and parse Spirit. The obvious language to
> write the lexer/parser in is .. Spirit.
> An easy technique here is to generate
> lex/yacc output from Spirit input. Obviously,
> the user is going to have to accept a language/grammar
> which is 'LR(1) & Spirit'.
This is interesting. Please elaborate more.
Pardon my limited comprehension.
-Joel de Guzman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk