lib/nanodoc/filters/literate_pyg.rb
#
# ### Feed tokens to the state machine
Feed tokens to the state machine
Feed tokens to the state machine
def handle_parsed_file(tokens)
     *[BOF]: Beginning Of File
    feed_bof
     Leave token's text and CSS class in instance variables, and
     leave rest of work to the token state machine.
    tokens.each do |text, type, css_class|
      feed_token(text, type, css_class)
    end
     Feed EOF to finalize all that needs finalizing.
     *[EOF]: End Of File
    feed_eof
  end
def handle_parsed_file ( tokens ) feed_bof tokens . each do | text , type , css_class | feed_token ( text , type , css_class ) end feed_eof end
Feed tokens to the state machine
Feed tokens to the state machine
# Feed BOF to make sure everything is initialized. # # *[BOF]: Beginning Of File # Leave token's text and CSS class in instance variables, and # leave rest of work to the token state machine. # Feed EOF to finalize all that needs finalizing. # # *[EOF]: End Of File
tokens
<not_specific>