public ASTVariableNode(CmanParser.VarContext context, ASTNode parent) : base(parent) { SetLocation(context); Name = context.children.First(x => x is CmanParser.NameContext).GetText(); }
//Push variable node to stack public override void ExitVar([NotNull] CmanParser.VarContext context) { _nodes.Push(new ASTVariableNode(context, _nodes.Peek())); }