[antlr-interest] problem on using kcsparse

Micheal J open.zone at virgin.net
Tue May 30 07:02:20 PDT 2006


Hi,

> Now I'm trying to use kcsparse.
> But I can't build kcsparse.
> first,if type "nant" at specified directory,then message 
> "BUILD FAILED -0 non-fatal error(s), 7 warning(s)" appears. 
> and "Could not find file 
> 'c:\antlr^276\examples\csharp\antlr.runtime\bin\antlr.runtime.dll' to
> copy.: 
> and so on.

This suggests that the antlr C# runtime hasn't been built. It can't find the
dll.

> second,
> I cant compile ANTLR C# runtimes files.
> I tried to build ,but i cant.
> there are enough source file to build like 
> "C:\antlr\276\examples\csharp\java\JavaLexer.cs"

Don't compile the whole solution (it includes the JavaParser sample which
you haven't built). Just compile the runtime project. Or use the Nant file
to build the runtime files.

> I use ANTLR 2.7.6.
> please help me with your wisdom.

Ok, I'm guessing that you are new to ANTLR. If that is the case, you are
probably better off using the version of KCSParse that is included as a C#
example with ANTLR. It is called "csharp_v1".

You need to build the following in order:
1. the ANTLR tool itself (see the docs for how to do that)

2. the ANTLR C#/.NET runtime (if you use the VS.NET files, build just the
runtime project not the whole solution)

3. the csharp_v1 grammar example [it's really KCSParse in disguise] (the
Nant buildfile refers to ANTLR and the runtime files)


Cheers

Micheal




More information about the antlr-interest mailing list