Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-27 11:07:15


Greg Colvin wrote:

> Which is another reason I've been wanting to see regex
> integrated into Spirit.

        A 'meta-grammar' is a like a grammar, except that the
RHS production can be a regular form, rather than just
a sequence of terminal or non-terminal symbols.

        There exist translators for meta-grammars.
One example is the tool used to build the Python parser.

        The main problem I see (due to ignorance) is how
to specify the semantic rules. For a grammar, there
the notation

        $n

refers to the attributes of the n'th symbol. What do you do with

        Symbol*
or
        Symbol?

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk