//Push string literal to stack
 public override void ExitStringLiteral([NotNull] CmanParser.StringLiteralContext context)
 {
     _nodes.Push(new ASTStringLiteralNode(context, _nodes.Peek()));
 }
Exemple #2
0
 public ASTStringLiteralNode(CmanParser.StringLiteralContext context, ASTNode parent)
     : base(parent)
 {
     SetLocation(context);
     Value = context.STRING().GetText().Trim(new char[] { '"' });
 }