class

Sheety::Tokens::ArithmeticOperator

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

Binary arithmetic operators

Constants

OPERATOR_REGEX = /^\s*(?P<name>[\+\-\*\/\^])/

Class methods

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

Instance methods

compile

Compile to actual operator function

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