[antlr-interest] Assembly for Antlr.Runtime namespace
Johannes Luber
jaluber at gmx.de
Wed Jan 23 11:04:30 PST 2008
Dejas Ninethousand schrieb:
> That directory structure did not exist in the jar; however, I downloaed
> antlr-3.0.1.tar.gz source distro and found four .dll files in
> /runtime/CSharp/bin/net-2.0 including antlr.runtime.dll.
>
> After adding those dlls to my references list, I attempted to compile
> but now get two errors:
>
> Error 2 An object reference is required for the non-static field,
> method, or property 'Antlr.Runtime.Debug.DebugParser.dbg'
> C:\projects\AGLInterpExp\AGLParser.cs 52 59 AGLInterpExp
> Error 3 An object reference is required for the non-static field,
> method, or property ' Antlr.Runtime.Debug.DebugParser.dbg'
> C:\projects\AGLInterpExp\AGLParser.cs 52 59 AGLInterpExp
>
>
> that line (59) line is:
>
> protected ITreeAdaptor adaptor = new DebugTreeAdaptor(dbg, new
> CommonTreeAdaptor());
>
> dbg does not appear to be defined as a field in surrounding ANTLRWorks
> generated "AGLParser.cs" file. Is it perhaps expecting that member to
> be inherited from DebugParser but for some reason is not?
>
> -- Dejas
The problem is probably that the DLLs of 3.0.1 aren't binary compatible
to 3.1 generated files. ANTLRworks 1.1.5 uses already a pre-3.1 so you
have to took in an intermediate build for that directory structure (or
at least runtime/CSharp, in case the releases cut the structure).
Johannes
More information about the antlr-interest
mailing list