AltoLang / Alto

Compiler in the works!
MIT License
3 stars 1 forks source link

Add support for `import` statements! #54

Closed FilipToth closed 3 years ago

FilipToth commented 3 years ago

What this does

You can now control which files you can reference in your code with the almighty import statement. This will be extremely useful when building multi-file complex applications and the runtime API. Although, we currently do not have support for classes, namespaces etc. So, later on I'll have to restructure this whole system.

Syntax

import myLib
var result = myLibFunction()
print(tostring(result))