Example #1
0
 public NumberExpression(Num num)
 {
     Num = num;
     AddAttribute(new NumAttr(num));
 }
Example #2
0
 public NumAttr(Num num)
 {
     Num = num;
 }
Example #3
0
 public ArrayDeclaration(Terminal type, Id id, Num size)
     : base(type, id)
 {
     Size = size;
     AddAttribute(new NumAttr(size));
 }
Example #4
0
 public override Symbol GetCopy(string str)
 {
     var num = new Num();
     num.SetValue(str);
     return num;
 }