class Z::Lex::Lexer

Included Modules

Defined in:

lex/lexer.cr

Constant Summary

IDENT_CHARS = (('A'..'z').to_a + ('0'..'9').to_a) + ['_']

identifiers start with a letter, then zero or more of these

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : String) #

[View source]

Instance Method Detail

def next #
Description copied from module Iterator(Z::Lex::Token)

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.


[View source]
def tokens #

[View source]