1 test/Golden/Splice/G1.hs:0:0:: Splicing expression
2 P.runParser @Text Grammar.g1
6 !(# init, readMore, readNext #)
7 = let _ = "cursorOf" in
9 next t@(Data.Text.Internal.Text arr off unconsumed)
10 = let !(Data.Text.Unsafe.Iter c d) = (Data.Text.Unsafe.iter t) 0
12 (# c, ((Data.Text.Internal.Text arr) (off + d)) (unconsumed - d) #)
13 more (Data.Text.Internal.Text _ _ unconsumed) = (unconsumed > 0)
14 in (# input, more, next #) in
15 let finalRet = \ _farInp _farExp v _inp -> Right v in
17 finalRaise :: forall b. P.Catcher inp b
18 = \ _failInp !farInp !farExp
20 P.ParsingErrorStandard
21 {P.parsingErrorOffset = P.offset farInp,
22 P.parsingErrorUnexpected = if readMore farInp then
23 Just (let (# c, _ #) = readNext farInp in c)
26 P.parsingErrorExpecting = Data.Set.Internal.fromList farExp} in
27 let readFail = finalRaise
30 let !(# c, cs #) = readNext init
36 (let _ = "resume.genCode" in ((\ x -> \ x -> x x) (\ x -> 'a')) c))
39 let _ = "checkToken.else" in
42 = case ((compare `Data.Function.on` P.offset) init) init of
43 LT -> (# init, [P.ErrorItemToken 'a'] #)
44 EQ -> (# init, ([] <> [P.ErrorItemToken 'a']) #)
46 in ((finalRaise init) farInp) farExp
48 let _ = "checkHorizon.else" in
51 = case ((compare `Data.Function.on` P.offset) init) init of
52 LT -> (# init, [P.ErrorItemHorizon 1] #)
53 EQ -> (# init, ([] <> [P.ErrorItemHorizon 1]) #)
55 in ((finalRaise init) farInp) farExp