module RubyLexer::SSWrapper

Public Instance Methods

beginning_of_line?() click to toggle source
# File lib/ruby_lexer.rb, line 1003
def beginning_of_line?
  ss.bol?
end
Also aliased as: bol?
bol?()
Alias for: beginning_of_line?
check(re) click to toggle source
# File lib/ruby_lexer.rb, line 1009
def check re
  maybe_pop_stack

  ss.check re
end
end_of_stream?() click to toggle source
# File lib/ruby_lexer.rb, line 1015
def end_of_stream?
  ss.eos?
end
Also aliased as: eos?
eos?()
Alias for: end_of_stream?
getch() click to toggle source
# File lib/ruby_lexer.rb, line 1021
def getch
  c = ss.getch
  c = ss.getch if c == "\r" && ss.peek(1) == "\n"
  c
end
in_heredoc?() click to toggle source
# File lib/ruby_lexer.rb, line 1035
def in_heredoc?
  !!self.old_ss
end
match() click to toggle source
# File lib/ruby_lexer.rb, line 1027
def match
  ss
end
matched() click to toggle source
# File lib/ruby_lexer.rb, line 1031
def matched
  ss.matched
end
maybe_pop_stack() click to toggle source
# File lib/ruby_lexer.rb, line 1039
def maybe_pop_stack
  if ss.eos? && in_heredoc? then
    self.ss_pop
    self.lineno_pop
  end
end
pos() click to toggle source
# File lib/ruby_lexer.rb, line 1046
def pos
  ss.pos
end
pos=(n) click to toggle source
# File lib/ruby_lexer.rb, line 1050
def pos= n
  ss.pos = n
end
rest() click to toggle source
# File lib/ruby_lexer.rb, line 1054
def rest
  ss.rest
end
scan(re) click to toggle source
# File lib/ruby_lexer.rb, line 1058
def scan re
  maybe_pop_stack

  ss.scan re
end
scanner_class() click to toggle source
# File lib/ruby_lexer.rb, line 1064
def scanner_class # TODO: design this out of oedipus_lex. or something.
  RPStringScanner
end
ss_string() click to toggle source
# File lib/ruby_lexer.rb, line 1068
def ss_string
  ss.string
end
ss_string=(s) click to toggle source
# File lib/ruby_lexer.rb, line 1072
def ss_string= s
  raise "Probably not"
  ss.string = s
end
string=(s) click to toggle source
# File lib/ruby_lexer.rb, line 999
def string= s
  ss.string= s
end
unscan() click to toggle source
# File lib/ruby_lexer.rb, line 1077
def unscan
  ss.unscan
end