aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-23 14:53:12 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-23 14:54:05 -0700
commit6e5d551071cdf0e03cca7f8c9ca5e54244e2b150 (patch)
treed988dbe5a4fdbb06e62f4908dd6ccfc85b32d3d9 /lib
parent470a6fe7f987f7c5e5c1fa7b6b31956479ababed (diff)
Run 'use "core"' by default before running anything else, unless --no-core command line flag is used.
Diffstat (limited to 'lib')
-rw-r--r--lib/consolecolor.nom2
-rw-r--r--lib/file_hash.nom2
-rw-r--r--lib/object.nom2
-rw-r--r--lib/os.nom2
-rw-r--r--lib/training_wheels.nom2
5 files changed, 0 insertions, 10 deletions
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)