class

Sheety::Tokens::SeparatorOperator

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

Separator operator for function arguments (,) and union

Constants

SEPARATOR_REGEX = /^\s*(?P<name>,)/

Class methods

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

Instance methods

ast(tokens : Array(Token), stack : Array(Token), builder : AstBuilder) : Nil

Separator has special handling in ast()

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
set_expr(*tokens : Token) : Nil
Source