[Mono-list] ANTLR and mono

Paolo Molaro lupus@ximian.com
Sat, 15 Feb 2003 12:55:55 +0100


On 02/14/03 Jorge Garcia Oncins wrote:
> the last version of ANTLR parser generator includes C# code generation. 
> I'm trying to get it working on Linux and mono  but I can't.  Does 
> someone has achieved this? How?

Can you be more specific? Do you get errors compiling it, running it,
using the grammar or what else?

I just compiled the C# runtime in the lib/csharp/src/ directory with:

mcs /r:System.Drawing /r:System.Windows.Forms /target:library /out:antlr.dll *.cs */*.cs

I copied the antlr.dll file to the examples/csharp/HTML directory.

I generated the parser sources with the java tool (looks like there is
no tool in C# to do that?) and then compiled with:

mcs Main.cs HTML*.cs /r:antlr

Running mono Main.exe < test.html gives no errors as expected,
while doing mono Main.exe < HTML.build (a nant build file)
spewes lots of erros, so it seems ANTLR is happy with mono,
it may just need the makefile-fu to build the C# stuff with mcs.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better