Remove ExpressionParser in favor of ParseContext#safe_parse

This commit is contained in:
Guilherme Carreiro
2025-10-27 16:33:31 +01:00
committed by Guilherme Carreiro
parent d56e3c50f9
commit e413104e78
13 changed files with 34 additions and 812 deletions
-6
View File
@@ -2,8 +2,6 @@
module Liquid
class Parser
attr_reader :tokens
def initialize(input)
ss = input.is_a?(StringScanner) ? input : StringScanner.new(input)
@tokens = Lexer.tokenize(ss)
@@ -84,10 +82,6 @@ module Liquid
str
end
def point
@p
end
def variable_lookups
str = +""
loop do