LingDong- / wax4vscode

Extension for the wax programming language in VS Code (highlight + transpile + run)

Home Page:https://github.com/LingDong-/wax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wax4vscode

A VS Code extension for the wax programming language. Provides syntax highlighting as well as IDE-like features.

wax is a tiny language designed to transpile to other languages easily. Currently supported backends: C, C++, Java, TypeScript, Python, C#, Swift, Lua, as well as directly to WebAssembly.

More about wax here, there's also an online playground.

Features

The extension assumes that waxc is installed in your PATH. If you use the 'run code' feature, the selected target language's compiler/interpreter is also assumed to be installed. e.g. gcc for C/C++, or python for Python, etc.

Syntax highlight for .wax files

Transpile + Compile + Run in one command

⌘⇧P waxc run

Supports drawing SVG output directly!

Transpile to 9 target languages

⌘⇧P waxc set target language
⌘⇧P waxc transpile

Lint on file save

Lint result shown in status bar.

To toggle lint off, use

⌘⇧P waxc toggle lint on save

Show Abstract Syntax Tree

⌘⇧P waxc print syntax tree

Installation

Clone into ~/.vscode/extensions

About

Extension for the wax programming language in VS Code (highlight + transpile + run)

https://github.com/LingDong-/wax


Languages

Language:TypeScript 100.0%