[antlr-interest] C# parser - first pass
Terence Parr
parrt at cs.usfca.edu
Thu Feb 26 17:55:05 PST 2004
On Feb 26, 2004, at 1:09 PM, Robin Debreuil wrote:
> I have the first pass of the C# parser, modeled on the C# specs done.
> It
Wow! Cool :)
> just parses at this point - eg it doesn't break things into trees etc,
> so
> obviously it isn't very useful. On the bright side it is easier to
> read ; ).
Excellent.
> There are a few constructs it is still having trouble with (mostly the
> antlr
> generated C#, if that counts, he he), and it only does #region and
> #define
> preprocessing - I'm thinking I'll put conditionally compiled code in a
> different stream or somthing, but haven't read up on that enough yet.
> I've
> also skipped unsafe code for now, but will get that in for sure..
>
> If anyone has advice or spots uber slow/bonehead constructs, I'm not
> sensitive. I'm new to antrl (and bent that way regardless), so I'm sure
> there are plenty...
>
> You can see it at:
> http://www.richmediabuilder.com/beta/CSharp/csGrammar.html
How about posting a link in ANTLR's grammar section or the actual
grammar file. Up to you :)
> or download the grammar and an exe (drag cs files into it, or use
> 'CSharp
> filename.xx')
> http://www.richmediabuilder.com/beta/CSharp/CSharp.zip
>
> I'll try to tackle tree construction now, I'm probably going to model
> that
> on the CodeDom where it fits, unless there is a better standard for
> AST's...?
>
> Wonderful tool btw. Kudos to all involved.
Thanks!
Best regards,
Terence
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list