class Ven::Parselet::PString
- Ven::Parselet::PString
- Ven::Parselet::Nud
- Reference
- Object
Overview
Reads a string into QString.
Defined in:
ven/parselet/nud.crConstant Summary
-
ESCAPES =
{"\\n" => "\n", "\\r" => "\r", "\\t" => "\t", "\\\"" => "\"", "\\\\" => "\\"}
Instance Method Summary
- #parse(tag, token)
-
#unescape(source : String)
Evaluates the escaped escape sequences in source.
Instance methods inherited from class Ven::Parselet::Nud
block(opening = true, semicolon : Bool = false)
block,
die(message : String)
die,
led(precedence : Precedence)led(precedence = @precedence) led, parse(tag : QTag, token : Word) parse, parse!(parser : Ven::Reader, tag : QTag, token : Ven::Word) parse!, semicolon : Bool semicolon, symbol(tag, token = nil) : QSymbol symbol
Constructor methods inherited from class Ven::Parselet::Nud
new(precedence : UInt8 = 0_u8)
new
Instance Method Detail
def unescape(source : String)
#
Evaluates the escaped escape sequences in source.
For example, "1\\n2\\n"
will be evaluated to "1\n2\n"
.