Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 643 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 643 Bytes

ExpressOMG (EXPRESS Object Model Generator)

Library for parsing a schema written in the EXPRESS language (.exp file). Produces a DOM-like structure.

Based on ANTLR and http://osexpress.sourceforge.net/exparser.html

Usage

  1. Build it as a jar and add it as a dependency to your project
  2. Generate the Object Model like this:
FileInputStream in = new FileInputStream(new File("schema.exp"));
ExpressObjectModel objectModel = new ExpressOMG(inputStream).generate();		
// Now the schema is fully parsed and objectModel is ready for interrogation. For example:
objectModel.getSchemas().get("schema1").getTypes().get("MyType1")...