[antlr-interest] Re: C# port of 2.7.2

Smith, Eric V. ericsmith at windsor.com
Tue Mar 12 15:40:28 PST 2002


> -----Original Message-----
> From: micheal_jor [mailto:open.zone at virgin.net] 
> Sent: Tuesday, March 12, 2002 5:49 PM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Re: C# port of 2.7.2
... 
> I'm already working on the 2.7.2a2 port Eric. Along with an updated 
> 2.7.1 using ideas from the work you were kind enough to share. I'm 
> trying to ensure that the debugging stuff is also supported for C#.
...

Wow, excellent.  How far along are you?  Any way I can help?

> > I'd really like to make this easier in the future somehow, 
> > but the code generator and runtime currently don't lend 
> > themselves to anything but a complete re-port.  I've got some 
> > ideas but they're all a tremendous up-front effort for some 
> > possible time savings in the future.  Kind of a hard sell, 
> > even to myself.
> 
> Perhaps if you elaborate?. I must admt I gave up on any big re-orgs 
> until I'm more familiar with Antlr's internals.

I'm thinking something along the lines of the CLR's CodeDOM model.  It's
an abstract code generation model with things like
CodeConditionStatement that represents an "if" statement,
CodeMethodInvocationExpression to call a method, etc.  We'd have to
write it from scratch in Java without using any CLR code, of course.
When we had the interfaces done we'd write the concrete implementations
of the Java, C++, C#, etc. generators.  Then the code generator would
call our CodeDOM interfaces and all generators would benefit from any
improvements to the code calling the CodeDOM.  It's clearly a lot of
work and might require cleaning up the runtime interfaces as well.

Eric.

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list