[fpc-pascal] Writing a compiler

leledumbo leledumbo_cool at yahoo.co.id
Mon Jan 5 06:50:03 CET 2009


I just finished taking compiler techniques class this semester and I'd like
to write my own based on the one used in the class. The class uses Java with
JLex and JavaCUP, but I don't really like Java and I want to rewrite it in
FP. However, there are some choices for writing the scanner and parser:

1. PLex & PYacc
   Question: Differences between 4.1a and FP distributed version?
   Pros: Easier to translate from original version
   Cons: Not so easy to translate from EBNF notation

2. Coco/R
   Question: TP vs Delphi version, which one is more appropriate for FP?
   Pros: Very close to EBNF, Modula-2 / Oberon-like structure, has many
features
   Cons: Needs changes from original version (my lecturer doesn't give EBNF
notation)

3. Handwritten
   Question: Need some references other than Jack Crenshaw's book
   Pros: Easier to maintain (someone said, but no prove)
   Cons: I don't have any practical background on this

>From the given choices, which one will you suggest?
-- 
View this message in context: http://www.nabble.com/Writing-a-compiler-tp21285931p21285931.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.




More information about the fpc-pascal mailing list