corx


A statically typed, general-purpose programming language, crafted for simplicity and performance.

"Trust the programmer" - corx









Module Declaration

From the module declaration starting, the current declaration is effective until another module declaration is found or EOF encountered.


module parent; # parent module

module parent::child; # child module
        

Import Module


import "include/helper"; # imports module names
# or
import * from "include/helper"; # imports module names

util::format("string");
        

Note: If there's no module to import, contents of that file gets imported.


Module Unwrapping


import util from "include/helper"; # imports and unwraps `util`

format("string");