Ejemplo n.º 1
0
 IASTElement IParsable.Parse(Lexer lexer, IASTElement parent)
 {
     while (!lexer.InspectEOF())
     {
         lexer.GobbleWhitespace();
         // find a valid command
         IASTElement cmd = new ASTCommand();
         Children.Add(cmd.Parse(lexer, this));
         lexer.GobbleWhitespace();
     }
     return(this);
 }