Esempio n. 1
0
 /// <summary>
 /// Parse the specified parser.
 /// </summary>
 /// <param name="parser">Parser.</param>
 public static ArgListNode Parse(Parser parser)
 {
     ArgListNode ret = new ArgListNode();
     ret.Children.Add(ExpressionNode.Parse(parser));
     while (parser.AcceptToken(TokenType.Comma))
         ret.Children.Add(ExpressionNode.Parse(parser));
     return ret;
 }
Esempio n. 2
0
 public InputNode(ArgListNode variables)
 {
     Children.Add(variables);
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TIBASIC.Parser.FunctionCallNode"/> class.
 /// </summary>
 /// <param name="target">Target.</param>
 /// <param name="arguments">Arguments.</param>
 public FunctionCallNode(AstNode target, ArgListNode arguments)
 {
     Children.Add(target);
     Children.Add(arguments);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TIBASIC.Parser.DispNode"/> class.
 /// </summary>
 /// <param name="args">Arguments.</param>
 public DispNode(ArgListNode args)
 {
     Children.Add(args);
 }
Esempio n. 5
0
 public PromptNode(ArgListNode variables)
 {
     Children.Add(variables);
 }