From be06fc096aa28358914bd6a76b4ea380a04b8873 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Jul 2018 19:41:22 -0700 Subject: Major changes to how versioning and parsing work. This should be a better path going forward to handling upgrades. Old syntax files will stick around for compatibility purposes. Old syntax can be parsed into valid syntax trees via the old syntax (.peg) files, and then old syntax trees should be valid and can be upgraded via the normal code path. This change has lots of improvements to Nomsu codegen too. --- tests/collections.nom | 1 + tests/colors.nom | 1 + tests/control_flow.nom | 1 + tests/coroutines.nom | 1 + tests/errors.nom | 1 + tests/inner/inner.nom | 1 + tests/math.nom | 1 + tests/metaprogramming.nom | 1 + tests/object.nom | 1 + tests/operators.nom | 1 + tests/os.nom | 3 ++- tests/scopes.nom | 1 + tests/text.nom | 1 + 13 files changed, 14 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/collections.nom b/tests/collections.nom index d08a20e..9df9eba 100644 --- a/tests/collections.nom +++ b/tests/collections.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 #.. Tests for the stuff defined in core/control_flow.nom diff --git a/tests/colors.nom b/tests/colors.nom index b3c22e7..16610f4 100644 --- a/tests/colors.nom +++ b/tests/colors.nom @@ -1,2 +1,3 @@ +#!/usr/bin/env nomsu -V1 use "lib/consolecolor.nom" say: bright: green "Color test passed." diff --git a/tests/control_flow.nom b/tests/control_flow.nom index 340bd7d..62b59fa 100644 --- a/tests/control_flow.nom +++ b/tests/control_flow.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the stuff defined in core/control_flow.nom diff --git a/tests/coroutines.nom b/tests/coroutines.nom index 8d58170..16ef100 100644 --- a/tests/coroutines.nom +++ b/tests/coroutines.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the stuff defined in core/control_flow.nom diff --git a/tests/errors.nom b/tests/errors.nom index 1788a34..7f52532 100644 --- a/tests/errors.nom +++ b/tests/errors.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the stuff defined in core/errors.nom diff --git a/tests/inner/inner.nom b/tests/inner/inner.nom index 790ea0f..a4341f0 100644 --- a/tests/inner/inner.nom +++ b/tests/inner/inner.nom @@ -1,2 +1,3 @@ +#!/usr/bin/env nomsu -V1 use "core" say "Inner directory 'use' test passed." diff --git a/tests/math.nom b/tests/math.nom index ffc0a2f..3764dee 100644 --- a/tests/math.nom +++ b/tests/math.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 #.. Tests for the stuff defined in core/control_flow.nom diff --git a/tests/metaprogramming.nom b/tests/metaprogramming.nom index 0150350..083ddc7 100644 --- a/tests/metaprogramming.nom +++ b/tests/metaprogramming.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the stuff defined in core/metaprogramming.nom diff --git a/tests/object.nom b/tests/object.nom index 4848bf9..795d85e 100644 --- a/tests/object.nom +++ b/tests/object.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the object model defined in lib/object.nom diff --git a/tests/operators.nom b/tests/operators.nom index 4b0d6ad..375a80a 100644 --- a/tests/operators.nom +++ b/tests/operators.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 #.. Tests for the stuff defined in core/operators.nom diff --git a/tests/os.nom b/tests/os.nom index 9b546ef..efc6e56 100644 --- a/tests/os.nom +++ b/tests/os.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 # Tests for the stuff defined in lib/os.nom @@ -5,7 +6,7 @@ use "core" use "lib/os.nom" %lines <-: lines in: read file "tests/os.nom" -assume: %lines.2 = " Tests for the stuff defined in lib/os.nom" +assume: %lines.3 = " Tests for the stuff defined in lib/os.nom" %n <- 0 for file %f in "core" diff --git a/tests/scopes.nom b/tests/scopes.nom index 67598be..ffda7f6 100644 --- a/tests/scopes.nom +++ b/tests/scopes.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 use "core" %x <- "outer" diff --git a/tests/text.nom b/tests/text.nom index e42fe73..57480d8 100644 --- a/tests/text.nom +++ b/tests/text.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V1 #.. Tests for the stuff defined in core/text.nom -- cgit v1.2.3