eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
754 stars 68 forks source link

Add CLI command to generate a langium file with type declarations #441

Closed spoenemann closed 1 year ago

spoenemann commented 2 years ago

Add an infer-types command to langium-cli that runs the type inference (type collector) and generates a type declaration for every inferred type. The result shall be written to a file types.langium in the CWD or an output file specified with an -o / --output option.

See https://github.com/langium/langium/issues/385#issuecomment-1017867845.

spoenemann commented 1 year ago

Done with #754.