From 8ca7749b5509a40256195563fa52d3ede4bd1a34 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 16 Jan 2019 16:31:49 -0800 Subject: Better error messaging (using pretty_error in more places) --- nomsu_environment.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu_environment.moon') 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)-> -- cgit v1.2.3