4.3 The Rest of the Story

 < Free Open Study > 



4.3 The Rest of the Story

Of course, there are many parts to an interpreter or compilereven a very simple onebesides those we have discussed explicitly here. In reality, terms to be evaluated start out as sequences of characters in files. They must be read from the file system, processed into streams of tokens by a lexical analyzer, and further processed into abstract syntax trees by a parser, before they can actually be evaluated by the functions that we have seen. Further-more, after evaluation, the results need to be printed out.

Interested readers are encouraged to have a look at the on-line OCaml code for the whole interpreter.



 < Free Open Study > 



Types and Programming Languages
Types and Programming Languages
ISBN: 0262162091
EAN: 2147483647
Year: 2002
Pages: 262

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net