This website requires JavaScript.
Explore
Help
Register
Sign In
Serene
/
serene-golang-implementation
Watch
2
Star
0
Fork
You've already forked serene-golang-implementation
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fb6c1b3ba3
serene-golang-implementation
/
bootstrap
/
examples
/
hello-world.srn
4 lines
65 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add support for loading namespaces via 'require' (symbol only) At this stage we only supports requiring a namespace via it's name and only one namespace like `(require 'blah.blah)`. But the support for name aliases and requiring more namespaces at once would be easy enough.
2020-12-12 20:33:53 +00:00
(ns examples.hello-world)
Add support for native function, multi ns require fn and 'builtins' * Implemented Native function as IExprs so we can refer to them like any other function. Checkout `NativeFunction`. * `require` has been implemented as a native functions which accepts one or more namespace descriptions and load them. A namespace description is either a symbol with the ns name or an `IColl` in the following form `(some.ns.name alias). * A hashmap of strings to native functions has been added to the Runtime which is used to resolve builtin functions.
2020-12-15 19:08:51 +00:00
(def hello-world (fn () 'helloworld))