Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Langium grammar #470

Merged
merged 79 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
4209bd2
test: improve test for `listTestResources`
lars-reimann Apr 8, 2023
437c495
feat: remove `sdsschema` extension
lars-reimann Apr 8, 2023
c46b68d
test: grammar tests
lars-reimann Apr 8, 2023
b6417f8
ci: generate langium files
lars-reimann Apr 8, 2023
2570d83
feat: langium grammar
lars-reimann Apr 8, 2023
be9b8fc
feat: langium grammar
lars-reimann Apr 8, 2023
f473d4b
feat: langium grammar
lars-reimann Apr 8, 2023
ff0c33d
feat: langium grammar
lars-reimann Apr 8, 2023
1c37bdf
feat: langium grammar
lars-reimann Apr 8, 2023
9bcd85d
feat: langium grammar
lars-reimann Apr 8, 2023
7cb83c9
feat: langium grammar
lars-reimann Apr 8, 2023
51765c8
feat: langium grammar
lars-reimann Apr 8, 2023
067dc1d
feat: langium grammar
lars-reimann Apr 8, 2023
7ba6a1b
ci: compile TypeScript
lars-reimann Apr 8, 2023
619d0a2
build: fix build error
lars-reimann Apr 8, 2023
81dbfb4
build: fix build error
lars-reimann Apr 8, 2023
81ae951
build: fix broken paths
lars-reimann Apr 8, 2023
ba66571
build: ignore ts error
lars-reimann Apr 8, 2023
e11b67f
fix: some failing tests
lars-reimann Apr 8, 2023
fc0991c
fix: remove predicate tests
lars-reimann Apr 8, 2023
175266d
fix: some failing tests
lars-reimann Apr 8, 2023
5eb9784
feat: langium grammar
lars-reimann Apr 9, 2023
445f953
feat: langium grammar
lars-reimann Apr 9, 2023
382ed5c
feat: langium grammar
lars-reimann Apr 9, 2023
3d42b0f
feat: langium grammar
lars-reimann Apr 9, 2023
23b4d07
feat: langium grammar
lars-reimann Apr 9, 2023
4992ae2
fix: get all tests passing
lars-reimann Apr 9, 2023
1cfbb99
test: additional grammar tests
lars-reimann Apr 9, 2023
c6458e2
test: additional grammar tests
lars-reimann Apr 9, 2023
c972a35
feat: terminal fragments
lars-reimann Apr 9, 2023
a46f821
style: apply automated linter fixes
megalinter-bot Apr 9, 2023
c201ba3
build: specify base directory for tests
lars-reimann Apr 9, 2023
7076768
feat: remove parenthesized types
lars-reimann Apr 9, 2023
fd5fd48
fix: grammar ambiguity
lars-reimann Apr 10, 2023
e235dc1
style: apply automated linter fixes
megalinter-bot Apr 10, 2023
f52710b
fix: extension of test files
lars-reimann Apr 10, 2023
aa50ab6
refactor: fragment for annotations
lars-reimann Apr 10, 2023
0955d57
fix: incorrect parsing when module had multiple members without annot…
lars-reimann Apr 10, 2023
0eca39f
feat: remove "Abstract" infix from most interfaces to improve default…
lars-reimann Apr 10, 2023
208ca01
test: add missing trailing commas
lars-reimann Apr 10, 2023
a1060da
build: bump dependencies
lars-reimann Apr 10, 2023
82541a5
test: more grammar tests for modules
lars-reimann Apr 10, 2023
40d9e45
test: more grammar tests for escaped keywords
lars-reimann Apr 10, 2023
5876bab
test: more grammar tests for schemas
lars-reimann Apr 10, 2023
5715d0a
style: apply automated linter fixes
megalinter-bot Apr 10, 2023
a2c2056
docs: how to add grammar tests
lars-reimann Apr 10, 2023
3132d3b
style: apply automated linter fixes
megalinter-bot Apr 10, 2023
c74e3bf
docs: skipping a grammar test
lars-reimann Apr 10, 2023
ecede14
feat: clean up handling of constraints
lars-reimann Apr 10, 2023
7c47d2e
test: trailing commas should be allowed
lars-reimann Apr 10, 2023
b8553b8
style: apply automated linter fixes
megalinter-bot Apr 10, 2023
24d8b8a
test: more grammar tests for statements
lars-reimann Apr 11, 2023
244a222
chore: remove generated file
lars-reimann Apr 11, 2023
b462002
chore: ignore generated file
lars-reimann Apr 11, 2023
7d28e68
test: rename schema tests
lars-reimann Apr 11, 2023
27bf92b
test: rename statement tests
lars-reimann Apr 11, 2023
36716e7
feat: remove schema references
lars-reimann Apr 11, 2023
07c8394
feat: remove kinds of type parameters
lars-reimann Apr 11, 2023
d5dd5b2
test: more grammar tests for types
lars-reimann Apr 11, 2023
fda03e7
build: bump `vitest` to latest version
lars-reimann Apr 11, 2023
107ea73
test: wrap file paths in test name into square brackets for better vi…
lars-reimann Apr 11, 2023
f150636
test: grammar test for literals
lars-reimann Apr 12, 2023
550fe77
feat: language config
lars-reimann Apr 12, 2023
079d670
feat: additional grammar tests for expressions
lars-reimann Apr 12, 2023
f55f9eb
feat: additional grammar tests for expressions
lars-reimann Apr 12, 2023
a0757ab
feat: additional grammar tests for expressions
lars-reimann Apr 12, 2023
dabac26
feat: additional grammar tests for expressions
lars-reimann Apr 12, 2023
39700b2
feat: additional grammar tests for expressions
lars-reimann Apr 12, 2023
9157398
style: apply automated linter fixes
megalinter-bot Apr 12, 2023
094175b
test: more grammar tests for statements
lars-reimann Apr 13, 2023
85691e7
test: more grammar tests for steps
lars-reimann Apr 13, 2023
dd0edb0
test: grammar tests for annotation calls
lars-reimann Apr 13, 2023
e5fcd3c
test: grammar tests for pipelines
lars-reimann Apr 13, 2023
018c9ba
test: grammar tests for functions
lars-reimann Apr 13, 2023
389825b
feat: grammar tests for annotations
lars-reimann Apr 13, 2023
baef54e
feat: grammar tests for enums
lars-reimann Apr 13, 2023
fce0e55
feat: grammar tests for class attributes and methods
lars-reimann Apr 13, 2023
d51e57e
fix: error when hovering over class members
lars-reimann Apr 13, 2023
fa9f2cb
test: remaining grammar tests for classes 🎉
lars-reimann Apr 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
build/
dist/
out/

