Macros in Python, and using reg exps to build a scheme interpreter
Yigal Duppen
yduppen at xs4all.nl
Sun Nov 3 06:18:23 EST 2002
> Currently in one of my classes I'm building a scheme interpreter
> in Java. This has brought two questions to mind. First does python use
> language macros to define higher level functionality. And two does anyone
> know a good place to look for how to implement a scheme parser using
> regular expressions?
As others already mentioned, regexes are not very suitable for the entire
parsing. It's usually better to use a parser generator.
For an example of a (partial) scheme interpreter in Python, have a look at
http://www.xs4all.nl/~yduppen/site/psyche.html
YDD
--
http://www.xs4all.nl/~yduppen
More information about the Python-list
mailing list