Exemplo n.º 1
0
 public static Statement ParseBlock(Scanner scanner)
 {
     BlockStatement block = new BlockStatement();
     while (!scanner.TryGetEnd())
     {
         block.Statements.Add(ParseStatement(scanner));
     }
     return block;
 }
Exemplo n.º 2
0
        public static Statement ParseBlock(Scanner scanner)
        {
            BlockStatement block = new BlockStatement();

            while (!scanner.TryGetEnd())
            {
                block.Statements.Add(ParseStatement(scanner));
            }
            return(block);
        }