File: parser.rake

package info (click to toggle)
puppet 3.7.2-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 18,912 kB
  • ctags: 13,168
  • sloc: ruby: 210,410; sh: 2,050; xml: 1,554; lisp: 300; makefile: 142; python: 108; sql: 103; yacc: 72
file content (19 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
desc "Generate the 3.x 'current' parser"
task :gen_parser do
  %x{racc -olib/puppet/parser/parser.rb lib/puppet/parser/grammar.ra}
end

desc "Generate the 4.x 'future' parser"
task :gen_eparser do
  %x{racc -olib/puppet/pops/parser/eparser.rb lib/puppet/pops/parser/egrammar.ra}
end

desc "Generate the 4.x 'future' parser with egrammar.output"
task :gen_eparser_output do
  %x{racc -v -olib/puppet/pops/parser/eparser.rb lib/puppet/pops/parser/egrammar.ra}
end

desc "Generate the 4.x 'future' parser with debugging output"
task :gen_eparser_debug do
  %x{racc -t -olib/puppet/pops/parser/eparser.rb lib/puppet/pops/parser/egrammar.ra}
end