- Requires OpenGL 4.1 for the GUI version
- Install Rust and cargo (required for wasmtime)
- Install Nim version 2.2.0
- Clone the repository
- Run
nimble setup
By default builds will not include the ast language framework.
To enable these features pass -D:enableAst=true
respectively.
- Use
nimble buildDesktop
ornimble build
to compile the desktop version of the editor. - The release builds are built with:
- For the gui version:
nimble buildDesktop --app:gui -D:forceLogToFile -D:enableGui=true -D:enableTerminal=false
- For the terminal version:
nimble buildDesktop --app:console -D:forceLogToFile -D:enableGui=false -D:enableTerminal=true
- For the gui version:
- Go into the tree-sitter repositories root directory
- Make sure the cli is built
cargo build
- Compile the desired language to wasm. The specified directory is the one containing the
src
folder which in turn contains thegrammar.js
target/release/tree-sitter build-wasm ../dev/nimtreesitter/treesitter_nim/treesitter_nim/nim
- You need to have Emscripten installed.
- Run
nimble buildNimConfigWasm
from the root folder of the repository