help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: opinion on back end architecture


From: Hans Aberg
Subject: RE: opinion on back end architecture
Date: Fri, 5 Dec 2003 19:44:00 +0100

At 13:01 -0500 2003/12/05, Urdaneta, Alfonso E (N-Summitt Technologies) wrote:
>> So you can do both, which I do. In addition, I use a hybrid type:
>
>Interesting.  This is more or less what I do.
>
>The language I am parsing has (among others) statement types like
>"CALCULATE", "SETUP", "CONNECT", etc.  I have a class for each statement
>type that handles building the internal representation of them.
>
>The problem I am running into is that there are primitives that are
>reused by all statements, so what I ended up doing was having a bison
>grammar for each statement type, and process the language in two passes.
>the first one would pick out the general statement types, and then the
>second one would call (for example) parse_calculate( "the statment in
>question" ), whose parser would then call things Calculate::addVariable(
>varname ), etc.

Your description is too unspecific for me to be able to give any inputs.

  Hans Aberg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]