Sheety::Tokens::Parenthesis
Inherits Sheety::Token < Reference < Object
Parenthesis token for grouping expressions
Constants
PAREN_REGEX = /^(?P<name>[()])/
Class methods
match?(s : String) : Regex::MatchData | Nil
SourceInstance methods
ast(tokens : Array(Token), stack : Array(Token), builder : AstBuilder) : Nil
Add this token to the AST - called during parsing
has_end
Sourcehas_start
Sourceis_closing?
Sourceis_opening?
Sourceis_opening_paren
Sourceis_opening_paren=(is_opening_paren : Bool)
Sourcematch(s : String) : Regex::MatchData | Nil
Try to match the token pattern against the input string