Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-28 15:53:48

Dan Nuffer wrote:
> "John Max Skaller" <skaller_at_[hidden]> wrote:
> >
> > The main problem I see (due to ignorance) is how
> > to specify the semantic rules.

> In a parser I've written in yacc, the rules simply built an abstract syntax
> tree, and then I used a visitor pattern to process the language.

        Of course, building an AST is what one would do in
most languages for 'semantic rules': I didn't literally mean that
the whole language would be translated in the RHS of the grammar.
But then, some languages we're familiar with have such woeful
syntax, that this is necessary just to parse them :-)

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at