diff options
Diffstat (limited to 'core/init.moon')
| -rw-r--r-- | core/init.moon | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/init.moon b/core/init.moon index 00e3cd4..1aa0d2d 100644 --- a/core/init.moon +++ b/core/init.moon @@ -49,7 +49,10 @@ globals = Scope.from_table require 'core.builtin' :Registry, :SimpleRegistry, :Tag :globals - parse: program\match + + parse: (str) -> + assert (program\match str), Error 'syntax', "failed to parse" + eval: (str, inject) -> scope = Scope nil, globals scope\use inject if inject |
