parse method

List<Stmt> parse()

Implementation

List<Stmt> parse() {
  List<Stmt> statements = [];
  while (!isAtEnd()) {
    Stmt? decl = declaration();
    if (decl != null) {
      statements.add(decl);
    }
  }
  return statements;
}