Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Implementation of Space DSL

This repository contains the implementations – in MPS, C#, and TypeScript – of an example “**Space DSL**”.
This DSL and its implementations are going to be demoed during the [LangDev CON2025](https://langdevcon.org) conference — specifically during the [“LionWeb’s delta protocol: incremental model changes”](https://langdevcon.org/2025/abstracts#20) talk.
This DSL and its implementations are going to be demoed during the [LangDev 2025](https://langdevcon.org) conference — specifically during the [“LionWeb’s delta protocol: incremental model changes”](https://langdevcon.org/2025/abstracts#20) talk.
The specific purpose is to show that and how the [delta protocol](https://github.com/LionWeb-io/specification/blob/main/delta/delta-api.adoc) works.
The playbook for the demo is described in [`playbook.md`](./playbook.md).

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUN npm i
WORKDIR /app/ts/packages/build
RUN npm run generate

WORKDIR /app/ts/packages/editor
WORKDIR /app/ts/packages/react-client

CMD ["npm", "run", "prod"]
4 changes: 2 additions & 2 deletions playbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Preparation
1. Delete generated files
* `space-demo/ts/packages/editor/src/gen/*`
* `space-demo/ts/packages/react-client/src/gen/*`
* `space-demo/cs/SpaceDemo.Languages/Languages/*`
* `space-demo/chunks/*`

Expand All @@ -19,7 +19,7 @@

1. Open another Console tab "RunTs" in `space-demo/ts/`
* Run `npm i`
* Change to `space-demo/ts/packages/editor`
* Change to `space-demo/ts/packages/react-client`
* Type `npm run dev`

1. Open MPS 2021.3 with project `space-demo/mps`
Expand Down
16 changes: 12 additions & 4 deletions ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,27 @@ This (sub-)project contains two packages:
$ npm run generate
```

* `editor`: An implementation of a Web app with which to edit a model according to the space DSL.
* `react-client`: An implementation of a model client (using React) with which to edit a model according to the space DSL.

Start the Web app in development mode as follows, from inside the `editor` package:
Start the Web app in development mode as follows, from inside the `react-client` package:

```shell
$ npm run dev
$ npm start
```

Start the Web app in “production” mode as follows, from inside the `editor` package:
Start the Web app in “production” mode as follows, from inside the `react-client` package:

```shell
$ npm run prod
```

* `daga-client`: An implementation of a model client (using Daga) with which to edit a model according to the space DSL.

Start the Web app in development mode as follows, from inside the `daga-client` package:

```shell
$ npm start
```

* `echo-ws-server`: A simple WebSocket server that just echoes everything it receives to the console.

128 changes: 64 additions & 64 deletions ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ts/packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"generate": "node dist/generate.js"
},
"devDependencies": {
"@lionweb/class-core-generator": "0.7.2-beta.4",
"@lionweb/io-lionweb-mps-specific": "0.7.2-beta.4",
"@lionweb/json": "0.7.2-beta.4",
"@lionweb/utilities": "0.7.2-beta.4",
"@lionweb/class-core-generator": "0.8.0-beta.3",
"@lionweb/io-lionweb-mps-specific": "0.8.0-beta.3",
"@lionweb/json": "0.8.0-beta.3",
"@lionweb/utilities": "0.8.0-beta.3",
"@types/node": "24.7.0",
"typescript": "5.9.3"
}
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/build/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spaceLanguages.forEach((language) => {
writeFileSync(`artifacts/${language.name}.puml`, generatePlantUmlForLanguage(language))
})

generateApiFromLanguages(spaceLanguages, "../editor/src/gen")
generateApiFromLanguages(spaceLanguages, "../react-client/src/gen")


const modelJson = readFileAsJson("../../../chunks/voyager1.instance.json") as LionWebJsonChunk
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading