Getting Started
Follow these instructions to build and run the Stride compiler and editor.
Prerequisites
- CMake >= 3.1
- Node.js >= 24.0
- LLVM 21.1.8
Installation
You can install these packages using the following commands:
# MacOS
brew install cmake node@24 llvm@21# Ubuntu/Debian
sudo apt install cmake nodejs llvm-21Installation
- Clone the repository:shThe
git clone https://github.com/VxTi/cstride.git cd cstridepackages/directory contains the compiler and editor source code.
Building the Compiler
Run the following commands from the project root directory:
cd packages/compiler
cmake -S . -B cmake-build-debug
cmake --build cmake-build-debug --target cstrideOptionally: Add the binary to your $PATH, if you wish to use it directly.
Running the Compiler
From the packages/compiler directory, you can either run it directly:
./cmake-build-debug/cstride <file_path>Or if you added it to your PATH:
cstride <file_path>Running the Editor
The web-based editor provides a convenient way to write Stride code with syntax highlighting and integrated terminal.
Prerequisites for Editor
node(>= 24.0)pnpm(Performant Node Package Manager)
Local Setup and Running
To run the editor locally on your machine:
Navigate to the editor directory:
shcd packages/editorInstall dependencies: Using
pnpmensures fast and efficient dependency management.shpnpm installStart the development server: Launch the editor in development mode.
shpnpm startAccess the Editor: Once started, the editor will be available at
http://localhost:5173. Open this URL in your web browser.
Features
- Real-time Syntax Highlighting: Visualizes Stride code structure.
- Integrated Terminal: Run your Stride programs directly within the editor environment.
- Local Development: Test changes to the editor itself or use it as your primary development environment for Stride.