Break up the Ragel C grammar.

The grammar is now broken up in to a base lexer and a C lexer. This allows the
same grammar to also be used in the Java code.
This commit is contained in:
Yorick Peterse committed 2014-05-07 00:50:34 +02:00
1 parent 49939fa687
commit f25f8a3d15
3 files changed
+241 -236

No files matched your search

+2 -2
View File
@@ -17,11 +17,11 @@ rule '.rb' => '.rl' do |task|
end
rule '.c' => '.rl' do |task|
sh "ragel -C -G2 #{task.source} -o #{task.name}"
sh "ragel -I ext/ragel -C -G2 #{task.source} -o #{task.name}"
end
rule '.java' => '.rl' do |task|
sh "ragel -J #{task.source} -o #{task.name}"
sh "ragel -I ext/ragel -J #{task.source} -o #{task.name}"
end
desc 'Generates the lexers'