Factor Documentation

Home

Glossary

Search
factorcode.org
rewriteelement ( obj  )
Vocabulary
locals.rewrite.sugar
Inputs and outputs
obj
an
object
Definition
IN:
locals.rewrite.sugar
GENERIC:
rewriteelement
( obj  )
Methods
USING:
arrays
kernel
locals.rewrite.sugar
make
;
M:
array
rewriteelement
dup
rewriteliteral?
[
rewritesequence
]
[
,
]
if
;
USING:
assocs
hashtables
kernel
locals.rewrite.sugar
make
;
M:
hashtable
rewriteelement
dup
rewriteliteral?
[
>alist
rewritesequence
\
>hashtable
,
]
[
,
]
if
;
USING:
locals.rewrite.sugar
locals.types
;
M:
lambda
rewriteelement
rewritesugar*
;
USING:
locals.errors
locals.rewrite.sugar
locals.types
;
M:
let
rewriteelement
letforminliteralerror
;
USING:
locals.rewrite.sugar
locals.types
make
;
M:
localreader
rewriteelement
,
;
USING:
locals.errors
locals.rewrite.sugar
locals.types
;
M:
localwriter
rewriteelement
localwriterinliteralerror
;
USING:
locals.rewrite.sugar
locals.types
make
;
M:
local
rewriteelement
,
;
USING:
kernel
locals.rewrite.sugar
make
;
M:
object
rewriteelement
,
;
USING:
locals.rewrite.sugar
quotations
;
M:
quotation
rewriteelement
rewritesugar*
;
USING:
classes
classes.tuple
kernel
locals.rewrite.sugar
make
;
M:
tuple
rewriteelement
dup
rewriteliteral?
[
[
tupleslots
rewriteelements
]
[
classof
]
bi
[
boa
]
curry
%
]
[
,
]
if
;
USING:
kernel
locals.rewrite.sugar
make
vectors
;
M:
vector
rewriteelement
dup
rewriteliteral?
[
rewritesequence
]
[
,
]
if
;
USING:
kernel
locals.rewrite.sugar
make
words
;
M:
word
rewriteelement
<wrapper>
,
;
USING:
kernel
locals.rewrite.sugar
make
;
M:
wrapper
rewriteelement
rewritewrapper
\
<wrapper>
,
;