Object
# File lib/journey/scanner.rb, line 13 13: def eos? 14: @ss.eos? 15: end
# File lib/journey/scanner.rb, line 25 25: def next_token 26: return if @ss.eos? 27: 28: until token = scan || @ss.eos?; end 29: token 30: end
# File lib/journey/scanner.rb, line 33 33: def scan 34: case 35: # / 36: when text = @ss.scan(/\//) 37: [:SLASH, text] 38: when text = @ss.scan(/\*/) 39: [:STAR, text] 40: when text = @ss.scan(/\(/) 41: [:LPAREN, text] 42: when text = @ss.scan(/\)/) 43: [:RPAREN, text] 44: when text = @ss.scan(/\|/) 45: [:OR, text] 46: when text = @ss.scan(/\./) 47: [:DOT, text] 48: when text = @ss.scan(/:\w+/) 49: [:SYMBOL, text] 50: when text = @ss.scan(/[\w%\-~]+/) 51: [:LITERAL, text] 52: # any char 53: when text = @ss.scan(/./) 54: [:LITERAL, text] 55: end 56: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.