]> Git — Sourcephile - haskell/symantic-parser.git/blob - test/Golden/Splice/G1.expected.txt
fix: use a global polyfix for defLet and defRef
[haskell/symantic-parser.git] / test / Golden / Splice / G1.expected.txt
1 \(input_0 :: inp_6989586621679059048) ->
2 let !(#
3 init_1,
4 readMore_2,
5 readNext_3
6 #) =
7 let _ = "cursorOf"
8 in let next_4
9 ( t_5@( Data.Text.Internal.Text
10 arr_6
11 off_7
12 unconsumed_8
13 )
14 ) =
15 let !( Data.Text.Unsafe.Iter
16 c_9
17 d_10
18 ) = Data.Text.Unsafe.iter t_5 0
19 in (#
20 c_9,
21 Data.Text.Internal.Text arr_6 (off_7 GHC.Num.+ d_10) (unconsumed_8 GHC.Num.- d_10)
22 #)
23 more_11
24 ( Data.Text.Internal.Text
25 _
26 _
27 unconsumed_12
28 ) = unconsumed_12 GHC.Classes.> 0
29 in (#
30 input_0,
31 more_11,
32 next_4
33 #)
34 in let finalRet_13 = \_farInp_14 _farExp_15 v_16 _inp_17 -> Data.Either.Right v_16
35 in let finalRaise_18 ::
36 forall b_19.
37 Symantic.Parser.Machine.Generate.Catcher
38 inp_6989586621679059048
39 b_19 = \_failInp_20 (!farInp_21) (!farExp_22) ->
40 Data.Either.Left
41 Symantic.Parser.Machine.Generate.ParsingErrorStandard
42 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp_21,
43 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
44 if readMore_2 farInp_21
45 then
46 GHC.Maybe.Just
47 ( let (#
48 c_23,
49 _
50 #) = readNext_3 farInp_21
51 in c_23
52 )
53 else GHC.Maybe.Nothing,
54 Symantic.Parser.Machine.Generate.parsingErrorExpecting = Data.Set.Internal.fromList farExp_22
55 }
56 in let
57 in let readFail_24 = finalRaise_18
58 in if readMore_2 init_1
59 then
60 let !(#
61 c_25,
62 cs_26
63 #) = readNext_3 init_1
64 in if ('a' GHC.Classes.==) c_25
65 then
66 let _ = "resume"
67 in finalRet_13 init_1 GHC.Types
68 . []
69 ( let _ = "resume.genCode"
70 in 'a'
71 )
72 cs_26
73 else
74 let _ = "checkToken.else"
75 in let (#
76 farInp_27,
77 farExp_28
78 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init_1 init_1 of
79 GHC.Types.LT ->
80 (#
81 init_1,
82 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
83 #)
84 GHC.Types.EQ ->
85 (#
86 init_1,
87 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
88 #)
89 GHC.Types.GT ->
90 (#
91 init_1,
92 GHC.Types . []
93 #)
94 in finalRaise_18 init_1 farInp_27 farExp_28
95 else
96 let _ = "checkHorizon.else"
97 in let (#
98 farInp_29,
99 farExp_30
100 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init_1 init_1 of
101 GHC.Types.LT ->
102 (#
103 init_1,
104 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
105 #)
106 GHC.Types.EQ ->
107 (#
108 init_1,
109 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
110 #)
111 GHC.Types.GT ->
112 (#
113 init_1,
114 GHC.Types . []
115 #)
116 in finalRaise_18 init_1 farInp_29 farExp_30