[antlr-interest] Stupid question...
Martin Probst
mail at martin-probst.com
Tue Apr 25 06:32:30 PDT 2006
There are generally two approaches, one is to have the Grammar create
an AST - abstract syntax tree - while parsing the source and walk
that tree afterwards. The other one is called syntax directed
translation if I'm not mistaken and means that you write actions into
the grammar ( the {} blocks) that handle the input.
Martin
Am 25.04.2006 um 01:23 schrieb Erik Forbes:
> Okay, this may seem like a stupid question, but...
>
> Now that I have a lexer/parser that correctly parses my input...
> What do I do with it? How do I use the fact that all the tokens in
> the parser are correctly matched to actually do something with the
> input? I'm dreadfully lost on this.
>
> In case anyone's curious, it's a wiki parser.
>
> --
> Support your local gravity testers -- Skydive!
More information about the antlr-interest
mailing list