syntax vocabulary - Factor Documentation (original) (raw)
Documentation
Syntax
Metadata
Authors: | Slava Pestov |
---|
Words
Builtin classes
Singleton classes
Parsing words
Word | Syntax | |
---|---|---|
![]() |
"string..." | |
![]() |
||
![]() |
||
![]() |
'[ code... ] | |
![]() |
||
![]() |
( inputs -- outputs ) | |
![]() |
: word ( stack -- effect ) definition... ; | |
![]() |
:: word ( vars... -- outputs... ) body... ; | |
![]() |
:> var :> var! :> ( var-1 var-2 ... ) | |
![]() |
<< ... >> | |
![]() |
||
![]() |
||
![]() |
<PRIVATE ... PRIVATE> | |
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
ALIAS: new-word existing-word | |
![]() |
||
![]() |
||
![]() |
BUILTIN: class slots ... ; | |
![]() |
BV{ elements... } | |
![]() |
B{ elements... } | |
![]() |
C: constructor class | |
![]() |
CHAR: token | |
![]() |
CONSTANT: word value | |
![]() |
||
![]() |
C{ real-part imaginary-part } | |
![]() |
DEFER: word | |
![]() |
ERROR: class slots... ; | |
![]() |
EXCLUDE: vocab => words ... ; | |
![]() |
FORGET: word | |
![]() |
FROM: vocab => words ... ; | |
![]() |
GENERIC#: word n ( stack -- effect ) | |
![]() |
GENERIC: word ( stack -- effect ) | |
![]() |
HOOK: word variable ( stack -- effect ) | |
![]() |
HS{ members ... } | |
![]() |
H{ { key value }... } | |
![]() |
IDENTITY-MEMO: word ( stack -- effect ) definition... ; | |
![]() |
IDENTITY-MEMO:: word ( stack -- effect ) definition... ; | |
![]() |
IH{ { key value }... } | |
![]() |
IN: vocabulary | |
![]() |
INITIALIZED-SYMBOL: word [ ... ] | |
![]() |
INSTANCE: instance mixin | |
![]() |
INTERSECTION: class participants... ; | |
![]() |
M: class generic definition... ; | |
![]() |
M:: class generic ( vars... -- outputs... ) body... ; | |
![]() |
MACRO: word ( inputs... -- quot ) definition... ; | |
![]() |
MACRO:: word ( vars... -- outputs... ) body... ; | |
![]() |
MAIN: word | |
![]() |
MATH: word | |
![]() |
MEMO: word ( stack -- effect ) definition... ; | |
![]() |
MEMO:: word ( vars... -- outputs... ) body... ; | |
![]() |
MIXIN: class | |
![]() |
M\ class generic | |
![]() |
NAN: payload | |
![]() |
P" pathname" | |
![]() |
POSTPONE: word | |
![]() |
PREDICATE: class < superclass predicate... ; | |
![]() |
PRIMITIVE: word ( stack -- effect ) | |
![]() |
<PRIVATE ... PRIVATE> | |
![]() |
QUALIFIED-WITH: vocab word-prefix | |
![]() |
QUALIFIED: vocab | |
![]() |
RENAME: word vocab => new-name | |
![]() |
||
![]() |
SBUF" string... " | |
![]() |
SHUTDOWN-HOOK: word/quotation | |
![]() |
SINGLETON: class | |
![]() |
SINGLETONS: words... ; | |
![]() |
SLOT: name | |
![]() |
STARTUP-HOOK: word/quotation | |
![]() |
SYMBOL: word | |
![]() |
SYMBOLS: words... ; | |
![]() |
SYNTAX: foo ... ; | |
![]() |
TUPLE: class slots... ; | |
![]() |
T{ class } | |
![]() |
UNION: class members... ; | |
![]() |
UNUSE: vocabulary | |
![]() |
USE: vocabulary | |
![]() |
USING: vocabularies... ; | |
![]() |
||
![]() |
V{ elements... } | |
![]() |
W{ object } | |
![]() |
[ elements... ] | |
![]() |
[let code :> var code :> var code... ] | |
![]() |
[| bindings... | body... ] |
![]() |
\ word | |
![]() |
||
![]() |
||
![]() |
call( stack -- effect ) | |
![]() |
call-next-method | |
![]() |
: foo ... ; delimiter | |
![]() |
: foo ... ; deprecated | |
![]() |
execute( stack -- effect ) | |
![]() |
f | |
![]() |
TUPLE: ... ; final | |
![]() |
: foo ... ; flushable | |
![]() |
: foo ... ; foldable | |
![]() |
: foo ... ; inline | |
![]() |
intersection{ elements... } | |
![]() |
maybe{ elements... } | |
![]() |
not{ elements... } | |
![]() |
||
![]() |
: foo ... ; recursive | |
![]() |
union{ elements... } | |
![]() |
Symbol words
![]() |
---|
![]() |
Ordinary words
Word | Stack effect |
---|---|
![]() |
( -- * ) |
![]() |
( -- * ) |
![]() |
( -- * ) |
![]() |
( -- * ) |
Class predicate words
Word | Stack effect |
---|---|
![]() |
( object -- ? ) |
Files
resource:core/syntax/syntax.factor
resource:core/syntax/syntax-docs.factor
Metadata files
resource:core/syntax/authors.txt
resource:core/syntax/summary.txt
Children from resource:extra
Vocabulary | Summary |
---|---|
![]() |