# DSL-langium
/DSL-langium/vitest.config.ts
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate Langium files
run: npm run langium:generate

- name: Compile TypeScript
run: npm run build

- name: Test with Vitest
run: npm run test-with-coverage

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate Langium files
run: npm run langium:generate

- name: Compile TypeScript
run: npm run build

- name: Test with Vitest
run: npm run test-with-coverage

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ coverage/
dist/
dist-ssr/
out/
/DSL-langium/syntaxes/safe-ds.tmLanguage.json

# Gradle
.gradle/
Expand Down
2 changes: 1 addition & 1 deletion DSL-langium/bin/cli
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node

require("../out/cli").default();
require("../out/src/cli").default();
2 changes: 1 addition & 1 deletion DSL-langium/langium-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": "safe-ds",
"grammar": "src/language-server/grammar/safe-ds.langium",
"fileExtensions": [".sdspipe", ".sdsschema", ".sdsstub", ".sdstest"],
"fileExtensions": [".sdspipe", ".sdsstub", ".sdstest"],
"textMate": {
"out": "syntaxes/safe-ds.tmLanguage.json"
}
Expand Down
10 changes: 7 additions & 3 deletions DSL-langium/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
["(", ")"],
["»", "«"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["»", "«"],
["\"", "\""],
["'", "'"]
["`", "`"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["<", ">"],
["»", "«"],
["\"", "\""],
["'", "'"]
["`", "`"]
]
}
Loading