Handbook
Glossary
handle-rule-start ( match-count rule -- )
Vocabulary
xmode
.
marker
Inputs
match-count
an
object
rule
an
object
Outputs
None
Definition
IN:
xmode.marker
GENERIC:
handle-rule-start
( match-count rule -- )
Methods
USING:
accessors
kernel
namespaces
xmode.marker
xmode.marker.state
;
M:
abstract-span-rule
handle-rule-start
?end-rule
mark-token
add-remaining-token
[
rule-match-token*
next-token,
]
keep
dup
context
get
in-rule<<
delegate>>
push-context
;
USING:
kernel
math
namespaces
xmode.marker
xmode.marker.state
xmode.rules
;
M:
escape-rule
handle-rule-start
drop
?end-rule
process-escape?
get
[
escaped?
toggle
position
[
+
]
change
]
[
drop
]
if
;
USING:
accessors
kernel
namespaces
xmode.marker
xmode.marker.state
xmode.rules
;
M:
mark-following-rule
handle-rule-start
?end-rule
mark-token
add-remaining-token
[
rule-match-token*
next-token,
]
keep
f
context
get
end<<
context
get
in-rule<<
;
USING:
accessors
kernel
xmode.marker
xmode.marker.state
xmode.rules
;
M:
mark-previous-rule
handle-rule-start
?end-rule
mark-token
dup
body-token>>
prev-token,
rule-match-token*
next-token,
;
USING:
accessors
kernel
xmode.marker
xmode.marker.state
xmode.rules
;
M:
seq-rule
handle-rule-start
?end-rule
mark-token
add-remaining-token
[
body-token>>
next-token,
]
keep
delegate>>
[
push-context
]
when*
;