This is an early prototype of a language/editor for web development. It is implemented as an MPS language.
Components are compiled to Svelte-compatible JavaScript module.
The compiled components can be used as any other Svelte components:
- Imported from other svelte components:
<script> import Nested from './languages/ce3/sandbox/source_gen/ce3/sandbox/Nested'; </script> <Nested time={10} />
- Instantiated from the main js file:
import Main from './languages/ce3/sandbox/source_gen/ce3/sandbox/Main'; const app = new Main({ target: document.body, });
For ce3 to know about a native html tag, it must be declared as a builtin component.
Some tags are declared in ce3 > accessories > ce3.components.builtin
.
Feel free to add more if you need them.
- Clone submodules
git submodule update --init --recursive
- Run
npm install
- Open project in MPS-2019.2
- Run
Make Project
- Run
npm run build
- Open
index.html