[stringtemplate-interest] Using StringTemplate and ASTFrame in ANTLR in C#

kototama kototama kototamo at gmail.com
Sat Aug 26 14:44:56 PDT 2006


Hello,

I am using ANTLR 2.7.6  in C# for a compiler and StringTemplate.
I used the antlr.runtime.dll delivered with StringTemplate I've got the
following error :

" 'antlr.collections.AST' is defined in an unreferenced assembly. You should
reference the assembly 'antlr.runtime, Version=2.7.6.2, Culture=neutral,
PublicKeyToken=null'.
"

When I use my own version of antlr.runtime.dll I have this error a
TypeInitializationException here :

StreamReader rd = new StreamReader(templatePath_ + "/CCode.st");
            template_ = new StringTemplateGroup(rd); // <--- here

since StringTemplate expects this dll 'antlr.runtime, Version=2.7.6.2,
Culture=neutral, PublicKeyToken=d7701e059243744f'

I tried to build my own version of StringTemplate 2.2 by referencing my own
antlr.runtime.dll but then I've got this error :

'antlr.ASTPair' does not contains a definition for 'GetInstance'  (like if
stringtemplate was built for ANTLR 2.7.5 ?!)

I really need your help! Thanks in advance :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20060826/50638647/attachment.html


More information about the stringtemplate-interest mailing list