Object | +--RubyLex
All Included Modules:
RubyToken, IRB
continue [R]
exception_on_syntax_error [R]
indent [R]
lex_state [R]
read_auto_clean_up [R]
skip_space [R]
PERCENT_LTYPE = { "q" => "\'", "Q" => "\"", "x" => "\`", "r" => "/", "w" => "]" } DLtype2Token = { "\"" => TkDSTRING, "\`" => TkDXSTRING, "/" => TkDREGEXP, }Ltype2Token = { "\'" => TkSTRING, "\"" => TkSTRING, "\`" => TkXSTRING, "/" => TkREGEXP, "]" => TkDSTRING } ENINDENT_CLAUSE = [ "case", "class", "def", "do", "for", "if", "module", "unless", "until", "while", "begin" ]
Ltype2Token.default = TkSTRING
PERCENT_PAREN = { "{" => "}", "[" => "]", "<" => ">", "(" => ")" } DEINDENT_CLAUSE = ["end" ]
| Constants included from RubyToken |
|---|
| TkSymbol2Token, EXPR_MID, EXPR_DOT, EXPR_ARG, TkReading2Token, NEWLINE_TOKEN, TokenDefinitions, EXPR_CLASS, EXPR_FNAME, EXPR_BEG, EXPR_END |
| Object |
debug?
|
| Public class methods included from RubyToken |
|---|
| def_token |
| Object |
char_no
|
| Object |
continue
Returns the value of attribute continue . |
| Object |
continue=(value)
Sets the attribute continue . |
| Object |
exception_on_syntax_error
Returns the value of attribute exception_on_syntax_error . |
| Object |
exception_on_syntax_error=(value)
Sets the attribute exception_on_syntax_error . |
| Object |
get_read
|
| Object |
getc
|
| Object |
getc_of_rests
|
| Object |
gets
|
| Object |
identify_comment
|
| Object |
identify_gvar
|
| Object |
identify_here_document
|
| Object |
identify_identifier
|
| Object |
identify_number(start)
|
| Object |
identify_quotation(initial_char)
|
| Object |
identify_string(ltype, quoted = ltype, opener=nil, initial_char = nil)
|
| Object |
indent
Returns the value of attribute indent . |
| Object |
indent=(value)
Sets the attribute indent . |
| Object |
lex
|
| Object |
lex_init()
|
| Object |
lex_int2
|
| Object |
lex_state
Returns the value of attribute lex_state . |
| Object |
lex_state=(value)
Sets the attribute lex_state . |
| Object |
line_no
io functions . |
| Object |
peek(i = 0)
|
| Object |
peek_equal?(str)
|
| Object |
read_auto_clean_up
Returns the value of attribute read_auto_clean_up . |
| Object |
read_auto_clean_up=(value)
Sets the attribute read_auto_clean_up . |
| Object |
read_escape
|
| Object |
skip_inner_expression
|
| Object |
skip_space
Returns the value of attribute skip_space . |
| Object |
skip_space=(value)
Sets the attribute skip_space . |
| Object |
token
|
| Object |
ungetc(c = nil)
|
| Public instance methods included from RubyToken |
|---|
| set_token_position, Token |
Returns the value of attribute continue
Sets the attribute continue
Returns the value of attribute exception_on_syntax_error
Sets the attribute exception_on_syntax_error
Returns the value of attribute indent
Sets the attribute indent
Returns the value of attribute lex_state
Sets the attribute lex_state
io functions
Returns the value of attribute read_auto_clean_up
Sets the attribute read_auto_clean_up
Returns the value of attribute skip_space
Sets the attribute skip_space