markdown $ TestTokenProcessor :: SELF
Type of this instance, automatically specialized in every classmarkdown :: MarkdownProcessor :: DECORATOR
Kind of decorator used for decoration.markdown :: MarkdownProcessor :: add_link_ref
Add a link ref to the listcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: MarkdownProcessor :: current_block
Currently processed block.markdown :: MarkdownProcessor :: current_block=
Currently processed block.markdown :: MarkdownProcessor :: current_line
Currently processed line.markdown :: MarkdownProcessor :: current_line=
Currently processed line.markdown :: MarkdownProcessor :: decorator=
Decorator used for output.core :: Object :: defaultinit
markdown :: MarkdownProcessor :: emit_text
Transform and emit mardown textmarkdown :: MarkdownProcessor :: emit_text_until
Transform and emit mardown text starting atstart
and
markdown :: MarkdownProcessor :: ext_mode=
Work in extended mode (default).markdown :: MarkdownProcessor :: find_token
Find the position of atoken
in self
.
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
markdown :: MarkdownProcessor :: link_refs=
Known link refsmarkdown :: MarkdownProcessor :: no_location
Disable attaching MDLocation to Tokensmarkdown :: MarkdownProcessor :: no_location=
Disable attaching MDLocation to Tokenscore :: Object :: output_class_name
Display class name on stdout (debug only).markdown :: MarkdownProcessor :: with_decorator
Create a newMarkdownEmitter
using a custom decorator
.
class TestTokenProcessor
super MarkdownProcessor
var test_stack: Array[String]
redef fun token_at(input, pos) do
var token = super
if token isa TokenNone then return token
var res = "{token.class_name} at {token.location or else "?"}"
var exp = test_stack.shift
print ""
print "EXP {exp}"
print "RES {res}"
assert exp == res
return token
end
end
lib/markdown/test_markdown.nit:2824,1--2840,3