Commit c439c19
feat: Langium grammar (#470)
Closes partially #433.
### Summary of Changes
* Recreate grammar in [Langium](https://github.com/langium/langium)
### TODOs
- [x] More grammar tests
- [x] declarations
- [x] expressions
- [x] keywords as names
- [x] modules
- [x] schema
- [x] statements
- [x] trailing commas
- [x] types
- [x] Document how to write grammar tests
- [X] Resolve the grammar ambiguity warning
- [X] Fix error when hovering over modules members or class members
---------
Co-authored-by: megalinter-bot <[email protected]>1 parent e82240e commit c439c19
File tree
597 files changed
+4738
-2086
lines changed- .github/workflows
- DSL-langium
- bin
- src
- language-server
- constant
- grammar
- syntaxes
- tests
- grammar
- helpers
- resources
- grammar
- compilationUnits
- declarations
- annotation calls
- annotations
- classes
- attributes
- methods
- nested classes
- nested enums
- variants
- enums
- variants
- functions
- pipelines
- predicates
- goals
- steps
- expressions
- arithmetic operators
- block lambdas
- calls
- comparison operators
- equality operators
- expression lambdas
- indexed accesses
- literals
- float
- int
- string
- logical operations
- member accesses
- parenthesized expressions
- keywords as names
- modules
- schema
- statements
- assignments
- expression statements
- trailing commas
- trailingCommas
- types
- callable types
- member types
- named types
- union types
- helpers/listTestResources
- nested
- DSL/langium
- docs
- development
- language/common
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
597 files changed
+4738
-2086
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | | - | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
0 commit comments