./gradlew customFatJar
You find the Jar here: build/libs/crossecore-generator_20200201-0643.jar
java -jar crossecore-generator.jar -L typescript -e Model.ecore -p
./output/mypackage/
usage: crossecore
-d <boolean> boolean=0 skips generation of html documentation.
boolean=1 enables generation of html documentation.
Default is 1.
-e <file> source file (.ecore)
-L <language> target programming language. Valid values are
typescript, csharp, java, swift.
-p <directory> target path
Download
- https://github.com/antlr/grammars-v4/blob/master/typescript/TypeScriptLexer.g4
- https://github.com/antlr/grammars-v4/blob/master/typescript/TypeScriptParser.g4
- https://github.com/antlr/grammars-v4/blob/master/typescript/Java/TypeScriptLexerBase.java
- https://github.com/antlr/grammars-v4/blob/master/typescript/Java/TypeScriptParserBase.java
Run the following command
java -jar antlr-4.8-complete.jar TypeScriptLexer.g4 -package antlr.typescript