mateusfccp / pinto

The pint° programming language
https://mateusfccp.me/pinto
MIT License
5 stars 1 forks source link

Allow the importing mechanism to import non-classes #2

Closed mateusfccp closed 3 weeks ago

mateusfccp commented 3 weeks ago

Currently, only classes are imported whenever you import something.

We want to import every top-level symbol. This will enable us, for instance, to implement a "Hello, world!" in pint°:

let main _ = print "Hello, world!"

This is currently invalid, as the print symbol is not imported from dart:core.