Method: Liquid::Parser#initialize

Defined in:
lib/liquid/parser.rb

#initialize(input) ⇒ Parser



3
4
5
6
7
# File 'lib/liquid/parser.rb', line 3

def initialize(input)
  l = Lexer.new(input)
  @tokens = l.tokenize
  @p = 0 # pointer to current location
end