Symbol Language Support for VS Code
Syntax highlighting and real-time error diagnostics for the Symbol programming language.
Features
- Syntax highlighting — color-coded Symbol code
- Real-time diagnostics — errors appear as you type
- LSP support — extensible language server protocol
Setup
Make sure symboli compiler is accessible:
# Add to PATH or configure in settings
export PATH="/path/to/symboli/bin:$PATH"
Configure the compiler path in VS Code settings:
{
"symbol.compilerPath": "/path/to/symboli"
}
Development
Build the extension:
npm install
npm run compile
Debug by pressing F5 in VS Code to launch the Extension Development Host.
How It Works
The LSP server validates .sym files by:
- Running
symboli --ast <file> to catch parse errors
- Running
symboli <file> to catch type and runtime errors
- Converting error output to VS Code diagnostics
Errors are displayed as red squiggles on the problematic line.
| |