mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Add ExpressionParser and ExpressionConsumer
This commit is contained in:
committed by
Guilherme Carreiro
parent
6a9e46dd19
commit
1bff382ebc
@@ -2,6 +2,8 @@
|
||||
|
||||
module Liquid
|
||||
class Parser
|
||||
attr_reader :tokens
|
||||
|
||||
def initialize(input)
|
||||
ss = input.is_a?(StringScanner) ? input : StringScanner.new(input)
|
||||
@tokens = Lexer.tokenize(ss)
|
||||
@@ -82,6 +84,10 @@ module Liquid
|
||||
str
|
||||
end
|
||||
|
||||
def point
|
||||
@p
|
||||
end
|
||||
|
||||
def variable_lookups
|
||||
str = +""
|
||||
loop do
|
||||
|
||||
Reference in New Issue
Block a user