Skip to content

2.0.0

Latest

Choose a tag to compare

@Sreyas-Sreelal Sreyas-Sreelal released this 06 Apr 07:21
· 0 commits to master since this release

Malluscript v2.0.0 - The Module Update

This major release introduces a robust module system and refines the language structure to more closely align with Malayalam grammar patterns.

What's Changed

  • New Module System: Organize your code better with the new ulppeduthuka (include) keyword.
  • Module Aliasing: Use ennu or ayi to give your imports a custom name (e.g., math m ennu ulppeduthuka;).
  • Malayalam Grammar Order for I/O and Return: To maintain linguistic consistency, ezhuthuka, kanikuga, and kodukuga now follow Malayalam sentence structure, where the action traditionally follows the object.

Module System Details

You can now import other Malluscript files as modules. The path can be directed using : for subdirectories.

Example:

math m ennu ulppeduthuka;
res = m.math_add<3, 4>;
res ezhuthuka;

Malayalam Grammar Order

In line with Malayalam's Subject-Object-Verb (SOV) structure, I/O and return operations now place the action at the end of the statement. This makes the code read more like natural Malayalam sentences.

Previous Structure (v1.1.0 and before):
In previous versions, writing or returning a value followed a prefix pattern:

കാണിക്കുക "ഹലോ";

കൂട്ടുക(സംഖ്യ1, സംഖ്യ2) {
    കൊടുക്കുക സംഖ്യ1 + സംഖ്യ2;
}

v2.0.0 (Malayalam Grammar Order):
Now, the object to be written or returned precedes the action:

"ഹലോ" കാണിക്കുക;

കൂട്ടുക(സംഖ്യ1, സംഖ്യ2) {
    സംഖ്യ1 + സംഖ്യ2 കൊടുക്കുക;
}

Support the Project

If you find Malluscript useful, please consider supporting the development through any of the following platforms:

For more details and examples, visit the Malluscript Repository.

New Contributors

Full Changelog: 1.1.0...2.0.0