[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: push parser implemenation
From: |
Akim Demaille |
Subject: |
Re: push parser implemenation |
Date: |
Fri, 15 Sep 2006 10:33:03 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
>>> "Bob" == Bob Rossi <address@hidden> writes:
> Honestly, I don't understand why a pull parser needs this feature. If
> the only reason the pull parser had extra parameters via %parse-param
> was to pass those parameters to the lexer, then the push parser doesn't
> need this feature, since the user calls the lexer directly.
You're forgetting auxiliary routines (yyerror, yyprint, yydestruct
etc.). Actually your work is almost to mimic what lalr1.cc does, but
with member functions being functions. The parser struct must
aggregate the parse-params, and provide it to the auxiliary functions.
As for yyparse, do not forget about the %initial-action either.
- Re: push parser implemenation, (continued)
- Re: push parser implemenation, Paul Eggert, 2006/09/14
- Re: push parser implemenation, Bob Rossi, 2006/09/14
- Re: push parser implemenation, Paul Eggert, 2006/09/14
- Re: push parser implemenation, Bob Rossi, 2006/09/14
- Re: push parser implemenation, Bob Rossi, 2006/09/14
- Re: push parser implemenation, Paul Eggert, 2006/09/14
- Re: push parser implemenation, Bob Rossi, 2006/09/15
- Re: push parser implemenation, Paul Eggert, 2006/09/15
- Re: push parser implemenation, Bob Rossi, 2006/09/15
- Re: push parser implemenation, Bob Rossi, 2006/09/16
- Re: push parser implemenation,
Akim Demaille <=
- Re: push parser implemenation, Bob Rossi, 2006/09/15
- Re: push parser implemenation, Akim Demaille, 2006/09/15