[antlr-interest] very basic question

Mathew Yeates mathew at yeates.tv
Fri Jun 23 20:31:08 PDT 2006


Hi
I want to translate some Matlab code to Python. I know very little about 
the subject (some yacc and lex) but I came across the ANTLR site and 
this looks like it might be a good approach.

I have some very basic questions.
1) I see there is a grammar for Python 2.3. Is there one for Python 2.4?
2) Do I need both the Python and Matlab grammars?
3) Is there a Matlab grammar somewhere? If not, how do I generate it? As 
a side note, I have .y .l files from Octave which should be very similar 
to Matlab
4) Then what? I looked at several tutorials and see how to parse the 
input but I havent seen a description of doing the translation.

Any help is appreciated!
Mathew


More information about the antlr-interest mailing list