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:
1 parent
49939fa687
commit
f25f8a3d15
3 files changed
+241
-236
No files matched your search
+2
-2
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user