[antlr-interest] Using antlr under C#

Johannes Luber JALuber at gmx.de
Wed Jan 30 12:58:34 PST 2008


> I am trying to use Antlr under C# and am finding it frustrating because
> I can't seem to find any clear documentation on how to use it.
> 
> this page:      http://www.antlr.org/api/CSharp/index.html
> linked from this page:      http://www.antlr.org/api/
> gives a 404.
> 
> Installing antlr gives me the .dll's to link with but I can't seem to
> find any info in there to show me what to do with it.
> 
> googel gives me this:  http://www.antlr.org/doc/csharp-runtime.html
> but that just shows up as file not found.
> 
> I found what seems to be a reop here:
> http://fisheye2.cenqua.com/browse/antlr/runtime/CSharp
> but I can't find a way to download more than one file at a time (.zip,
> .tgz and .tbz2 all give corrupt files)
> 
> What I want is enough documentation to be able to figure out what's
> what. Like; how do I manually pull all the tokens from a
> CommonTokenStream? (I'd love the answer to that one but "Teach a man to
> fish...")
> 
> Any help would be appreciated?

I have attached my driver class. I haven't pulled manually tokens yet from a stream, but I believe that NextToken() should do the trick. Would it be possible to write a page on the wiki about things you missed? It would be easier for you than for me, although I'll be of any assistance. :)

Johannes

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tool.cs
Type: text/x-csharp
Size: 2435 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080130/078b0b82/attachment.bin 


More information about the antlr-interest mailing list