Esempio n. 1
0
 public ExpNode(ExpressionNode leftOperand, ExpressionNode rightOperand) : base(leftOperand, rightOperand)
 {
     rules["IntType,IntType"]  = new IntType();
     rules["IntType,BoolType"] = new IntType();
     rules["BoolType,IntType"] = new IntType();
 }
Esempio n. 2
0
 public static void InitTypes()
 {
     types["int"]  = new IntType();
     types["bool"] = new BoolType();
 }