[antlr-interest] Using ANTLR without Java

Sam Harwell sharwell at pixelminegames.com
Sat Jun 27 18:26:07 PDT 2009


I don't have a packaged release available, but the source in my branch
is completely up-to-date with the Java branch. :) I could package a
build tonight or tomorrow and host it on one of my servers if someone is
interested in it. It's self-contained (doesn't require any earlier
version of ANTLR or Java) as well since I ported all of its grammars to
v3 in the process.

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Gavin Lambert
Sent: Saturday, June 27, 2009 9:22 AM
To: Elnur Cabarov; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Using ANTLR without Java

At 17:48 27/06/2009, Elnur Cabarov wrote:
>I'm writing an application in C# and want to use ANTLR in it 
>(i.e. user should be able to write own grammars or change 
>existing ones, compile and run them dynamically)
>
>But I don't want end-users need both .Net framework and Java. Is 
>there any way to use ANTLR without Java? I don't mean using C# as 
>a target language. I mean dynamically compiling grammars and 
>running them without Java

Normally end-users wouldn't be writing grammars -- grammar writing 
is a complicated business. :)

For the common case, where you define a DSL or full language and 
the end-user simply composes programs (or other data) using that 
language, then Java is not needed by the end-user at all.  Neither 
the generated C# code nor the C# runtime require Java.

If you really are trying to let end-users compile grammars, and 
want a native solution, then you'll probably have to wait a 
while.  IIRC Sam Harwell (the C# target maintainer) has done some 
work towards porting the whole of ANTLR (including the compiler) 
to C#.  But it's still all pre-release.


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