The Glossa extension provides full support for writing, parsing, and linting programs in the Glossa programming language directly in Visual Studio Code. It integrates a robust interpreter and static analysis features to give immediate feedback on syntax, semantics, and type errors.
Features
Syntax Highlighting: Fully highlights Glossa keywords, identifiers, constants, and operators.
Dialect Support: Supports multiple dialects, currently glossa and pseudoglossa.
Linting & Diagnostics: Real-time diagnostics using the interpreter's dry-run evaluation, highlighting errors in the editor.
Semantic Checks: Detects type mismatches, undeclared variables, constant assignments, invalid indexing, subprogram call errors, and more.
Error Codes: All errors are categorized with consistent error codes (GLOxxx).
Dry-run Evaluation: Evaluates expressions and foresees errors before the program is run.
Integration with VS Code Terminal: All in input and output operations are done with the VS Code Terminal.
Requirements
Visual Studio Code (1.80+ recommended)
Extension Settings
glossa.dialect: Selects the program's dialect (glossa or pseudoglossa).
glossa.dialectLanguage: Selects the program's language (greek or english).
Known Issues
The switch statement has not been implemented yet.