diff --git a/src/main/java/org/sablecc/sablecc/SableCC.java b/src/main/java/org/sablecc/sablecc/SableCC.java index 098a580155d801575395f9d44bb750c0f544c702..30800ad22c950da2a642d91060c6276a8a947d7e 100644 --- a/src/main/java/org/sablecc/sablecc/SableCC.java +++ b/src/main/java/org/sablecc/sablecc/SableCC.java @@ -252,21 +252,10 @@ public class SableCC { System.out.println("Generating utility classes."); tree.apply(new GenUtils(ast_ids)); - try { - System.out.println("Generating the lexer."); - tree.apply(new GenLexer(ids)); - } catch (RuntimeException e) { - System.out.println(e.getMessage()); - throw e; - } + System.out.println("Generating the lexer."); + tree.apply(new GenLexer(ids)); - try { - System.out.println("Generating the parser."); - tree.apply(new GenParser(ids, alt_ids, transform_ids, ast_ids - .getFirstAstProduction(), processInlining, prettyPrinting)); - } catch (RuntimeException e) { - System.out.println(e.getMessage()); - throw e; - } + System.out.println("Generating the parser."); + tree.apply(new GenParser(ids, alt_ids, transform_ids, ast_ids.getFirstAstProduction(), processInlining, prettyPrinting)); } }