[antlr-interest] System.TypeLoadException when using namespace for
my own AST in C#
kototama kototama
kototamo at gmail.com
Mon Jul 17 10:20:23 PDT 2006
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/20060717/53ca3fd6/attachment.html
More information about the antlr-interest
mailing list