Created
December 3, 2017 06:13
-
-
Save bicycle1885/379052656354e18d357756a80b0e1423 to your computer and use it in GitHub Desktop.
Generated code from numbers.jl
This file contains 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
quote | |
if p > p_end | |
@goto exit | |
end | |
##667 = (Automa.SizedMemory)(data) | |
if cs == 1 | |
@goto state_case_1 | |
else | |
if cs == 2 | |
@goto state_case_2 | |
else | |
if cs == 3 | |
@goto state_case_3 | |
else | |
if cs == 4 | |
@goto state_case_4 | |
else | |
if cs == 5 | |
@goto state_case_5 | |
else | |
if cs == 6 | |
@goto state_case_6 | |
else | |
if cs == 7 | |
@goto state_case_7 | |
else | |
if cs == 8 | |
@goto state_case_8 | |
else | |
if cs == 9 | |
@goto state_case_9 | |
else | |
if cs == 10 | |
@goto state_case_10 | |
else | |
if cs == 11 | |
@goto state_case_11 | |
else | |
if cs == 12 | |
@goto state_case_12 | |
else | |
if cs == 13 | |
@goto state_case_13 | |
else | |
@goto exit | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
@label state_1_action_2 | |
emit(:float) | |
@goto state_1 | |
@label state_1_action_3 | |
emit(:dec) | |
@goto state_1 | |
@label state_1_action_4 | |
emit(:hex) | |
@goto state_1 | |
@label state_1_action_5 | |
emit(:oct) | |
@goto state_1 | |
@label state_1 | |
p += 1 | |
if p > p_end | |
cs = 1 | |
@goto exit | |
end | |
@label state_case_1 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x31:0x39 || false) && true | |
@goto state_3_action_1 | |
else | |
if (##668 in 0x2b:0x2b || (##668 in 0x2d:0x2d || false)) && true | |
@goto state_4_action_1 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1 | |
else | |
if (##668 in 0x30:0x30 || false) && true | |
@goto state_2_action_1 | |
else | |
if (##668 in 0x2e:0x2e || false) && true | |
@goto state_5_action_1 | |
else | |
cs = -1 | |
@goto exit | |
end | |
end | |
end | |
end | |
end | |
@label state_5_action_1 | |
mark = p | |
@goto state_5 | |
@label state_5 | |
p += 1 | |
if p > p_end | |
cs = 5 | |
@goto exit | |
end | |
@label state_case_5 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_6 | |
else | |
cs = -5 | |
@goto exit | |
end | |
@label state_6 | |
p += 1 | |
if p > p_end | |
cs = 6 | |
@goto exit | |
end | |
@label state_case_6 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_6 | |
else | |
if (##668 in 0x45:0x45 || (##668 in 0x65:0x65 || false)) && true | |
@goto state_7 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_2 | |
else | |
cs = -6 | |
@goto exit | |
end | |
end | |
end | |
@label state_7 | |
p += 1 | |
if p > p_end | |
cs = 7 | |
@goto exit | |
end | |
@label state_case_7 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_8 | |
else | |
if (##668 in 0x2b:0x2b || (##668 in 0x2d:0x2d || false)) && true | |
@goto state_9 | |
else | |
cs = -7 | |
@goto exit | |
end | |
end | |
@label state_9 | |
p += 1 | |
if p > p_end | |
cs = 9 | |
@goto exit | |
end | |
@label state_case_9 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_8 | |
else | |
cs = -9 | |
@goto exit | |
end | |
@label state_8 | |
p += 1 | |
if p > p_end | |
cs = 8 | |
@goto exit | |
end | |
@label state_case_8 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_8 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_2 | |
else | |
cs = -8 | |
@goto exit | |
end | |
end | |
@label state_4_action_1 | |
mark = p | |
@goto state_4 | |
@label state_4 | |
p += 1 | |
if p > p_end | |
cs = 4 | |
@goto exit | |
end | |
@label state_case_4 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_3 | |
else | |
if (##668 in 0x2e:0x2e || false) && true | |
@goto state_5 | |
else | |
cs = -4 | |
@goto exit | |
end | |
end | |
@label state_3_action_1 | |
mark = p | |
@goto state_3 | |
@label state_3 | |
p += 1 | |
if p > p_end | |
cs = 3 | |
@goto exit | |
end | |
@label state_case_3 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_3 | |
else | |
if (##668 in 0x45:0x45 || (##668 in 0x65:0x65 || false)) && true | |
@goto state_7 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_3 | |
else | |
if (##668 in 0x2e:0x2e || false) && true | |
@goto state_6 | |
else | |
cs = -3 | |
@goto exit | |
end | |
end | |
end | |
end | |
@label state_2_action_1 | |
mark = p | |
@goto state_2 | |
@label state_2 | |
p += 1 | |
if p > p_end | |
cs = 2 | |
@goto exit | |
end | |
@label state_case_2 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || false) && true | |
@goto state_3 | |
else | |
if (##668 in 0x45:0x45 || (##668 in 0x65:0x65 || false)) && true | |
@goto state_7 | |
else | |
if (##668 in 0x6f:0x6f || false) && true | |
@goto state_10 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_3 | |
else | |
if (##668 in 0x78:0x78 || false) && true | |
@goto state_11 | |
else | |
if (##668 in 0x2e:0x2e || false) && true | |
@goto state_6 | |
else | |
cs = -2 | |
@goto exit | |
end | |
end | |
end | |
end | |
end | |
end | |
@label state_11 | |
p += 1 | |
if p > p_end | |
cs = 11 | |
@goto exit | |
end | |
@label state_case_11 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || (##668 in 0x41:0x46 || (##668 in 0x61:0x66 || false))) && true | |
@goto state_12 | |
else | |
cs = -11 | |
@goto exit | |
end | |
@label state_12 | |
p += 1 | |
if p > p_end | |
cs = 12 | |
@goto exit | |
end | |
@label state_case_12 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x39 || (##668 in 0x41:0x46 || (##668 in 0x61:0x66 || false))) && true | |
@goto state_12 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_4 | |
else | |
cs = -12 | |
@goto exit | |
end | |
end | |
@label state_10 | |
p += 1 | |
if p > p_end | |
cs = 10 | |
@goto exit | |
end | |
@label state_case_10 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x37 || false) && true | |
@goto state_13 | |
else | |
cs = -10 | |
@goto exit | |
end | |
@label state_13 | |
p += 1 | |
if p > p_end | |
cs = 13 | |
@goto exit | |
end | |
@label state_case_13 | |
##668 = (getindex)(##667, p + 0) | |
if (##668 in 0x30:0x37 || false) && true | |
@goto state_13 | |
else | |
if (##668 in 0x20:0x20 || false) && true | |
@goto state_1_action_5 | |
else | |
cs = -13 | |
@goto exit | |
end | |
end | |
@label exit | |
if p > p_eof ≥ 0 && cs ∈ Automa.StableSet{Int64}(Automa.StableDict(1=>nothing,6=>nothing,8=>nothing,3=>nothing,2=>nothing,12=>nothing,13=>nothing)) | |
if cs == 1 | |
else | |
if cs == 6 | |
emit(:float) | |
else | |
if cs == 8 | |
emit(:float) | |
else | |
if cs == 3 | |
emit(:dec) | |
else | |
if cs == 2 | |
emit(:dec) | |
else | |
if cs == 12 | |
emit(:hex) | |
else | |
if cs == 13 | |
emit(:oct) | |
else | |
() | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
cs = 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment