[comp.unix.wizards] Examples of LEX And/Or YACC Requested

AL296641@tecmtyvm.mty.itesm.mx (Antonio Quesada-Duarte) (02/18/90)

Hi there everybody!!!!
I'm not shure if this is the right list to ask, but it is an emergency!!
I must get the first phase of my modula-2 compiler runing by 1000 hrs on
Feb 23rd in order to be promoted in my course. I must use LEX for the scanner
and YACC for the syntax tables.
  Does anybody knows of a server (either BITNET or InterNet) where i can find
examples of scripts for LEX and/or YACC??
  I would really appreciate any help you can give me...thanks!!!!!!

From Monterrey, Mexico:
Antonio Quesada-Duarte
Monterrey Institute Of Technology at Monterrey
BITNET: AL296641@TECMTYVM.BITNET
InterNet: AL296641@TECMTYVM.MTY.ITESM.MX

Disclaimer: School name given only for porpouses of ID

rdg@virtech.uucp (Roger D. Gough) (02/18/90)

In article <22502@adm.BRL.MIL>, AL296641@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??

Not a server, but the book _An_Introduction_to_Compiler_Construction_with_UNIX_
(Axel T. Schreiner & H. George Friedman, Jr., Prentice Hall, 1984) provides
examples beyond what you'll find in the UNIX documents.  It helped me, anyway.

--

Roger D. Gough                                                  +1 703 689 1692
Sequel Technologies                                            uunet!sequel!rdg

rosalia@max.sunysb.edu (Mark Galassi) (02/21/90)

In article <22502@adm.BRL.MIL> AL296641@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@dirac.sunysb.edu
	rosalia@mozart.UUCP	rosalia@sunysbnp.BITNET