Skip to content

onelivesleft/the-language

Repository files navigation

The Language - Jai Language support

VSCode extension for Jai language support.

Syntax highlighting: Screenshot

Highlight language inside herestring (postfix HERE with language ID)... Screenshot

...which lets you nicely embed shaders Screenshot

Uses Markdown for docstrings Screenshot

Comment tags + checklists Screenshot

Autocomplete x64 instructions Screenshot

IDE-like functionality

Note: this feature is far from polished!

The extension provides Rename, Definition and Reference Providers. These work using the compiler, using the now-standard metaprogram plugin interface, so you only have to specify the compiler's location (path to the executable) and which .jai file you use to build your project in the extension settings. To do so, in the project folder make a .vscode/settings.json file that looks like this:

// Place your settings in this file to overwrite default and user settings.
{
    "the-language.pathToJaiExecutable": "c:\\path\\to\\jai.exe", // You might want to set a good default path for this in VS Code's graphical "Extension Settings" editor. 
    "the-language.projectFile": "c:\\path\\to\\build.jai"
}

This method works both for simple programs that use the Default_Metaprogram, and for projects that setup their own workspaces.

About

Jai language vscode extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages