class Luce::LinkParser
- Luce::LinkParser
- Luce::TextParser
- Reference
- Object
Defined in:
luce/link_parser.crConstructors
Instance Method Summary
-
#destination : String | Nil
Link destination
-
#label : String | Nil
Link label
-
#parse_definitions : Nil
Parses
source
to a link reference definition -
#parse_label : Bool
Parses the link label, returns
true
if there is a valid link label. -
#title : String | Nil
Link title
-
#unconsumed_lines : Int32
How many lines of the
source
have been consumed by link reference definition. -
#valid? : Bool
If there is a valid link formed.
Instance methods inherited from class Luce::TextParser
[](range : Range) : String
[],
advance : Nil
advance,
advance_by(length : Int32) : Nil
advance_by,
char_at(position : Int32 | Nil = nil) : Int32
char_at,
done? : Bool
done?,
move_through_whitespace(multiline : Bool = false) : Int32
move_through_whitespace,
pos : Int32
pos,
size : Int32
size,
source : String
source
Constructor methods inherited from class Luce::TextParser
new(source : String)
new
Constructor Detail
Instance Method Detail
def unconsumed_lines : Int32
#
How many lines of the source
have been consumed by link reference
definition.