From 69a63e7d8e71132fbd986fd4463536de700a7f93 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 2 Jan 2021 23:32:12 +0100 Subject: syntax: more whitelisted special chars, comment parsing --- docs/guide/07_defining-symbols.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/guide') diff --git a/docs/guide/07_defining-symbols.md b/docs/guide/07_defining-symbols.md index c25d34e..488270a 100644 --- a/docs/guide/07_defining-symbols.md +++ b/docs/guide/07_defining-symbols.md @@ -19,7 +19,13 @@ symbol `result`, and then refer to it by that symbol in the [trace][] operator: (def result (+ 1 2)) (trace result) -Symbols need to start with a letter or one of the characters `-_+*/.=~!?%`. +Symbols need to start with a letter or one of the following special characters: + + - + * / + _ . , = + ! ? % $ + > < ~ + After the first character, numbers are also allowed. There are two types of symbols that are treated specially: symbols containing a slash (`math/+`), and symbols starting and ending with asterisks (`*clock*`): -- cgit v1.2.3