Setup for Java and Ragel.

This commit is contained in:
Yorick Peterse committed 2014-05-06 10:24:07 +02:00
1 parent 2652bc0103
commit 64c9e18651
2 files changed
+48 -1

No files matched your search

+8 -1
View File
@@ -20,5 +20,12 @@ rule '.c' => '.rl' do |task|
sh "ragel -C -G2 #{task.source} -o #{task.name}"
end
rule '.java' => '.rl' do |task|
sh "ragel -J #{task.source} -o #{task.name}"
end
desc 'Generates the lexers'
task :lexer => ['ext/liboga/lexer.c']
multitask :lexer => [
'ext/liboga/lexer.c',
'ext/liboga/org/liboga/xml/Lexer.java'
]