Esempio n. 1
0
 public override void CaseAHexConstExp(AHexConstExp node)
 {
     int i = Convert.ToInt32(node.GetHexLiteral().Text.Substring(2), 16);
     AIntConstExp intConst = new AIntConstExp(new TIntegerLiteral(i.ToString(), node.GetHexLiteral().Line, node.GetHexLiteral().Pos));
     node.ReplaceBy(intConst);
     intConst.Apply(this);
 }
 public virtual void OutAHexConstExp(AHexConstExp node)
 {
     DefaultOut(node);
 }
 public virtual void CaseAHexConstExp(AHexConstExp node)
 {
     DefaultCase(node);
 }
 public virtual void InAHexConstExp(AHexConstExp node)
 {
     DefaultIn(node);
 }
 public override void CaseAHexConstExp(AHexConstExp node)
 {
     InAHexConstExp(node);
     if (node.GetHexLiteral() != null)
     {
         node.GetHexLiteral().Apply(this);
     }
     OutAHexConstExp(node);
 }
Esempio n. 6
0
 ArrayList New328()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     THexLiteral thexliteralNode2 = (THexLiteral)nodeArrayList1[0];
     AHexConstExp pexpNode1 = new AHexConstExp (
       thexliteralNode2
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
 public override void CaseAHexConstExp(AHexConstExp node)
 {
     Value += node.GetHexLiteral().Text;
 }