Examples of LEX And/Or YACC Requested

Mark Galassi rosalia at max.sunysb.edu
Wed Feb 21 12:23:57 AEST 1990


In article <22502 at adm.BRL.MIL> AL296641 at tecmtyvm.mty.itesm.mx (Antonio Quesada-Duarte) writes:
>  Does anybody knows of a server (either BITNET or InterNet) where i can find
>examples of scripts for LEX and/or YACC??

You might want to look in 2 places:

1. Kernighan and Pike, The UNIX Programming Environment.
   one of the last chapters is on developing a language with YACC,
   and they go into lex a little.

2. The Bison manual, by Stallman and another fellow.  They have
   3 examples of calculators written with Bison (the GNU replacement
   of YACC)

Hope that helps,
-- 
    {These opinions are mine, and should be everybody else's :-)}
	Mark Galassi		rosalia at dirac.sunysb.edu
	rosalia at mozart.UUCP	rosalia at sunysbnp.BITNET



More information about the Comp.unix.wizards mailing list