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

Micheal J open.zone at virgin.net
Fri Sep 1 07:32:50 PDT 2006


What version of StringTemplate are you using (you mention trying to build
2.2 in your post)?. If possible, use the latest version - 2.3b7 (or is it
2.3b9?)...they are stable despite eing labelled as betas.
 
Only issue I can remember is that 2.3b7+ are strong named assemblies.
 
Micheal

-----------------------
The best way to contact me is via the list/forum. My time is very limited. 

-----Original Message-----
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of kototama
kototama
Sent: 26 August 2006 22:45
To: stringtemplate-interest at antlr.org
Subject: [stringtemplate-interest] Using StringTemplate and ASTFrame inANTLR
in C#


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
<http://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/20060901/98fec160/attachment.html


More information about the stringtemplate-interest mailing list