class

Sheety::Tokens::Boolean

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

Boolean literal token (TRUE, FALSE)

Constants

BOOL_REGEX = /^\s*(?P<name>TRUE|FALSE)/i

Class methods

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

Instance methods

bool_value
Source
boolean?
Source
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