use of org.btrplace.safeplace.spec.antlr.CstrSpecLexer in project scheduler by btrplace.
the class SpecScanner method getTokens.
private static CommonTokenStream getTokens(String source) throws IOException {
CharStream is = CharStreams.fromReader(new StringReader(source));
CstrSpecLexer lexer = new CstrSpecLexer(is);
lexer.removeErrorListeners();
lexer.addErrorListener(new DiagnosticErrorListener());
return new CommonTokenStream(lexer);
}
Aggregations