Created
December 19, 2016 20:21
-
-
Save flajann2/9ad496a7965cc07a97352c10b2978da5 to your computer and use it in GitHub Desktop.
parser ruby24.rb loops forever upon loading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'573,572,,,557,566,554,553,552,562,555,557,,554,553,552,562,555,557,565', | |
'554,553,552,562,555,557,565,554,553,552,562,555,,565,,,,,,,565,560,', | |
',,,,,560,,,,573,572,,560,,566,,573,572,,560,,566,,573,572,,,,566,,573', | |
'572,,,,566' ] | |
racc_action_table = arr = ::Array.new(25362, nil) | |
idx = 0 | |
clist.each do |str| | |
str.split(',', -1).each do |i| | |
arr[idx] = i.to_i unless i.empty? # line 883 loops forever | |
idx += 1 # line 884 loops forever | |
end | |
end | |
clist = [ | |
'95,444,444,601,601,17,347,95,95,95,58,340,95,95,95,24,95,26,19,385,655', | |
'661,24,341,95,386,95,95,95,61,357,657,223,1,357,348,95,95,727,95,95', | |
'95,95,95,883,906,937,938,941,351,58,587,17,673,983,655,661,330,310,19', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment