O Language Support

O Language support extension for VS Code and Cursor IDE providing syntax highlighting and REPL integration.
Features
Syntax Highlighting
- Full support for O language syntax:
- Keywords and control structures
- Built-in types
- Special constants (null and infinity values)
- Numbers (decimal, hexadecimal, boolean)
- Strings and comments
REPL Integration
- Start tachyon REPL directly from VS Code
- Evaluate code directly in the editor:
- Selected text (Cmd/Ctrl+Enter)
- Entire file (Cmd/Ctrl+Shift+Enter)
- Optional rlwrap support for better REPL experience
Language Features
- Comment toggling (line and block)
- Bracket matching
- Auto-closing pairs
- Basic indentation rules
Requirements
tachyon executable should be in PATH or configured
- Optional:
rlwrap for better REPL experience
Extension Settings
This extension contributes the following settings:
olang.tachyonPath : Path to tachyon executable (default: "tachyon")
olang.useRlwrap : Enable/disable rlwrap support (default: true)
Keybindings
Cmd/Ctrl+Enter - Evaluate selected text in REPL
Cmd/Ctrl+Shift+Enter - Evaluate current file in REPL
Commands
O: Start REPL - Start tachyon REPL
O: Evaluate Selection - Evaluate selected code
O: Evaluate File - Load current file in REPL
Installation
VS Code
Install from VS Code Marketplace:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "O Language"
- Click Install
Cursor IDE
Install from Extensions (Marketplace):
- Open Cursor
- Go to Extensions (Ctrl+Shift+X)
- Search for "O Language"
- Click Install
Links
| |