class Z::Lex::Lexer
- Z::Lex::Lexer
- Reference
- Object
Included Modules
- Iterator(Z::Lex::Token)
Defined in:
lex/lexer.crConstant 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
-
#next
Returns the next element in this iterator, or
Iterator::Stop::INSTANCE
if there are no more elements. - #tokens
Constructor Detail
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.