markdown $ TestTokenProcessor :: SELF
Type of this instance, automatically specialized in every classmarkdown :: MarkdownProcessor :: DECORATOR
Kind of decorator used for decoration.markdown :: MarkdownProcessor :: _buffer_stack
Stacked buffers.markdown :: MarkdownProcessor :: _current_block
Currently processed block.markdown :: MarkdownProcessor :: _current_line
Currently processed line.markdown :: MarkdownProcessor :: _current_pos
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: _current_text
Currently processed text.markdown :: MarkdownProcessor :: _decorator
Decorator used for output.markdown :: MarkdownProcessor :: _ext_mode
Work in extended mode (default).markdown :: MarkdownProcessor :: _in_list
Is the current recursion in list mode?markdown :: MarkdownProcessor :: _last_link_ref
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: _link_refs
Known link refsmarkdown :: MarkdownProcessor :: _loc_stack
Stacked locations.markdown :: MarkdownProcessor :: _no_location
Disable attaching MDLocation to Tokensmarkdown :: MarkdownProcessor :: add_link_ref
Add a link ref to the listmarkdown :: MarkdownProcessor :: buffer_stack
Stacked buffers.markdown :: MarkdownProcessor :: buffer_stack=
Stacked buffers.markdown :: MarkdownProcessor :: check_link_ref
Check if line is a block link definition.core :: 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_buffer
Current output buffer.markdown :: MarkdownProcessor :: current_line
Currently processed line.markdown :: MarkdownProcessor :: current_line=
Currently processed line.markdown :: MarkdownProcessor :: current_loc
Current output buffer.markdown :: MarkdownProcessor :: current_pos
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: current_pos=
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: current_text
Currently processed text.markdown :: MarkdownProcessor :: current_text=
Currently processed text.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
.
markdown :: MarkdownProcessor :: in_list
Is the current recursion in list mode?markdown :: MarkdownProcessor :: in_list=
Is the current recursion in list mode?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 :: last_link_ref
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: last_link_ref=
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: link_refs=
Known link refsmarkdown :: MarkdownProcessor :: loc_stack
Stacked locations.markdown :: MarkdownProcessor :: loc_stack=
Stacked locations.core :: Object :: native_class_name
The class name of the object in CString format.markdown :: 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 :: push_buffer
Push a new buffer on the stack.markdown :: MarkdownProcessor :: push_loc
Push a new MDLocation on the stack.markdown :: MarkdownProcessor :: read_lines
Splitinput
string into MDLines
and create a parent MDBlock
with it.
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