[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building a simple "compiler"

Hi -
I am looking for info in  general on building a translator or compiler for a
custom language.

I currently use a program which has a rather cryptic set of commands to
process data.  I would like to define my own "grammar" that is easier to
read/understand, and then have the "compiler" translate this to the commands
that the program actually uses.

I am looking for a tool to automate this process.  I am moderately
comfortable with programming, but am certainly no expert.  Defining the
syntax I want in BNF form is no problem, but the difficulty is in generating
the actual program to translate it to the desired command language.

Is sablecc able to do this?  If not, can you point me in a direction of a
tool that I can use?


FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup