help-bison
[Top][All Lists]
Advanced

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

Re: speed-up parsing


From: Anthony DeRobertis
Subject: Re: speed-up parsing
Date: 18 Jun 2002 06:33:30 -0400

> [...] then I set the symbols 
> a,b,c and x to the desired values and call yyparse() again without having 
> changed the parse string. So there is no need to call the lexer again, right?

There is no need to call the parser again. 

Parse f(a,b,c) by building an abstract syntax tree, which would look
something like this:

            f()
           / | \
          /  |  \
         /   |   \
        a    b    c

Now, once you have built this, there is no reason to call the parser
again. The AST will not change.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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