From 6e5d551071cdf0e03cca7f8c9ca5e54244e2b150 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 23 Jul 2018 14:53:12 -0700 Subject: Run 'use "core"' by default before running anything else, unless --no-core command line flag is used. --- lib/consolecolor.nom | 2 -- lib/file_hash.nom | 2 -- lib/object.nom | 2 -- lib/os.nom | 2 -- lib/training_wheels.nom | 2 -- 5 files changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom index 35b6f42..d473d7c 100644 --- a/lib/consolecolor.nom +++ b/lib/consolecolor.nom @@ -2,8 +2,6 @@ # This file defines actions for ANSI console color escape codes. -use "core" - test: bright "\(green)Color test passed." diff --git a/lib/file_hash.nom b/lib/file_hash.nom index 07fe275..41a26c2 100644 --- a/lib/file_hash.nom +++ b/lib/file_hash.nom @@ -2,8 +2,6 @@ # This file defines some actions for hashing files and looking up files by hash. -use "core" - action [file with hash %hash]: lua> ".." local Hash = require("openssl.digest") diff --git a/lib/object.nom b/lib/object.nom index 10b0afa..4ed9bcd 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -2,8 +2,6 @@ # This file contains the implementation of an Object-Oriented programming system. -use "core" - test: object "Dog": (class Dog).genus = "Canus" diff --git a/lib/os.nom b/lib/os.nom index 223c139..8ee2ef3 100644 --- a/lib/os.nom +++ b/lib/os.nom @@ -2,8 +2,6 @@ # This file defines some actions that interact with the operating system and filesystem. -use "core" - test: path of Nomsu file "lib/os.nom" diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom index e89eee3..b68fc56 100644 --- a/lib/training_wheels.nom +++ b/lib/training_wheels.nom @@ -3,8 +3,6 @@ This file contains a set of definitions that bring some familiar language features from other languages into nomsu (e.g. "==" and "continue") -use "core" - parse [%a == %b] as (%a = %b) parse [%a == %b] as (%a is %b) parse [%a ~= %b, %a != %b, %a <> %b] as (%a is not %b) -- cgit v1.2.3