1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# CPSC Bundle
Open a `.cps` file, enter its input in **Input**, and click **Run**. The file is saved before running. Program output and errors appear in **Output**, with compiler errors colored. Click **Stop** to end a running program.
Closing a window or quitting the app automatically saves changes. New files ask for a save location before running or closing; canceling or a save failure keeps the window open and prevents running. An unchanged blank window closes without saving. Closing a running window stops its program first.
Shortcuts use Cmd on macOS and Ctrl on Windows: **N** new, **Shift+N** new window, **O** open, **S** save, **F** find, **/** toggle line comment. **F5** alone runs or stops the program. The menu bar lists these commands with their shortcuts: at the top of the screen on macOS, at the top of each window on Windows. Each window has its own file, Input and Run.
Nightly provides a standalone Windows x64 `.exe` and a macOS Apple Silicon `.tar.xz` containing the `.app`. Windows extracts the included `cpsc.exe` into the current working directory on startup; macOS keeps it inside the `.app`. Windows uses the system WebView2 runtime.
The editor shares the VS Code plugin's highlighting and indentation rules, including PP_DEFINE, PP_UNDEF, PP_IFDEF, PP_IFNDEF and PP_ENDIF. Preprocessor conditions do not add indentation. The included compiler supports these file-local switches and uses PP_DEFINE __LIB for library code.
For development and build instructions, see [AGENTS/DEVELOPMENT.md](AGENTS/DEVELOPMENT.md).
At startup the Bundle checks whether a newer nightly exists and tells you where to download it; it never updates itself.
|