9 ( t@( Data.Text.Internal.Text
15 let !( Data.Text.Unsafe.Iter
18 ) = Data.Text.Unsafe.iter t 0
21 Data.Text.Internal.Text arr (off GHC.Num.+ d) (unconsumed GHC.Num.- d)
24 ( Data.Text.Internal.Text
28 ) = unconsumed GHC.Classes.> 0
29 in (# input, more, next #)
30 finalRet = \_farInp _farExp v _inp -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
36 b = \(!exn) _failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
39 Symantic.Parser.Machine.Generate.ParsingError
40 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
41 Symantic.Parser.Machine.Generate.parsingErrorException = exn,
42 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
52 else GHC.Maybe.Nothing,
53 Symantic.Parser.Machine.Generate.parsingErrorExpecting = farExp
56 ( let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
57 in let name = \(!callReturn) (!callInput) (!callCatchStackByLabel) -> do
59 reg <- GHC.STRef.newSTRef dupv
61 in let catchHandler loopInput (!_exn) (!failInp) (!farInp) (!farExp) =
62 if ( \( Data.Text.Internal.Text
67 ( Data.Text.Internal.Text
71 ) -> i GHC.Classes.== j
76 let _ = "choicesBranch.then"
78 sr <- GHC.STRef.readSTRef reg
83 ( let _ = "resume.genCode"
88 let _ = "choicesBranch.else"
89 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure callCatchStackByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
90 loop = \_callReturn callInput callCatchStackByLabel ->
91 let readFail = catchHandler callInput
92 in if readMore callInput
97 #) = readNext callInput
98 in if (\c -> GHC.Classes.not (('<' GHC.Classes.== c) GHC.Classes.|| (('>' GHC.Classes.== c) GHC.Classes.|| (('+' GHC.Classes.== c) GHC.Classes.|| (('-' GHC.Classes.== c) GHC.Classes.|| ((',' GHC.Classes.== c) GHC.Classes.|| (('.' GHC.Classes.== c) GHC.Classes.|| (('[' GHC.Classes.== c) GHC.Classes.|| ((']' GHC.Classes.== c) GHC.Classes.|| GHC.Types.False))))))))) c
100 sr <- GHC.STRef.readSTRef reg
103 GHC.STRef.writeSTRef reg dupv
105 in loop (GHC.Err.error "invalid return") cs (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
107 let _ = "checkToken.else"
108 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput init Data.Set.Internal.empty
110 let _ = "checkHorizon.else"
112 Data.Set.Internal.Bin
114 ( Symantic.Parser.Grammar.Combinators.SomeFailure
116 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
119 Data.Set.Internal.Tip
120 Data.Set.Internal.Tip
124 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
133 failExp GHC.Base.<> Data.Set.Internal.empty
138 Data.Set.Internal.empty
140 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
142 in loop callReturn callInput (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure callCatchStackByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
143 name = \(!callReturn) (!callInput) (!callCatchStackByLabel) -> do
145 reg <- GHC.STRef.newSTRef dupv
147 in let catchHandler loopInput (!_exn) (!failInp) (!farInp) (!farExp) =
148 if ( \( Data.Text.Internal.Text
153 ( Data.Text.Internal.Text
157 ) -> i GHC.Classes.== j
162 let _ = "choicesBranch.then"
164 sr <- GHC.STRef.readSTRef reg
169 ( let _ = "resume.genCode"
174 let _ = "choicesBranch.else"
175 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure callCatchStackByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
176 loop = \_callReturn callInput callCatchStackByLabel ->
177 let join = \farInp farExp v (!inp) ->
180 in \farInp farExp v (!inp) -> do
181 sr <- GHC.STRef.readSTRef reg
183 let dupv = \x -> sr ((GHC.Types.:) v x)
184 GHC.STRef.writeSTRef reg dupv
186 in loop (GHC.Err.error "invalid return") inp (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (catchHandler callInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
189 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (catchHandler callInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
190 in let readFail = catchHandler callInput
191 in if readMore callInput
196 #) = readNext callInput
197 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '<' x) c
199 let _ = "choicesBranch.then"
200 in let readFail = readFail
201 in if readMore callInput
206 #) = readNext callInput
210 Data.Set.Internal.empty
211 ( let _ = "resume.genCode"
212 in Parsers.Brainfuck.Types.Backward
216 let _ = "checkHorizon.else"
218 Data.Set.Internal.Bin
220 ( Symantic.Parser.Grammar.Combinators.SomeFailure
222 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
225 Data.Set.Internal.Tip
226 Data.Set.Internal.Tip
230 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
239 failExp GHC.Base.<> Data.Set.Internal.empty
244 Data.Set.Internal.empty
246 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
248 let _ = "choicesBranch.else"
249 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '>' x) c
251 let _ = "choicesBranch.then"
252 in let readFail = readFail
253 in if readMore callInput
258 #) = readNext callInput
262 Data.Set.Internal.empty
263 ( let _ = "resume.genCode"
264 in Parsers.Brainfuck.Types.Forward
268 let _ = "checkHorizon.else"
270 Data.Set.Internal.Bin
272 ( Symantic.Parser.Grammar.Combinators.SomeFailure
274 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
277 Data.Set.Internal.Tip
278 Data.Set.Internal.Tip
282 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
291 failExp GHC.Base.<> Data.Set.Internal.empty
296 Data.Set.Internal.empty
298 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
300 let _ = "choicesBranch.else"
301 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '+' x) c
303 let _ = "choicesBranch.then"
304 in let readFail = readFail
305 in if readMore callInput
310 #) = readNext callInput
314 Data.Set.Internal.empty
315 ( let _ = "resume.genCode"
316 in Parsers.Brainfuck.Types.Increment
320 let _ = "checkHorizon.else"
322 Data.Set.Internal.Bin
324 ( Symantic.Parser.Grammar.Combinators.SomeFailure
326 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
329 Data.Set.Internal.Tip
330 Data.Set.Internal.Tip
334 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
343 failExp GHC.Base.<> Data.Set.Internal.empty
348 Data.Set.Internal.empty
350 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
352 let _ = "choicesBranch.else"
353 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '-' x) c
355 let _ = "choicesBranch.then"
356 in let readFail = readFail
357 in if readMore callInput
362 #) = readNext callInput
366 Data.Set.Internal.empty
367 ( let _ = "resume.genCode"
368 in Parsers.Brainfuck.Types.Decrement
372 let _ = "checkHorizon.else"
374 Data.Set.Internal.Bin
376 ( Symantic.Parser.Grammar.Combinators.SomeFailure
378 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
381 Data.Set.Internal.Tip
382 Data.Set.Internal.Tip
386 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
395 failExp GHC.Base.<> Data.Set.Internal.empty
400 Data.Set.Internal.empty
402 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
404 let _ = "choicesBranch.else"
405 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) ',' x) c
407 let _ = "choicesBranch.then"
408 in let readFail = readFail
409 in if readMore callInput
414 #) = readNext callInput
418 Data.Set.Internal.empty
419 ( let _ = "resume.genCode"
420 in Parsers.Brainfuck.Types.Input
424 let _ = "checkHorizon.else"
426 Data.Set.Internal.Bin
428 ( Symantic.Parser.Grammar.Combinators.SomeFailure
430 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
433 Data.Set.Internal.Tip
434 Data.Set.Internal.Tip
438 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
447 failExp GHC.Base.<> Data.Set.Internal.empty
452 Data.Set.Internal.empty
454 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
456 let _ = "choicesBranch.else"
457 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '.' x) c
459 let _ = "choicesBranch.then"
460 in let readFail = readFail
461 in if readMore callInput
466 #) = readNext callInput
470 Data.Set.Internal.empty
471 ( let _ = "resume.genCode"
472 in Parsers.Brainfuck.Types.Output
476 let _ = "checkHorizon.else"
478 Data.Set.Internal.Bin
480 ( Symantic.Parser.Grammar.Combinators.SomeFailure
482 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
485 Data.Set.Internal.Tip
486 Data.Set.Internal.Tip
490 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
499 failExp GHC.Base.<> Data.Set.Internal.empty
504 Data.Set.Internal.empty
506 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
508 let _ = "choicesBranch.else"
509 in if (\x -> (\x -> \x -> (GHC.Classes.==) x x) '[' x) c
511 let _ = "choicesBranch.then"
512 in let readFail = readFail
513 in if readMore callInput
518 #) = readNext callInput
521 in \farInp farExp v (!inp) ->
524 in \farInp farExp v (!inp) ->
525 let readFail = readFail
532 in if (GHC.Classes.==) ']' c
538 ( let _ = "resume.genCode"
539 in Parsers.Brainfuck.Types.Loop v
543 let _ = "checkToken.else"
544 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
546 let _ = "checkHorizon.else"
548 Data.Set.Internal.Bin
550 ( Symantic.Parser.Grammar.Combinators.SomeFailure
552 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
555 Data.Set.Internal.Tip
556 Data.Set.Internal.Tip
560 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
569 failExp GHC.Base.<> farExp
576 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
579 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
582 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
584 let _ = "checkHorizon.else"
586 Data.Set.Internal.Bin
588 ( Symantic.Parser.Grammar.Combinators.SomeFailure
590 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
593 Data.Set.Internal.Tip
594 Data.Set.Internal.Tip
598 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
607 failExp GHC.Base.<> Data.Set.Internal.empty
612 Data.Set.Internal.empty
614 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
616 let _ = "choicesBranch.else"
617 in let failExp = Data.Set.Internal.Bin 1 (Symantic.Parser.Grammar.Combinators.SomeFailure Symantic.Parser.Grammar.Combinators.FailureEmpty) Data.Set.Internal.Tip Data.Set.Internal.Tip
621 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
630 failExp GHC.Base.<> Data.Set.Internal.empty
635 Data.Set.Internal.empty
637 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
639 let _ = "checkHorizon.else"
641 Data.Set.Internal.Bin
643 ( Symantic.Parser.Grammar.Combinators.SomeFailure
645 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
648 Data.Set.Internal.Tip
649 Data.Set.Internal.Tip
653 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
662 failExp GHC.Base.<> Data.Set.Internal.empty
667 Data.Set.Internal.empty
669 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
671 in loop callReturn callInput (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure callCatchStackByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
674 in \farInp farExp v (!inp) ->
677 in \farInp farExp v (!inp) ->
682 ( let _ = "resume.genCode"
688 Data.Map.Internal.Tip
691 Data.Map.Internal.Tip