class

Sheety::Tokens::Number

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

Numeric literal token

Constants

NUMBER_REGEX = /^\s*(?P<name>(?:\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?)/i

Matches integers, floats, scientific notation (not TRUE/FALSE)

Class methods

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

Instance methods

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