use of org.openmuc.jasn1.compiler.parser.ASNParser in project jasn1 by openmuc.
the class Compiler method getJavaModelFromAsn1File.
private static AsnModel getJavaModelFromAsn1File(String inputFileName) throws Exception {
InputStream stream = new FileInputStream(inputFileName);
ASNLexer lexer = new ASNLexer(stream);
ASNParser parser = new ASNParser(lexer);
AsnModel model = new AsnModel();
parser.module_definitions(model);
return model;
}
Aggregations