The MowaLang extension for Visual Studio Code provides support for the MowaLang programming language, featuring syntax highlighting, autocompletion, a custom file icon, and easy execution via CodeLens.
Features
Run Files: Execute .mowa files using the "Run MowaLang" CodeLens link above your code or via the Command Palette (Ctrl+Shift+P > Run MowaLang).
Syntax Highlighting: Highlights MowaLang keywords like idhi, mowa, okavela, theesko, and more.
Autocompletion: Offers snippets for key constructs (e.g., okavela for if-else, enchuko for switch) to speed up coding.
Custom Icon: Displays a unique icon for .mowa files in the File Explorer.
Requirements
MowaLang CLI: Ensure the mowa command (mowa -r "<file>") is installed and available in your system PATH.
File Extension: Save files with the .mowa extension. On Windows, enable file extensions in File Explorer (View > File name extensions).
Installation
Install the extension from the VS Code Marketplace or by loading the .vsix file in VS Code (Extensions > ... > Install from VSIX).
Verify the MowaLang CLI is accessible:
where mowa
If not found, add the CLI to your system PATH or specify its full path in commands.
Usage
Open a .mowa file (identified by the MowaLang icon in File Explorer).
Click the "Run MowaLang" link above the code (CodeLens) or use the Command Palette (Ctrl+Shift+P > Run MowaLang).
Interact with the Terminal for input/output (e.g., enter names for prompts).
Type keywords like okav, idh, or mow to trigger autocompletion for faster coding.
Example
Create a file named hello.mowa:
idhi string name;
mowa "Enter your name: ";
theesko name;
mowa "\nHello, " + name + "!";
Click "Run MowaLang" above the code.
In the Terminal, enter a name (e.g., Prabhas).
Expected output:
Enter your name: Pradeep
Hello, Pradeep!
Jai Mahishmathi
Manual CLI :
If you prefer running MowaLang files manually:
mowa -r "C:\path\to\your\file.mowa"
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.