diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 16:31:49 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 16:32:02 -0800 |
| commit | 8ca7749b5509a40256195563fa52d3ede4bd1a34 (patch) | |
| tree | a3e597668b6a53048e440d9630b48f3a2efb3926 /nomsu_environment.moon | |
| parent | 25e1ccc025e27d5ef7f1cc23e82e4836aa5a07f4 (diff) | |
Better error messaging (using pretty_error in more places)
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 2719252..522b4c9 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -32,7 +32,7 @@ for version=1,999 Parsers[version] = make_parser(peg_contents, make_tree) {:tree_to_nomsu, :tree_to_inline_nomsu} = require "nomsu_decompiler" -{:compile, :compile_error} = require('nomsu_compiler') +{:compile, :fail_at} = require('nomsu_compiler') _currently_running_files = List{} -- Used to check for circular imports in run_file_1_in _module_imports = {} _importer_mt = {__index: (k)=> _module_imports[@][k]} @@ -66,7 +66,7 @@ nomsu_environment = Importer{ -- Nomsu functions: _1_as_nomsu:tree_to_nomsu, _1_as_inline_nomsu:tree_to_inline_nomsu, - compile: compile, compile_error_at:compile_error, + compile: compile, at_1_fail:fail_at, exit:os.exit, quit:os.exit, _1_parsed: (nomsu_code, syntax_version)-> |
