Skip to content

Releases: 2105789/Lango

1.5

02 Dec 19:01

Choose a tag to compare

The interpreter has been rebuilt from source to ensure a fresh, error‑free binary.

Lango Interpreter - Major Feature Update: Functions, Classes, and Arrays!

01 Apr 13:10

Choose a tag to compare

Lango Interpreter - Major Feature Update: Functions, Classes, and Arrays!

This release marks a significant milestone for the Lango interpreter, introducing several fundamental features that greatly enhance the language's capabilities and expressiveness:

  1. First-Class Functions:

    • Define functions using the fun keyword.
    • Functions are first-class citizens: they can be assigned to variables, passed as arguments, and returned from other functions.
    • Support for closures: inner functions capture variables from their enclosing scopes.
    • Explicit return statements allow functions to produce values.
  2. Basic Classes and Objects:

    • Define classes using the class keyword.
    • Declare methods (functions defined within a class).
    • Instantiate classes to create objects (e.g., MyClass()).
    • Access and assign object properties using dot (.) notation (e.g., instance.property, instance.property = value).
    • Methods automatically have access to the instance via the this keyword.
  3. Arrays (Lists):

    • Create array literals using square brackets [] (e.g., [1, "a", true]).
    • Access elements using zero-based indexing (e.g., myArray[0]).
    • Assign new values to array elements (e.g., myArray[1] = newValue).

Summary:

With the addition of functions, basic object-oriented programming via classes, and dynamic arrays, Lango is evolving into a much more powerful and versatile scripting language. These features provide essential tools for building more complex and structured programs.

Refer to the updated README.md for syntax examples and the comprehensive test_script.lango to see these features in action.

Initial Build

04 Jul 06:38

Choose a tag to compare

Execute
langoc filename.lango
For executing a program file.
OR
lango
For line by line execution.