core: add LEFT-DECORATOR: syntax. rename syntax.arity to syntax.attributes

locals-and-roots
Doug Coleman 2016-06-09 11:45:10 -07:00
parent 339799453a
commit ed93a451a6
5 changed files with 14 additions and 3 deletions

View File

@ -37,7 +37,7 @@ load-help? off
"vocabs.loader" require
"syntax" require
"syntax.arity" require
"syntax.attributes" require
"bootstrap.layouts" require
! need this

View File

@ -17,6 +17,7 @@ in: bootstrap.syntax
"C:"
"char:"
"ARITY:"
"LEFT-DECORATOR:"
"DEFER:"
"defer:"
"ERROR:"

View File

@ -9,7 +9,7 @@ ARITY: \ SYMBOL: 1
ARITY: \ SINGLETON: 1
ARITY: \ B: 1
ARITY: \ MAIN: 1
ARITY: \ LEFT-DECORATOR: 1
ARITY: \ ALIAS: 2
ARITY: \ ARITY: 2
@ -20,7 +20,13 @@ ARITY: \ INSTANCE: 2
ARITY: \ GENERIC: 2
ARITY: \ PRIMITIVE: 2
ARITY: \ GENERIC# 3
ARITY: \ HOOK: 3
LEFT-DECORATOR: \ inline
LEFT-DECORATOR: \ foldable
LEFT-DECORATOR: \ flushable
LEFT-DECORATOR: \ recursive
LEFT-DECORATOR: \ final
LEFT-DECORATOR: \ delimiter
LEFT-DECORATOR: \ deprecated

View File

@ -310,6 +310,10 @@ in: bootstrap.syntax
scan-escaped-word scan-number "arity" set-word-prop
] define-core-syntax
"LEFT-DECORATOR:" [
scan-escaped-word t "left-decorator" set-word-prop
] define-core-syntax
"<<" [
[
\ >> parse-until >quotation