Skip to content
Adam
Tools

The Adam editor

A desktop editor that knows Adam: it checks, builds, runs and debugs your code.

Starting it

adam editor starts the Adam editor on its own, with each file named after it open, and returns at once. The editor is a desktop program built on Electron with the Monaco editor; it ships beside adam in res\editor. Its window has no file access of its own: its main process does every read and write. It runs where adam has a debugger for its host's programs (x86_64-windows-gnu today); elsewhere adam editor says CL0033, the command this host lacks.

Code it understands

Adam's colours come before the first check: the highlighter takes Adam's keywords, builtin types and context words from the compiler's own word tables, then the language server's semantic tokens colour each name by what it is. Everything the editor knows about the code comes from adam lsp (The language server): errors as you type, hover, go to definition, completion, parameter hints, the outline, workspace symbols (Ctrl+T), the call hierarchy (Shift+Alt+H) and Format Document (Shift+Alt+F).

Build, run, debug

The Build menu builds (Ctrl+B), runs (Ctrl+F5), stops (Shift+F5) and packs (Ctrl+Alt+B) the open program or project with adam (Building, Projects). The Debug menu starts or continues (F5), steps over (F10), into (F11) and out (Shift+F11) and pauses (F6) a program under adam dap (The debugger). A click in the margin sets a breakpoint, which moves with the text as it is edited. The DEBUG panel shows the call stack, the variables and watches; the debugged program runs in the TERMINAL tab, a real terminal that takes keys and keeps colours.

Projects and examples

File > New Project makes an exe, dll or lib project with adam init, and the explorer shows the open folders and Adam's bundled examples.

↑ ↓ moveEnter openEsc close