Exemple #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;
 }
Exemple #2
0
 public InputNode(ArgListNode variables)
 {
     Children.Add(variables);
 }
 /// <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);
 }
Exemple #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);
 }
Exemple #5
0
 public PromptNode(ArgListNode variables)
 {
     Children.Add(variables);
 }