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