Slow lexer and parser scaffold.

This commit is contained in:
Tristan Hume
2013-07-24 11:35:00 -04:00
parent fbfda1a189
commit 2332d86156
3 changed files with 73 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
module Liquid
# This class is used by tags to parse themselves
# it provides helpers and encapsulates state
class Parser
def initialize(input)
@input = input
@p = 0 # pointer to current location
end
end
end