[plug] Using YACC

Grahame Bowland grahame at azale.net
Sat Aug 3 20:21:36 WST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 3 Aug 2002 01:51 pm, Steve Baker wrote:
> ----- Original Message -----
> From: "Buddrige, David" <BuddrigeD at logica.com>
> To: <plug at plug.linux.org.au>
> Sent: Friday, August 02, 2002 5:45 PM
> Subject: [plug] Using YACC
>
> > Hi all,
>
> [YACC stuff snipped]
>
>
> It's been quite some time since I've used YACC, but perhaps..
>
> file:    line
>
>        | line file
>
> might work?  I can't remember if yacc allows recursive definitions.
> Try It And See (tm)

I did some of this writing parsers in the past, the trick is to make sure it 
recurses in the right direction so that you don't run out of stack. It's in 
the yacc (bison) documentation somewhere.

- -- 
Grahame Bowland - <grahame at azale.net>
'All programmers are playwrights and all computers are lousy actors'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9S8rVN7eIygKWKbARAv4WAJ9GkdjwSpeg0UedLB+UHzr5FlziXgCdGAvB
WEJWLZAJpEoUkpvosny21y8=
=B8JV
-----END PGP SIGNATURE-----




More information about the plug mailing list