aboutsummaryrefslogtreecommitdiff
path: root/examples/how_do_i.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-02-02 19:43:53 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-02-02 19:43:53 -0800
commit3e6b3983fcf38652ab7e56587b676ff91b837933 (patch)
treef60ff6f4fa9dfb5bee49f8f50940c40c88a06fa6 /examples/how_do_i.nom
parent2e52c1a7a8dff525b3f617ec56ed3950cd222845 (diff)
Added some utf8 symbols and better description of utf8 support.
Diffstat (limited to 'examples/how_do_i.nom')
-rw-r--r--examples/how_do_i.nom10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index a235e65..210e001 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -217,14 +217,14 @@ I think "chihuahuas" are worse than "corgis"
"Howdy pardner" is what she said
# The language only reserves []{}().,:;$\ as special characters, so actions
- can have really funky names!
-(>> $foo_bar @&' -->< $ @&_~-^-~_~-^ $1 !) means:
- say $foo_bar
+ and variables can use symbols freely:
+(>> $(∐) @&' -->< $ @&_~-^ ⊗⊞∰ $1 !) means:
+ say $(∐)
say $
say $1
->> "wow" @&' -->< "so flexible!" @&_~-^-~_~-^ "even numbers can be variables!" !
+>> "wow" @&' -->< "so flexible!" @&_~-^ ⊗⊞∰ "even numbers can be variables!" !
-# There's also full unicode support
+# You can also use unicode in variable and action names:
$こんにちは = "こんにちは"
($ と言う) means "\($)世界"
say ($こんにちは と言う)