Replace regexpes with Ragel grammer

context parsing was handrolled and pretty ad-hoc
this branch exists to explore parsing the context
through a defined fsm as produced by Ragel
This commit is contained in:
Tobias Lütke
2013-03-19 18:30:08 -04:00
committed by Tom Burns
parent 006e7475f4
commit 7dcf578898
8 changed files with 872 additions and 46 deletions
+5
View File
@@ -7,6 +7,11 @@ require 'rubygems/package_task'
task :default => 'test'
task :ragel do
sh "find . -name '*.rl' | xargs ragel -R"
end
Rake::TestTask.new(:test) do |t|
t.libs << '.' << 'lib' << 'test'
t.test_files = FileList['test/liquid/**/*_test.rb']