use of com.beanit.asn1bean.compiler.parser.ASNParser in project jasn1 by openmuc.
the class Compiler method getJavaModelFromAsn1File.
private static AsnModel getJavaModelFromAsn1File(String inputFileName) throws Exception {
AsnModel model = new AsnModel();
try (InputStream stream = new BufferedInputStream(Files.newInputStream(Paths.get(inputFileName)))) {
ASNLexer lexer = new ASNLexer(stream);
ASNParser parser = new ASNParser(lexer);
parser.module_definitions(model);
}
return model;
}
Aggregations