Browse Source

Add backend docs

github-actions
Garrit Franke 2 years ago
parent
commit
37d0bc4c34
  1. 4
      README.md
  2. 2
      docs/SUMMARY.md
  3. 0
      docs/developers/SUMMARY.md
  4. 18
      docs/developers/backends.md

4
README.md

@ -8,9 +8,9 @@ It is meant to "just work", without adding unnecessary and bloated language feat
## State of this projects
Basic algorithms like the fibonacci sequence should compile fine. More sophisticated programs will not work yet. See [TODO](./TODO) for a roadmap.
Basic algorithms should compile fine. See the [examples](./examples) More sophisticated programs will not work yet. See [TODO](./TODO) for a roadmap.
The Sabre compiler emits JavaScript, until the language has matured sufficiently. Backends for WASM, C, x86 and ARM are planned.
The Sabre compiler emits JavaScript, and a C backend is currently in development. Backends for WASM, x86 and ARM are planned.
## Examples

2
docs/SUMMARY.md

@ -6,3 +6,5 @@
- [Common language concepts](./concepts/SUMMARY.md)
- [Variables](./concepts/variables.md)
- [Data Types](./concepts/datatypes.md)
- [Developer Resources](./developers/SUMMARY.md)
- [Backends](./developers/backends.md)

0
docs/developers/SUMMARY.md

18
docs/developers/backends.md

@ -0,0 +1,18 @@
# Backends
Sabre currently implements a JavaScript backend, but a C backend is in development. WASM, ARM and x86 are planned.
The backend can be specified in the `Cargo.toml` file in the root of the project:
```toml
[features]
...
default = ["backend_c"]
```
## Available Backends
| Target Language | Identifier | Stability notice |
| :-------------- | :------------- | :-------------------- |
| Node.js | `backend_node` | mostly stable |
| C | `backend_c` | in active development |
Loading…
Cancel
Save