[antlr-interest] MATLAB grammar for antlr v3
Markus Grabner
grabner at icg.tugraz.at
Thu Oct 1 09:07:01 PDT 2009
Hi!
There has been some discussion about a MATLAB grammar a while ago:
http://www.antlr.org/pipermail/antlr-interest/2002-May/001041.html
Does anybody know if these efforts have been finished? If not, I'm considering
to write a MATLAB grammar from scratch. Most of it should be easy, although
there is one problem I'm not sure how to deal with. The matrix transposition
operator and string literal delimiter share the same character (a single
apostrophe '), i.e.,
A' means matrix A transposed, while
'A' means string literal with value A.
Can these be distinguished by context (the transposition operator may occur
only after a matrix expression, while the string literal may only be an
operand to an expression)? Any hint is appreciated!
Thanks & kind regards,
Markus
--
Markus Grabner - Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria
Phone: +43/316/873-5041, Fax: +43/316/873-5050
WWW: http://www.icg.tugraz.at/Members/grabner
More information about the antlr-interest
mailing list