Class: IRB::SLex Private
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | lib/yard/parser/ruby/legacy/irb/slex.rb |
Constant Summary
-
DOUT =
# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 18Notifier::def_notifier("SLex::")
-
D_DEBUG =
# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 20DOUT::def_notifier(2, "Debug: ")
-
D_DETAIL =
# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 21DOUT::def_notifier(4, "Detail: ")
-
D_WARN =
# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 19DOUT::def_notifier(1, "Warn: ")
Class Method Summary
- .new ⇒ SLex constructor Internal use only
Instance Method Summary
- #create(token, preproc = nil, postproc = nil) Internal use only
- #def_rule(token, preproc = nil, postproc = nil, &block) Internal use only
- #def_rules(*tokens, &block) Internal use only
- #inspect Internal use only
- #match(token) Internal use only
-
#postproc(token)
Internal use only
need a check?
- #preproc(token, proc) Internal use only
- #search(token) Internal use only
Constructor Details
.new ⇒ SLex
Instance Method Details
#create(token, preproc = nil, postproc = nil)
[ GitHub ]#def_rule(token, preproc = nil, postproc = nil, &block)
[ GitHub ]#def_rules(*tokens, &block)
[ GitHub ]# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 36
def def_rules(*tokens, &block) if block_given? p = block end for token in tokens def_rule(token, nil, p) end end
#inspect
[ GitHub ]# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 77
def inspect format("<SLex: @head = %s>", @head.inspect) end
#match(token)
[ GitHub ]#postproc(token)
need a check?
# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 51
def postproc(token) node = search(token, proc) node.postproc=proc end
#preproc(token, proc)
[ GitHub ]# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 45
def preproc(token, proc) node = search(token) node.preproc=proc end
#search(token)
[ GitHub ]# File 'lib/yard/parser/ruby/legacy/irb/slex.rb', line 56
def search(token) @head.search(token.split(//)) end