Ejemplo n.º 1
0
 public ASTBoolLiteralNode(CmanParser.BoolLiteralContext context, ASTNode parent)
     : base(parent)
 {
     if (context.TRUE() != null)
     {
         Value = true;
     }
     else
     {
         Value = false;
     }
     SetLocation(context);
 }
Ejemplo n.º 2
0
 public override void EnterBoolLiteral([NotNull] CmanParser.BoolLiteralContext context)
 {
     _nodes.Push(new ASTBoolLiteralNode(context, _nodes.Peek()));
 }