summaryrefslogtreecommitdiff
path: root/small-tests
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-08-30 19:07:26 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-08-30 19:07:26 -0400
commitea5ef2fe245c09b35c783977928d6e995110cfb4 (patch)
treee25f71adb433bba34b10c3a013d8b10c24f159e3 /small-tests
parent628dd83397c47ff484f7c81b06dcd6d1e4af628b (diff)
Scrap old spec, add initial value parsing
Diffstat (limited to 'small-tests')
-rw-r--r--small-tests/examp.tnsl14
1 files changed, 7 insertions, 7 deletions
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 /<symbol> and end with <symbol>/)
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 <name> {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
}