[antlr-interest] System.TypeLoadException when using namespace
formy own AST in C#
Micheal J
open.zone at virgin.net
Wed Jul 19 23:08:47 PDT 2006
Yes. Use the fully qualified name for your type (including
version/public-key-token if in a strong-named assembly).
Micheal
-----------------------
The best way to contact me is via the list/forum. My time is very limited.
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of kototama kototama
Sent: 17 July 2006 18:20
To: antlr-interest at antlr.org
Subject: [antlr-interest] System.TypeLoadException when using namespace
formy own AST in C#
Hello,
I have something like this in my grammar file for the parser :
headers {
using Ktmc;
}
[...]
tokens {
[...]
METHOD_DEF<AST=MyAST>;
}
and MyAST is defined like this (I use C# and antlr 2.7.6) :
namespace Ktmc
{
class MyAST : antlr.CommonAST
{
[...]
It doesn't work at all !!! When running the application I've got the
following problem :
Error : System.TypeLoadException : Unable to load AST Node Type: 'MyAST'
at antlr.ASTFactory.loadNodeTypeObject(String nodeTypeName)
What is surprising is that it works perfectly well if I doesn't put MyAST in
a namespace! Any ideas ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060720/0cc02692/attachment.html
More information about the antlr-interest
mailing list