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