Skip to content

Commit

Permalink
Added fragment options description
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuebner committed Nov 2, 2023
1 parent 1f86e07 commit 1f3f840
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ language = StandardLanguage {
```
After running the workflow you will find the generated Langium output in `./langium` folder.
##### Fragment options
- `outputPath` - Target output folder
- `prefixEnumLiterals` - If `true`, enum literal types will be prefixed with the enum type name to avoid name conflicts with other enum literals. Default is `true`. Example: `enum Color: RED;` will create: `Color returns Color: Color_RED; Color_RED returns string: 'RED';`
- `useStringAsEnumRuleType` - If `true`, Enum types will be handled as strings. Only relevant for generated metamodels. Default is `false`.
- `generateEcoreTypes` - If `true`, types from the Ecore metamodel will also be generated. If `false`, ecore data types will be replaced with Langium data types. Types that are not convertible to Langium built in types will be generated as string. Default is `false`.
- `removeOverridenRules` - In case a rule from the imported grammar was overwritten, Langium will report a duplicate error. If `true`, the super grammar rules will be skipped in favour of the current grammar rules. Default is `false`.

0 comments on commit 1f3f840

Please sign in to comment.