sevar83 / ExpressOMG

Parses a schema file (.exp) in EXPRESS language and returns an easy to access data structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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")...

About

Parses a schema file (.exp) in EXPRESS language and returns an easy to access data structure


Languages

Language:GAP 55.5%Language:Java 44.5%