Skip to content

Commit 1162e7d

Browse files
committed
FEAT: Define a WHITESPACE charset
related to: metaeducation/rebol-issues#2189 mentioned: http://www.rebol.net/r3decide/0008.html Using just the most basic _whitespace_ chars. Anyone may extended this charset if needed. This one is compatible with Red language.
1 parent 99dfa78 commit 1162e7d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/mezz/base-constants.r

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,24 @@ sys: system/contexts/sys
3232
lib: system/contexts/lib
3333

3434
;-- Char constants:
35-
null: #"^(NULL)"
35+
null: #"^@"
3636
space: #" "
3737
sp: space
38-
backspace: #"^(BACK)"
38+
backspace: #"^H"
3939
bs: backspace
4040
tab: #"^-"
4141
newline: #"^/"
4242
newpage: #"^l"
4343
slash: #"/"
4444
backslash: #"\"
45-
escape: #"^(ESC)"
45+
escape: #"^["
4646
cr: #"^M"
4747
lf: newline
4848
crlf: "^M^J"
4949

50+
;-- Bitset constants
51+
whitespace: #[bitset! #{0064000080}] ;= charset [#" " #"^-" #"^/" #"^M"]
52+
5053
;-- Function synonyms:
5154
q: :quit
5255
!: :not

0 commit comments

Comments
 (0)