class

Sheety::Tokens::NamedRange

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

Named range token (e.g., MyRange, SalesData, Total_Sales)

Constants

NAME_REGEX = /^\s*(?P<name>[A-Z_][A-Z0-9_.]*)/i

Named ranges start with letter or underscore, followed by letters/numbers/underscore Must NOT be followed by ( to distinguish from function names

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
named_range?
Source
process(match : Regex::MatchData) : Nil

Process the match result and populate attributes

Source