core: fix POSTPONE:
parent
7226b2b45d
commit
32b0753cad
|
@ -56,6 +56,7 @@ in: bootstrap.syntax
|
||||||
"CONSTANT:"
|
"CONSTANT:"
|
||||||
"TUPLE:"
|
"TUPLE:"
|
||||||
"SLOT:"
|
"SLOT:"
|
||||||
|
"slot:"
|
||||||
"T{"
|
"T{"
|
||||||
"UNION:"
|
"UNION:"
|
||||||
"INTERSECTION:"
|
"INTERSECTION:"
|
||||||
|
|
|
@ -99,6 +99,7 @@ in: bootstrap.syntax
|
||||||
] define-core-syntax
|
] define-core-syntax
|
||||||
|
|
||||||
"NAN:" [ 16 scan-base <fp-nan> suffix! ] define-core-syntax
|
"NAN:" [ 16 scan-base <fp-nan> suffix! ] define-core-syntax
|
||||||
|
"nan:" [ 16 scan-base <fp-nan> suffix! ] define-core-syntax
|
||||||
|
|
||||||
"f" [ f suffix! ] define-core-syntax
|
"f" [ f suffix! ] define-core-syntax
|
||||||
|
|
||||||
|
@ -110,6 +111,14 @@ in: bootstrap.syntax
|
||||||
} cond suffix!
|
} cond suffix!
|
||||||
] define-core-syntax
|
] define-core-syntax
|
||||||
|
|
||||||
|
"char:" [
|
||||||
|
lexer get parse-raw [ "token" throw-unexpected-eof ] unless* {
|
||||||
|
{ [ dup length 1 = ] [ first ] }
|
||||||
|
{ [ "\\" ?head ] [ next-escape >string "" assert= ] }
|
||||||
|
[ name>char-hook get call( name -- char ) ]
|
||||||
|
} cond suffix!
|
||||||
|
] define-core-syntax
|
||||||
|
|
||||||
"\"" [ parse-string suffix! ] define-core-syntax
|
"\"" [ parse-string suffix! ] define-core-syntax
|
||||||
|
|
||||||
"SBUF\"" [
|
"SBUF\"" [
|
||||||
|
@ -262,6 +271,9 @@ in: bootstrap.syntax
|
||||||
"SLOT:" [
|
"SLOT:" [
|
||||||
scan-token define-protocol-slot
|
scan-token define-protocol-slot
|
||||||
] define-core-syntax
|
] define-core-syntax
|
||||||
|
"slot:" [
|
||||||
|
scan-token define-protocol-slot
|
||||||
|
] define-core-syntax
|
||||||
|
|
||||||
"C:" [
|
"C:" [
|
||||||
scan-new-word scan-word define-boa-word
|
scan-new-word scan-word define-boa-word
|
||||||
|
|
Loading…
Reference in New Issue