[antlr-interest] (no subject)

Jim Idle jimi at temporal-wave.com
Thu Jul 21 10:05:23 PDT 2011


I think that it is a v2 grammar right?

JIm

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of John B. Brodie
> Sent: Thursday, July 21, 2011 7:03 AM
> To: Roland Sako
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] (no subject)
>
> Greetings!
> On Thu, 2011-07-21 at 14:53 +0200, Roland Sako wrote:
> > Hello,
> >
> > I am Roland Sako from Geneva in Switzerland. I am currently working
> on
> > a project which I need to generate an expression tree of an
> Objective-C source code, then I will visit that tree to add extra
> instruction in it.
> >
> > I just got an Objective-C grammar file from the web
> (http://spiny.com/software/objc.g) , but when trying to generate
> something I got error "can only show generated grammar for java
> language".
> >
>
> I do not think that this grammar is really for ANTLR --- or rather, if
> it is, it must be run thru some preprocessor in order to transform it
> into actual ANTLR meta-syntax...
>
> that is, i notice the following non-ANTLR stuff (via a quick scan
> only):
>
>         begins with a {...} section rather than the keyword 'grammar'.
>
>         unknown ${declare ...} commands.
>
>         actions in [ ]
>
>         no lexer rules! e.g. no rule that starts with upper-case
> letter.
>         appears to define tokens using regular expressions surrounded
>         with "s.
>
>         the last 6 or 7 rules in the file are kinda goofy (in ANTLR
>         terms).
>
> > All I would need is to generate a Parser that can construct trees
> from objectiveC class files. Would it be possible with antlr?
>
> the meat of the grammar does appear to be for ANTLR. if you can figure
> out how to deal with the above non-ANTLRism you are probably well on
> your way to a working parser.
>
> >
> > Thank you very much.
> >
>
> i don't think i helped very much, sorry.
>    -jbb
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list