Like advance, but also pretty-print the token and its position in the stream to `stdout`.
# File lib/parser/lexer/explanation.rb, line 16 def advance type, (val, range) = advance_before_explanation puts decorate(range, "\e[0;32m#{type} #{val.inspect}\e[0m", "#{state.to_s.ljust(12)} #{@cond} #{@cmdarg}\e[0m") [ type, [val, range] ] end
Generated with the Darkfish Rdoc Generator 2.