public class BasicParserHelper extends Object
Constructor and Description |
---|
BasicParserHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getAnnotatedDOT(ParseTree tree,
Annotations annotater) |
static BasicParser |
getParser(CharStream stream,
Logger logger) |
static Pair<BasicParser,List<LogRecord>> |
getParserWithLog(Path file,
Logger logger) |
static Pair<BasicParser,List<LogRecord>> |
getParserWithLog(String code,
Logger logger) |
static List<LogRecord> |
makeListLog(Logger logger) |
public static Pair<BasicParser,List<LogRecord>> getParserWithLog(Path file, Logger logger) throws IOException
IOException
public static Pair<BasicParser,List<LogRecord>> getParserWithLog(String code, Logger logger)
public static BasicParser getParser(CharStream stream, Logger logger)
public static String getAnnotatedDOT(ParseTree tree, Annotations annotater)