mirror of
https://github.com/elastic/logstash.git
synced 2025-04-22 21:57:26 -04:00
15 lines
365 B
Ruby
15 lines
365 B
Ruby
|
|
rule ".rb" => ".treetop" do |task, args|
|
|
require "treetop"
|
|
compiler = Treetop::Compiler::GrammarCompiler.new
|
|
compiler.compile(task.source, task.name)
|
|
puts "Compiling #{task.source}"
|
|
end
|
|
|
|
namespace "compile" do
|
|
desc "Compile the config grammar"
|
|
task "grammar" => "lib/logstash/config/grammar.rb"
|
|
|
|
desc "Build everything"
|
|
task "all" => "grammar"
|
|
end
|