Books:
On creating languages:
The easy way to do this is to use LEX and YACC, after first specifying your 'basic' grammar. YACC will spit out C code to parse your 'basic' language. You can use this code as your cross compiler which will run on windoze, Linux, etc. You also need to write the routines to perform the actions that the tokens in you grammar will cause to be called. People can kick out compilers like this in an afternoon. You get a serious compiler this way that can handle any level of parenthetical expressions.There are good tutorials on the web. (http://epaperpress.com/lexandyacc/) The point is -- a couple of days with a book on YACC and LEX to understand it will pay off any time you have to parse something -- for the rest of your programming life.
Books:
- Unix Tool Building by Kenneth Ingham
- A Retargetable C Compiler
See also:
The comp.compilers newsgroup, archive, links
"The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language." -- D. E. Knuth, 1967
A computer scientist is someone who, when told to "Go to Hell," sees the "go to," rather than the destination, as harmful. -- Dr. Roger M. Firestone, rfire@cais.cais.com
Questions:
See also:
See: