A Visual Studio Code extension that provides syntax highlighting and language support for the Wrench interpreted language.
- Syntax Highlighting: Full syntax highlighting for Wrench keywords, operators, strings, numbers, and comments
- Language Configuration: Auto-closing brackets, comment toggling, and proper indentation
- File Association: Supports
.wrand.wrenchfile extensions
- Control flow:
if,else,while,do,for,switch,case,default,break,continue,return,yield - Declarations:
var,function,struct,new,export,enum - Constants:
true,false,null,undefined
- 32-bit integers and floats
- Strings (single and double quoted)
- Arrays and hash tables
- Structs and enums
- Single-line comments:
// - Multi-line comments:
/* */
- Arithmetic:
+,-,*,/,%,++,-- - Comparison:
==,!=,>=,<=,>,< - Logical:
||,&&,! - Bitwise:
|,&,^,>>,<<,~ - Assignment:
=,+=,-=,*=,/=,%=,|=,&=,^=,>>=,<<= - Global scope:
::
- Clone or download this repository
- Install the VSCode Extension Manager:
npm install -g vsce - Package the extension:
vsce package - Install the generated
.vsixfile in VSCode usingcode --install-extension wrench-language-support-1.0.0.vsix(replacing the version number with the appropriate one from the build)
- Copy this folder to your VSCode extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions - macOS:
~/.vscode/extensions - Linux:
~/.vscode/extensions
- Windows:
- Restart VSCode
Wrench is a compact, embedded scripting language designed for microcontrollers and embedded systems. It features:
- C-like syntax with weak typing
- Small footprint (~32k ROM, ~1k RAM)
- Native support for 32-bit integers, floats, and strings
- Cooperative multi-threading and yielding
- Easy integration with native code
For more information, visit:
This extension is based on the Wrench language specification. If you find any issues or want to contribute improvements, please feel free to submit issues or pull requests.
This extension is provided as-is for the Wrench programming language community.