Myst::Lexer
Inherits Reference / Object
Constructors
Instance methods
check_for_keyword
Attempt to lex the current buffer as a keyword. If one is found, the token type will be set appropriately. If not, the token type will not be changed.
consume_comment
Sourceconsume_constant
Sourceconsume_identifier
Sourceconsume_numeric
Sourceconsume_symbol_or_colon
Sourceconsume_whitespace
Sourcecurrent_brace
Sourcecurrent_char
Sourcecurrent_context
Sourcecurrent_location
Sourcefinished?
Sourcelex_all
Sourcepeek_char
Sourcepop_brace(type : Symbol)
Attempts to pop the top bracing character from the stack, but only if it matches the given type. Returns false if the type does not match.
pop_context
Sourcepush_brace(type : Symbol)
Sourcepush_context(context : Context)
Sourceread_string_interp_token
Sourceread_string_token
Sourceread_token
Sourcereplace_escape_characters(raw)
Sourceskip_char
Sourcesource_file
Full path to the source file used by this lexer. For STDIN and other
non-local input methods, this will be nil.
source_file=(source_file : String)
Full path to the source file used by this lexer. For STDIN and other
non-local input methods, this will be nil.
token_is_empty?
Source