class BowlingScorer::Lexer

Defined in:

bowling-scorer/lexer.cr

Constant Summary

GUTTER = "-"
GUTTER_C = '-'
NUMBERS = "0123456789"
SPARE = "/"
SPARE_C = '/'
STRIKE = "X"

String representation of our tokens.

STRIKE_C = 'X'

Char representation of our tokens.

Constructors

Instance Method Summary

Constructor Detail

def self.new(game : String = game) #

[View source]

Instance Method Detail

def char : Char | TokenType #

[View source]
def char=(char : Char | TokenType) #

[View source]
def game : String #

[View source]
def index : Int32 #

[View source]
def index=(index : Int32) #

[View source]
def next_token : Token #

[View source]