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 in let finalRet = \_farInp _farExp v _inp -> Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
35 b = \_failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.ParsingErrorStandard
38 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
39 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
49 else GHC.Maybe.Nothing,
50 Symantic.Parser.Machine.Generate.parsingErrorExpecting = Data.Set.Internal.fromList farExp
52 in let name = \(!ok) (!inp) (!koByLabel) ->
55 in \farInp farExp v (!inp) ->
60 ( let _ = "resume.genCode"
67 name = \(!ok) (!inp) (!koByLabel) ->
70 in \farInp farExp v (!inp) ->
75 ( let _ = "resume.genCode"
82 name = \(!ok) (!inp) (!koByLabel) ->
83 let _ = "catchException lbl=fail"
84 in let catchHandler (!failInp) (!farInp) (!farExp) =
85 let _ = "catchException.ko lbl=fail"
86 in if ( \( Data.Text.Internal.Text
91 ( Data.Text.Internal.Text
95 ) -> i GHC.Classes.== j
100 let _ = "choicesBranch.then"
105 ( let _ = "resume.genCode"
110 let _ = "choicesBranch.else"
114 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
123 farExp GHC.Base.<> []
130 in finalRaise failInp farInp farExp
131 in let join = \farInp farExp v (!inp) ->
134 in \farInp farExp v (!inp) ->
137 in \farInp farExp v (!inp) ->
142 ( let _ = "resume.genCode"
143 in \x -> v GHC.Types.: v x
148 Data.Map.Internal.Tip
151 Data.Map.Internal.Tip
152 in let readFail = catchHandler
159 in if (\x -> \x -> x) GHC.Types.True c
161 if '>' GHC.Classes.== c
163 let _ = "choicesBranch.then"
164 in let readFail = readFail
171 in if (\x -> \x -> x) GHC.Types.True c
174 in join init GHC.Types
176 ( let _ = "resume.genCode"
177 in Grammar.Brainfuck.RightPointer
181 let _ = "checkToken.else"
185 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
194 GHC.Types . [] GHC.Base.<> []
201 in readFail inp farInp farExp
203 let _ = "checkHorizon.else"
207 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
211 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
216 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
223 in readFail inp farInp farExp
225 let _ = "choicesBranch.else"
226 in if '<' GHC.Classes.== c
228 let _ = "choicesBranch.then"
229 in let readFail = readFail
236 in if (\x -> \x -> x) GHC.Types.True c
239 in join init GHC.Types
241 ( let _ = "resume.genCode"
242 in Grammar.Brainfuck.LeftPointer
246 let _ = "checkToken.else"
250 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
259 GHC.Types . [] GHC.Base.<> []
266 in readFail inp farInp farExp
268 let _ = "checkHorizon.else"
272 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
276 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
281 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
288 in readFail inp farInp farExp
290 let _ = "choicesBranch.else"
291 in if '+' GHC.Classes.== c
293 let _ = "choicesBranch.then"
294 in let readFail = readFail
301 in if (\x -> \x -> x) GHC.Types.True c
304 in join init GHC.Types
306 ( let _ = "resume.genCode"
307 in Grammar.Brainfuck.Increment
311 let _ = "checkToken.else"
315 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
324 GHC.Types . [] GHC.Base.<> []
331 in readFail inp farInp farExp
333 let _ = "checkHorizon.else"
337 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
341 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
346 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
353 in readFail inp farInp farExp
355 let _ = "choicesBranch.else"
356 in if '-' GHC.Classes.== c
358 let _ = "choicesBranch.then"
359 in let readFail = readFail
366 in if (\x -> \x -> x) GHC.Types.True c
369 in join init GHC.Types
371 ( let _ = "resume.genCode"
372 in Grammar.Brainfuck.Decrement
376 let _ = "checkToken.else"
380 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
389 GHC.Types . [] GHC.Base.<> []
396 in readFail inp farInp farExp
398 let _ = "checkHorizon.else"
402 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
406 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
411 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
418 in readFail inp farInp farExp
420 let _ = "choicesBranch.else"
421 in if '.' GHC.Classes.== c
423 let _ = "choicesBranch.then"
424 in let readFail = readFail
431 in if (\x -> \x -> x) GHC.Types.True c
434 in join init GHC.Types
436 ( let _ = "resume.genCode"
437 in Grammar.Brainfuck.Output
441 let _ = "checkToken.else"
445 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
454 GHC.Types . [] GHC.Base.<> []
461 in readFail inp farInp farExp
463 let _ = "checkHorizon.else"
467 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
471 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
476 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
483 in readFail inp farInp farExp
485 let _ = "choicesBranch.else"
486 in if ',' GHC.Classes.== c
488 let _ = "choicesBranch.then"
489 in let readFail = readFail
496 in if (\x -> \x -> x) GHC.Types.True c
499 in join init GHC.Types
501 ( let _ = "resume.genCode"
502 in Grammar.Brainfuck.Input
506 let _ = "checkToken.else"
510 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
519 GHC.Types . [] GHC.Base.<> []
526 in readFail inp farInp farExp
528 let _ = "checkHorizon.else"
532 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
536 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
541 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
548 in readFail inp farInp farExp
550 let _ = "choicesBranch.else"
551 in if '[' GHC.Classes.== c
553 let _ = "choicesBranch.then"
554 in let readFail = readFail
555 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
561 in if (\x -> \x -> x) GHC.Types.True c
565 in \farInp farExp v (!inp) ->
568 in \farInp farExp v (!inp) ->
569 let readFail = readFail
576 in if (']' GHC.Classes.==) c
582 ( let _ = "resume.genCode"
583 in Grammar.Brainfuck.Loop v
587 let _ = "checkToken.else"
591 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
595 [Symantic.Parser.Grammar.Combinators.ErrorItemToken ']']
600 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken ']']
607 in readFail inp farInp farExp
609 let _ = "checkHorizon.else"
613 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
617 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
622 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
629 in readFail inp farInp farExp
632 Data.Map.Internal.Tip
635 Data.Map.Internal.Tip
637 let _ = "checkToken.else"
641 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
650 GHC.Types . [] GHC.Base.<> []
657 in readFail inp farInp farExp
659 let _ = "checkHorizon.else"
663 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
667 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
672 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
679 in readFail inp farInp farExp
681 let _ = "choicesBranch.else"
685 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
694 GHC.Types . [] GHC.Base.<> []
701 in readFail inp farInp farExp
703 let _ = "checkToken.else"
707 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
716 GHC.Types . [] GHC.Base.<> []
723 in readFail inp farInp farExp
725 let _ = "checkHorizon.else"
729 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
733 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
738 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
745 in readFail inp farInp farExp
746 name = \(!ok) (!inp) (!koByLabel) ->
747 let _ = "catchException lbl=fail"
748 in let catchHandler (!failInp) (!farInp) (!farExp) =
749 let _ = "catchException.ko lbl=fail"
750 in if ( \( Data.Text.Internal.Text
755 ( Data.Text.Internal.Text
759 ) -> i GHC.Classes.== j
764 let _ = "choicesBranch.then"
769 ( let _ = "resume.genCode"
774 let _ = "choicesBranch.else"
778 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
787 farExp GHC.Base.<> []
794 in finalRaise failInp farInp farExp
795 in let readFail = catchHandler
802 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.Classes.== c) GHC.Classes.|| GHC.Types.False)))))))))) c
806 in \farInp farExp v (!inp) ->
811 ( let _ = "resume.genCode"
817 Data.Map.Internal.Tip
819 let _ = "checkToken.else"
823 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
827 [ Symantic.Parser.Grammar.Combinators.ErrorItemToken '<',
828 Symantic.Parser.Grammar.Combinators.ErrorItemToken '>',
829 Symantic.Parser.Grammar.Combinators.ErrorItemToken '+',
830 Symantic.Parser.Grammar.Combinators.ErrorItemToken '-',
831 Symantic.Parser.Grammar.Combinators.ErrorItemToken '[',
832 Symantic.Parser.Grammar.Combinators.ErrorItemToken ']',
833 Symantic.Parser.Grammar.Combinators.ErrorItemToken ',',
834 Symantic.Parser.Grammar.Combinators.ErrorItemToken '.',
835 Symantic.Parser.Grammar.Combinators.ErrorItemToken '$'
842 GHC.Base.<> [ Symantic.Parser.Grammar.Combinators.ErrorItemToken '<',
843 Symantic.Parser.Grammar.Combinators.ErrorItemToken '>',
844 Symantic.Parser.Grammar.Combinators.ErrorItemToken '+',
845 Symantic.Parser.Grammar.Combinators.ErrorItemToken '-',
846 Symantic.Parser.Grammar.Combinators.ErrorItemToken '[',
847 Symantic.Parser.Grammar.Combinators.ErrorItemToken ']',
848 Symantic.Parser.Grammar.Combinators.ErrorItemToken ',',
849 Symantic.Parser.Grammar.Combinators.ErrorItemToken '.',
850 Symantic.Parser.Grammar.Combinators.ErrorItemToken '$'
858 in readFail inp farInp farExp
860 let _ = "checkHorizon.else"
864 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
868 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
873 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
880 in readFail inp farInp farExp
883 in \farInp farExp v (!inp) ->
886 in \farInp farExp v (!inp) ->
891 ( let _ = "resume.genCode"
897 Data.Map.Internal.Tip
900 Data.Map.Internal.Tip