예제 #1
0
        public override void CaseAOctalConstExp(AOctalConstExp node)
        {
            int          i        = Convert.ToInt32(node.GetOctalLiteral().Text.Substring(1), 8);
            AIntConstExp intConst = new AIntConstExp(new TIntegerLiteral(i.ToString(), node.GetOctalLiteral().Line, node.GetOctalLiteral().Pos));

            node.ReplaceBy(intConst);
            intConst.Apply(this);
        }
예제 #2
0
 public override void CaseAOctalConstExp(AOctalConstExp node)
 {
     Value += node.GetOctalLiteral().Text;
 }