Re: PCAT Compiler needed!



CrazyDaniel2006@xxxxxxxxx wrote:

Hello guys, I'm a freshman in compiler design. I try to implement a
compiler for a small language called PCAT with flex and bison but I
find the task very tough. Is there anyone who know this can help me?
It will be better if I can learn from the lex and yacc source code.

Look for some exaples to start with. E.g.
http://www.unet.univie.ac.at/aix/aixprggd/genprogc/ie_prog_4lex_yacc.htm
(found by googling "lex yacc example")

PCAT(Pascal Clone with an ATtitude) is a small imperative programming
language

You should find several toy languages, often similar to pascal,
implemented with lex&yacc on the web or in introductory books devoted to
lex&yacc. Try to adopt them to your specific example.

Christian
.



Relevant Pages

  • Re: AGB Wiki: Major Pentatonic Boxes
    ... language with being a man in your earlier post just makes me laugh. ... I mean beat him up - I said kick his ass - like kick him in the ass ... swearing to be tough, bragging about being able to code in several languages ... Potty mouth was just a catalyst to get the reaction I got. ...
    (alt.guitar.beginner)
  • Re: Fibonacci series...please help!!!
    ... Trying to learn the language solely by posting questions here isn't ... I realize this all doesn't help much in terms of finishing a homework ... my first draft said "That's tough", ... tutorial text, that is tough. ...
    (comp.lang.fortran)
  • Re: which is better to follow C89 or C99 (was: Is Islam Really a Religion of Terror?)
    ... Alas, no, it's not that simple. ... but now i see things are getting rough and tough. ... language requires effort and insight. ...
    (comp.lang.c)
  • Re: OT Merry Chrismas
    ... > Got this from another news group. ... It has a little bad language, ... > Tough. ... Prev by Date: ...
    (rec.outdoors.rv-travel)
  • Re: Delphi Rox! but...
    ... >>removed from the language. ... Its tough enough working with the implied context ... > for handling Record types while increasing clarity. ...
    (alt.comp.lang.borland-delphi)