1 package ro.infoiasi.donald.compiler.parser; 2 3 import ro.infoiasi.donald.compiler.cfg.*; 4 import java.io.*; 5 import java.util.*; 6 7 public interface Parser { 8 9 CFG getGrammar(); 10 Lexer getLexer(); 11 void setLexer(String className, String fileName) 12 throws ClassNotFoundException , 13 FileNotFoundException, 14 ClassCastException , 15 NoSuchMethodException , 16 InstantiationException , 17 IllegalAccessException ; 18 void setLexer(Class lexerClass, String fileName) 19 throws ClassNotFoundException , 20 FileNotFoundException, 21 ClassCastException , 22 NoSuchMethodException , 23 InstantiationException , 24 IllegalAccessException ; 25 26 void precompute(); 27 List parse() throws IOException, SyntaxError; 28 } 29 | Popular Tags |