Move Meta to a separate module.

Also cleaned up some of the code around loading the core module.
This commit is contained in:
Bob Nystrom
2015-10-15 18:08:56 -07:00
parent 06a4e00f31
commit d5b9f0096c
11 changed files with 119 additions and 99 deletions
+2
View File
@@ -1 +1,3 @@
import "meta" for Meta
Meta.eval("!!") // expect runtime error: Could not compile source code.
@@ -1,3 +1,5 @@
import "meta" for Meta
var y
Meta.eval("y = 2")
+2
View File
@@ -1 +1,3 @@
import "meta" for Meta
Meta.eval(123) // expect runtime error: Source code must be a string.