Related articles |
---|
re-entrant parsers, pure_parser, bison, flex lmipjmy@eei.ericsson.se (PJ Mealy) (1997-07-13) |
Re: re-entrant parsers, pure_parser, bison, flex lmipjmy@eei.ericsson.se (PJ Mealy) (1997-07-16) |
Re: re-entrant parsers, pure_parser, bison, flex tiggr@ics.ele.tue.nl (1997-07-16) |
Re: re-entrant parsers, pure_parser, bison, flex lmipjmy@eei.ericsson.se (PJ Mealy) (1997-07-18) |
Re: re-entrant parsers, pure_parser, bison, flex cfc@world.std.com (1997-07-18) |
Re: re-entrant parsers, pure_parser, bison, flex 71511.3711@CompuServe.COM (Brian W. Inglis) (1997-07-21) |
Re: re-entrant parsers, pure_parser, bison, flex bear@sonic.net (Ray Dillinger) (1997-07-22) |
Re: re-entrant parsers, pure_parser, bison, flex vetter@cc.gatech.edu (Jeffrey Vetter) (1997-07-22) |
Re: re-entrant parsers, pure_parser, bison, flex jlilley@empathy.com (John Lilley) (1997-08-24) |
From: | PJ Mealy <lmipjmy@eei.ericsson.se> |
Newsgroups: | comp.compilers |
Date: | 18 Jul 1997 12:28:09 -0400 |
Organization: | Ericsson |
References: | 97-07-063 97-07-081 |
Keywords: | parse, Windows |
> [Hmmn, reentrant parser won't help at all here, since yacc restarts the
> parse each time you call it. If your input lanuguage is statement
> oriented, you could set up your grammar to parse one statement at a time
> so you'd keep calling yyparse() until it ran out of input. -John]
Yep! Thats what I'm actually doing now...sorry if I confused anyone, but
I'm still learning :>
Actually, what I'm doing is executing a return in the action related to
a statement. I'm returning a value (eh..42) to indicate that a statement
has been parsed successfully, and so I don't get confused with error or
end of file...I can post the code for the small example I used to work
this out if you think it would be of use to anyone...
Thanks
PJ
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.