mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- compile again
This commit is contained in:
parent
e09b412d92
commit
adc4bd034b
1 changed files with 20 additions and 2 deletions
|
@ -361,6 +361,7 @@ when 0 then
|
||||||
@tokenstack.push(p)
|
@tokenstack.push(p)
|
||||||
#puts "Mark: #{self.line(string, p)}##{self.column(string, p)}"
|
#puts "Mark: #{self.line(string, p)}##{self.column(string, p)}"
|
||||||
end
|
end
|
||||||
|
# line 7 "grammar.rl"
|
||||||
when 1 then
|
when 1 then
|
||||||
# line 12 "grammar.rl"
|
# line 12 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -373,6 +374,7 @@ when 1 then
|
||||||
#puts [startpos, endpos].join(",")
|
#puts [startpos, endpos].join(",")
|
||||||
@stack << token.to_i
|
@stack << token.to_i
|
||||||
end
|
end
|
||||||
|
# line 12 "grammar.rl"
|
||||||
when 2 then
|
when 2 then
|
||||||
# line 22 "grammar.rl"
|
# line 22 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -383,6 +385,7 @@ when 2 then
|
||||||
#puts "string: #{token}"
|
#puts "string: #{token}"
|
||||||
@stack << token
|
@stack << token
|
||||||
end
|
end
|
||||||
|
# line 22 "grammar.rl"
|
||||||
when 3 then
|
when 3 then
|
||||||
# line 30 "grammar.rl"
|
# line 30 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -396,6 +399,7 @@ when 3 then
|
||||||
#puts "quotedstring: #{token}"
|
#puts "quotedstring: #{token}"
|
||||||
@stack << token
|
@stack << token
|
||||||
end
|
end
|
||||||
|
# line 30 "grammar.rl"
|
||||||
when 4 then
|
when 4 then
|
||||||
# line 41 "grammar.rl"
|
# line 41 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -403,6 +407,7 @@ when 4 then
|
||||||
@array = []
|
@array = []
|
||||||
@stack << :array_init
|
@stack << :array_init
|
||||||
end
|
end
|
||||||
|
# line 41 "grammar.rl"
|
||||||
when 5 then
|
when 5 then
|
||||||
# line 46 "grammar.rl"
|
# line 46 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -414,12 +419,14 @@ when 5 then
|
||||||
|
|
||||||
@stack << @array
|
@stack << @array
|
||||||
end
|
end
|
||||||
|
# line 46 "grammar.rl"
|
||||||
when 6 then
|
when 6 then
|
||||||
# line 55 "grammar.rl"
|
# line 55 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
|
||||||
# nothing
|
# nothing
|
||||||
end
|
end
|
||||||
|
# line 55 "grammar.rl"
|
||||||
when 7 then
|
when 7 then
|
||||||
# line 59 "grammar.rl"
|
# line 59 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -433,6 +440,7 @@ when 7 then
|
||||||
@parameters[name] << value
|
@parameters[name] << value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# line 59 "grammar.rl"
|
||||||
when 8 then
|
when 8 then
|
||||||
# line 70 "grammar.rl"
|
# line 70 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -443,6 +451,7 @@ when 8 then
|
||||||
@components << { name => @parameters }
|
@components << { name => @parameters }
|
||||||
@parameters = Hash.new { |h,k| h[k] = [] }
|
@parameters = Hash.new { |h,k| h[k] = [] }
|
||||||
end
|
end
|
||||||
|
# line 70 "grammar.rl"
|
||||||
when 9 then
|
when 9 then
|
||||||
# line 78 "grammar.rl"
|
# line 78 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -450,6 +459,7 @@ when 9 then
|
||||||
@components = []
|
@components = []
|
||||||
@parameters = Hash.new { |h,k| h[k] = [] }
|
@parameters = Hash.new { |h,k| h[k] = [] }
|
||||||
end
|
end
|
||||||
|
# line 78 "grammar.rl"
|
||||||
when 10 then
|
when 10 then
|
||||||
# line 83 "grammar.rl"
|
# line 83 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -459,10 +469,12 @@ when 10 then
|
||||||
@config[name] += @components
|
@config[name] += @components
|
||||||
#puts "Config component: #{name}"
|
#puts "Config component: #{name}"
|
||||||
end
|
end
|
||||||
|
# line 83 "grammar.rl"
|
||||||
when 11 then
|
when 11 then
|
||||||
# line 90 "grammar.rl"
|
# line 90 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
e = @tokenstack.pop; puts "Comment: #{string[e ... p]}" end
|
e = @tokenstack.pop; puts "Comment: #{string[e ... p]}" end
|
||||||
|
# line 90 "grammar.rl"
|
||||||
when 13 then
|
when 13 then
|
||||||
# line 140 "grammar.rl"
|
# line 140 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -471,7 +483,8 @@ when 13 then
|
||||||
$stderr.puts "Error at line #{self.line(string, p)}, column #{self.column(string, p)}: #{string[p .. -1].inspect}"
|
$stderr.puts "Error at line #{self.line(string, p)}, column #{self.column(string, p)}: #{string[p .. -1].inspect}"
|
||||||
# TODO(sissel): Note what we were expecting?
|
# TODO(sissel): Note what we were expecting?
|
||||||
end
|
end
|
||||||
# line 475 "grammar.rb"
|
# line 140 "grammar.rl"
|
||||||
|
# line 488 "grammar.rb"
|
||||||
end # action switch
|
end # action switch
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -506,6 +519,7 @@ when 0 then
|
||||||
@tokenstack.push(p)
|
@tokenstack.push(p)
|
||||||
#puts "Mark: #{self.line(string, p)}##{self.column(string, p)}"
|
#puts "Mark: #{self.line(string, p)}##{self.column(string, p)}"
|
||||||
end
|
end
|
||||||
|
# line 7 "grammar.rl"
|
||||||
when 10 then
|
when 10 then
|
||||||
# line 83 "grammar.rl"
|
# line 83 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -515,14 +529,17 @@ when 10 then
|
||||||
@config[name] += @components
|
@config[name] += @components
|
||||||
#puts "Config component: #{name}"
|
#puts "Config component: #{name}"
|
||||||
end
|
end
|
||||||
|
# line 83 "grammar.rl"
|
||||||
when 11 then
|
when 11 then
|
||||||
# line 90 "grammar.rl"
|
# line 90 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
e = @tokenstack.pop; puts "Comment: #{string[e ... p]}" end
|
e = @tokenstack.pop; puts "Comment: #{string[e ... p]}" end
|
||||||
|
# line 90 "grammar.rl"
|
||||||
when 12 then
|
when 12 then
|
||||||
# line 139 "grammar.rl"
|
# line 139 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
puts "END" end
|
puts "END" end
|
||||||
|
# line 139 "grammar.rl"
|
||||||
when 13 then
|
when 13 then
|
||||||
# line 140 "grammar.rl"
|
# line 140 "grammar.rl"
|
||||||
begin
|
begin
|
||||||
|
@ -531,7 +548,8 @@ when 13 then
|
||||||
$stderr.puts "Error at line #{self.line(string, p)}, column #{self.column(string, p)}: #{string[p .. -1].inspect}"
|
$stderr.puts "Error at line #{self.line(string, p)}, column #{self.column(string, p)}: #{string[p .. -1].inspect}"
|
||||||
# TODO(sissel): Note what we were expecting?
|
# TODO(sissel): Note what we were expecting?
|
||||||
end
|
end
|
||||||
# line 535 "grammar.rb"
|
# line 140 "grammar.rl"
|
||||||
|
# line 553 "grammar.rb"
|
||||||
end # eof action switch
|
end # eof action switch
|
||||||
end
|
end
|
||||||
if _trigger_goto
|
if _trigger_goto
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue