Skip to content

Commit

Permalink
HelloWorld example language
Browse files Browse the repository at this point in the history
  • Loading branch information
arminzavada committed Oct 17, 2024
1 parent 07216e1 commit 7566330
Show file tree
Hide file tree
Showing 16 changed files with 4,043 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Continuous Integration
on:
push:
branches:
- '**'
jobs:
build:
name: Homework 2 Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Build
run: npm run build
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/tasks.json
node_modules/
out/
src/language/generated/
syntaxes/
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ASE Labs
# ASE Labs HW2 starter

Practice material for the Automated Software Engineering (VIMIAC20) course.
This is the starter project for the second homework exercise. You should use the Langium playground to design and test out your language.

Once you feel it is finished copy the created language grammar into the `src/language/hw-2.langium` file. This project is prepared with GitHub Actions that will fail if you have made some mistakes.

The detailed exercise can be found at https://github.com/ftsrg-edu/ase-labs/wiki/Homework-Part-2-%E2%80%90-Textual-Modeling.
12 changes: 12 additions & 0 deletions langium-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"projectName": "Hw2",
"languages": [{
"id": "hw-2",
"grammar": "src/language/hw-2.langium",
"fileExtensions": [".hw2"],
"textMate": {
"out": "syntaxes/hw-2.tmLanguage.json"
}
}],
"out": "src/language/generated"
}
Loading

0 comments on commit 7566330

Please sign in to comment.