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.
Screenshot
Quickstart
Install the extension.
You're done - the extension comes bundled with our compiler!
Features
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).
Rename support.
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).
Issues
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: