This extension provides support for the WACC language, a simple variant of the WHILE programming language designed for COMP50006 Compilers course at Imperial College London.
Install the extension.
You're done - the extension comes bundled with our compiler!
Commands to run the reference compiler from VSCode.
Check current WACC file (wacc-lang.check).
Compile current WACC file (wacc-lang.compile).
Execute current WACC file (wacc-lang.execute).
Syntax and semantic highlighting.
Providing code diagnostics (error and warnings).
Hover content displaying the symbol defintion.
Signature help displaying the function definition.
Frequency-based auto-completions for keywords and identifiers.
Finding the definition of a symbol.
Finding all references of a symbol.
Finding all symbols in a document.
Document formatting (beta).
Selection-based document formatting (beta).
The document formatter is still in beta stage and is known to have several bugs.
The semantic highlighting can be slow for large files. We are currently working hard so that it can make updates incrementally. If it turns out too slow for your use case, try disabling semantic highlighting by adding the following configuration in settings.json: