From ea5ef2fe245c09b35c783977928d6e995110cfb4 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 30 Aug 2021 19:07:26 -0400 Subject: Scrap old spec, add initial value parsing --- small-tests/examp.tnsl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'small-tests') diff --git a/small-tests/examp.tnsl b/small-tests/examp.tnsl index 0c32f3f..196db40 100644 --- a/small-tests/examp.tnsl +++ b/small-tests/examp.tnsl @@ -1,6 +1,6 @@ #Comment like this -/## +/# Or like this (blocks begin with / and end with /) Block Comment #/ @@ -9,8 +9,8 @@ #/ # Preprocessor directives are like this -# Import from library using ' -:import 'what/what.tnsl' a +# Import an external module from library using ' +:import 'what' # Import from local file using " :import "what/what.tnsl" @@ -65,11 +65,11 @@ -# The struct keyword is followed by [name] {values} -;struct [s1] {string Name, string Message = "Default message (c-style strings)"} +# The struct keyword is followed by {values} +;struct s1 {string Name, string Message = "Default message (c-style strings)"} # Most people should declare as such: -;struct [s1] { +;struct s1 { string Name, string Message = "Default message (c-style strings)" } @@ -156,7 +156,7 @@ # Dumb generic type struct -; struct [gen] (type T) { +; struct gen (type T) { T i } -- cgit v1.2.3