[antlr-interest] A problem with loading AST Node type occured.

=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?= sunjigang1965 at yahoo.com.cn
Tue Feb 7 00:39:52 PST 2006


A problem with loading AST Node type occured.
   
  Here is my simplest grammar:
   
   primaryExp
  :
   INTEGER_LITERAL <AST=INTNode>
  ;

   
  INTNode class
   
   public abstract class Expr : antlr.BaseAST{
  public abstract int value();
 }
   
   public class INTNode:Expr{
  int val=0;
  public INTNode(Token tok){
   val=int.Parse(tok.getText());
   }
  public override int value(){
   return val;
  }
  
  public override  void initialize(AST t){
  }
  public override  void initialize(IToken t){
  }
  public override  void initialize(int i,string s){
  }
 }
   
  I have just newly downloaded Microsoft Framework 2.0, but the problem is still persisted.
   
  Jigang

		
---------------------------------
 ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ
 ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060207/1ecf0843/attachment.html


More information about the antlr-interest mailing list