class

Sheety::Tokens::StringToken

Inherits Sheety::Tokens::Operand < Sheety::Token < Reference < Object

String literal token

Constants

STRING_REGEX = /^\s*"(?P<name>(?>""|[^""])*)"\s*/

Matches double-quoted strings with escaped quotes

Class methods

match?(s : String) : Regex::MatchData | Nil
Source

Instance methods

compile

Compile the token to executable code

Source
match(s : String) : Regex::MatchData | Nil

Try to match the token pattern against the input string

Source
process(match : Regex::MatchData) : Nil

Process the match result and populate attributes

Source