Renamed HTML_PARSER to PARSER_OUTPUT.
This keeps it consistent with the lexer.
This commit is contained in:
parent
eae13d21ed
commit
7c03de0e2f
6
Rakefile
6
Rakefile
|
@ -5,12 +5,10 @@ require 'cliver'
|
||||||
|
|
||||||
GEMSPEC = Gem::Specification.load('oga.gemspec')
|
GEMSPEC = Gem::Specification.load('oga.gemspec')
|
||||||
|
|
||||||
LEXER_INPUT = 'lib/oga/xml/lexer.rl'
|
|
||||||
LEXER_OUTPUT = 'lib/oga/xml/lexer.rb'
|
LEXER_OUTPUT = 'lib/oga/xml/lexer.rb'
|
||||||
|
PARSER_OUTPUT = 'lib/oga/xml/parser.rb'
|
||||||
|
|
||||||
HTML_PARSER = 'lib/oga/xml/parser.rb'
|
GENERATED_FILES = ['coverage', 'yardoc', LEXER_OUTPUT, PARSER_OUTPUT]
|
||||||
|
|
||||||
GENERATED_FILES = ['coverage', 'yardoc', LEXER_OUTPUT, HTML_PARSER]
|
|
||||||
|
|
||||||
GENERATED_FILES.each do |file|
|
GENERATED_FILES.each do |file|
|
||||||
CLEAN << file if File.exist?(file)
|
CLEAN << file if File.exist?(file)
|
||||||
|
|
|
@ -5,4 +5,4 @@ rule '.rb' => '.y' do |task|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Generates the parser'
|
desc 'Generates the parser'
|
||||||
task :parser => [HTML_PARSER]
|
task :parser => [PARSER_OUTPUT]
|
||||||
|
|
Loading…
Reference in New Issue