[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yacc parser
From: |
Wayne Green |
Subject: |
Re: yacc parser |
Date: |
Sat, 10 Apr 2004 16:58:53 -0600 |
On Fri, 2004-04-09 at 13:47, Hans Aberg wrote:
> This is the Help-Bison list, and not a Yacc list, even though Bison is
> supposed to be Yacc compatible.
> >
> >"repeat :REPEAT stmt_seq UNTIL exp"
> >
Hans suggests...
> This suggests that you want the parser to interpretatively step around in
> the input text. Not Bison nor Yacc is capable doing that, but reads the
> file just once. Thus, you need to build some code that can be executed
> after the parse. This results in a faster code, so this is what everybody
> is doing. For details, look into books on compiler construction; see for
> example the newsgroup comp.compilers, and its FAQ, published there monthly.
>
> Hans Aberg
I've worked with Yacc and Bison, (Not to mention my spam filter
is just a flex program) and prefer Bison/Flex to Yacc/Lex.
There are more examples in Bison these days, just download linux
distro and search for all the bison/flex examples in
the source code. Google the rest.
--Wayne
> ______________________________________________
> address@hidden http://mail.gnu.org/mailman/listinfo/help-bison
--
Wayne Green address@hidden
1343 Carnation Circle
Longmont, CO 80503 +1.303.818.1290