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 -> Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
35 b = \(!exn) _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.parsingErrorException = exn,
40 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
50 else GHC.Maybe.Nothing,
51 Symantic.Parser.Machine.Generate.parsingErrorExpecting = farExp
53 in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
54 in let name = \(!ok) (!inp) (!koByLabel) ->
57 in \farInp farExp v (!inp) ->
62 ( let _ = "resume.genCode"
68 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
69 name = \(!ok) (!inp) (!koByLabel) ->
72 in \farInp farExp v (!inp) ->
77 ( let _ = "resume.genCode"
83 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
84 name = \(!ok) (!inp) (!koByLabel) ->
85 let _ = "catch ExceptionFailure"
86 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
87 let _ = "catch.ko ExceptionFailure"
88 in if ( \( Data.Text.Internal.Text
93 ( Data.Text.Internal.Text
97 ) -> i GHC.Classes.== j
102 let _ = "choicesBranch.then"
107 ( let _ = "resume.genCode"
112 let _ = "choicesBranch.else"
113 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
114 in let join = \farInp farExp v (!inp) ->
117 in \farInp farExp v (!inp) ->
120 in \farInp farExp v (!inp) ->
125 ( let _ = "resume.genCode"
126 in \x -> v GHC.Types.: v x
131 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure catchHandler Data.Map.Internal.Tip Data.Map.Internal.Tip)
134 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure catchHandler Data.Map.Internal.Tip Data.Map.Internal.Tip)
135 in let readFail = catchHandler
142 in if (\x -> \x -> x) GHC.Types.True c
144 if '<' GHC.Classes.== c
146 let _ = "choicesBranch.then"
147 in let readFail = readFail
154 in if (\x -> \x -> x) GHC.Types.True c
159 Data.Set.Internal.empty
160 ( let _ = "resume.genCode"
161 in Parsers.Brainfuck.Types.Backward
165 let _ = "checkToken.else"
167 Data.Set.Internal.Bin
169 ( Symantic.Parser.Grammar.Combinators.SomeFailure
171 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
174 Data.Set.Internal.Tip
175 Data.Set.Internal.Tip
179 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
188 failExp GHC.Base.<> Data.Set.Internal.empty
193 Data.Set.Internal.empty
195 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
197 let _ = "checkHorizon.else"
199 Data.Set.Internal.Bin
201 ( Symantic.Parser.Grammar.Combinators.SomeFailure
203 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
206 Data.Set.Internal.Tip
207 Data.Set.Internal.Tip
211 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
220 failExp GHC.Base.<> Data.Set.Internal.empty
225 Data.Set.Internal.empty
227 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
229 let _ = "choicesBranch.else"
230 in if '>' GHC.Classes.== c
232 let _ = "choicesBranch.then"
233 in let readFail = readFail
240 in if (\x -> \x -> x) GHC.Types.True c
245 Data.Set.Internal.empty
246 ( let _ = "resume.genCode"
247 in Parsers.Brainfuck.Types.Forward
251 let _ = "checkToken.else"
253 Data.Set.Internal.Bin
255 ( Symantic.Parser.Grammar.Combinators.SomeFailure
257 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
260 Data.Set.Internal.Tip
261 Data.Set.Internal.Tip
265 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
274 failExp GHC.Base.<> Data.Set.Internal.empty
279 Data.Set.Internal.empty
281 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
283 let _ = "checkHorizon.else"
285 Data.Set.Internal.Bin
287 ( Symantic.Parser.Grammar.Combinators.SomeFailure
289 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
292 Data.Set.Internal.Tip
293 Data.Set.Internal.Tip
297 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
306 failExp GHC.Base.<> Data.Set.Internal.empty
311 Data.Set.Internal.empty
313 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
315 let _ = "choicesBranch.else"
316 in if '+' GHC.Classes.== c
318 let _ = "choicesBranch.then"
319 in let readFail = readFail
326 in if (\x -> \x -> x) GHC.Types.True c
331 Data.Set.Internal.empty
332 ( let _ = "resume.genCode"
333 in Parsers.Brainfuck.Types.Increment
337 let _ = "checkToken.else"
339 Data.Set.Internal.Bin
341 ( Symantic.Parser.Grammar.Combinators.SomeFailure
343 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
346 Data.Set.Internal.Tip
347 Data.Set.Internal.Tip
351 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
360 failExp GHC.Base.<> Data.Set.Internal.empty
365 Data.Set.Internal.empty
367 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
369 let _ = "checkHorizon.else"
371 Data.Set.Internal.Bin
373 ( Symantic.Parser.Grammar.Combinators.SomeFailure
375 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
378 Data.Set.Internal.Tip
379 Data.Set.Internal.Tip
383 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
392 failExp GHC.Base.<> Data.Set.Internal.empty
397 Data.Set.Internal.empty
399 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
401 let _ = "choicesBranch.else"
402 in if '-' GHC.Classes.== c
404 let _ = "choicesBranch.then"
405 in let readFail = readFail
412 in if (\x -> \x -> x) GHC.Types.True c
417 Data.Set.Internal.empty
418 ( let _ = "resume.genCode"
419 in Parsers.Brainfuck.Types.Decrement
423 let _ = "checkToken.else"
425 Data.Set.Internal.Bin
427 ( Symantic.Parser.Grammar.Combinators.SomeFailure
429 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
432 Data.Set.Internal.Tip
433 Data.Set.Internal.Tip
437 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
446 failExp GHC.Base.<> Data.Set.Internal.empty
451 Data.Set.Internal.empty
453 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
455 let _ = "checkHorizon.else"
457 Data.Set.Internal.Bin
459 ( Symantic.Parser.Grammar.Combinators.SomeFailure
461 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
464 Data.Set.Internal.Tip
465 Data.Set.Internal.Tip
469 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
478 failExp GHC.Base.<> Data.Set.Internal.empty
483 Data.Set.Internal.empty
485 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
487 let _ = "choicesBranch.else"
488 in if ',' GHC.Classes.== c
490 let _ = "choicesBranch.then"
491 in let readFail = readFail
498 in if (\x -> \x -> x) GHC.Types.True c
503 Data.Set.Internal.empty
504 ( let _ = "resume.genCode"
505 in Parsers.Brainfuck.Types.Input
509 let _ = "checkToken.else"
511 Data.Set.Internal.Bin
513 ( Symantic.Parser.Grammar.Combinators.SomeFailure
515 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
518 Data.Set.Internal.Tip
519 Data.Set.Internal.Tip
523 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
532 failExp GHC.Base.<> Data.Set.Internal.empty
537 Data.Set.Internal.empty
539 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
541 let _ = "checkHorizon.else"
543 Data.Set.Internal.Bin
545 ( Symantic.Parser.Grammar.Combinators.SomeFailure
547 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
550 Data.Set.Internal.Tip
551 Data.Set.Internal.Tip
555 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
564 failExp GHC.Base.<> Data.Set.Internal.empty
569 Data.Set.Internal.empty
571 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
573 let _ = "choicesBranch.else"
574 in if '.' GHC.Classes.== c
576 let _ = "choicesBranch.then"
577 in let readFail = readFail
584 in if (\x -> \x -> x) GHC.Types.True c
589 Data.Set.Internal.empty
590 ( let _ = "resume.genCode"
591 in Parsers.Brainfuck.Types.Output
595 let _ = "checkToken.else"
597 Data.Set.Internal.Bin
599 ( Symantic.Parser.Grammar.Combinators.SomeFailure
601 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
604 Data.Set.Internal.Tip
605 Data.Set.Internal.Tip
609 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
618 failExp GHC.Base.<> Data.Set.Internal.empty
623 Data.Set.Internal.empty
625 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
627 let _ = "checkHorizon.else"
629 Data.Set.Internal.Bin
631 ( Symantic.Parser.Grammar.Combinators.SomeFailure
633 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
636 Data.Set.Internal.Tip
637 Data.Set.Internal.Tip
641 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
650 failExp GHC.Base.<> Data.Set.Internal.empty
655 Data.Set.Internal.empty
657 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
659 let _ = "choicesBranch.else"
660 in if '[' GHC.Classes.== c
662 let _ = "choicesBranch.then"
663 in let readFail = readFail
664 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
670 in if (\x -> \x -> x) GHC.Types.True c
674 in \farInp farExp v (!inp) ->
677 in \farInp farExp v (!inp) ->
678 let readFail = readFail
685 in if (']' GHC.Classes.==) c
691 ( let _ = "resume.genCode"
692 in Parsers.Brainfuck.Types.Loop v
696 let _ = "checkToken.else"
697 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
699 let _ = "checkHorizon.else"
701 Data.Set.Internal.Bin
703 ( Symantic.Parser.Grammar.Combinators.SomeFailure
705 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
708 Data.Set.Internal.Tip
709 Data.Set.Internal.Tip
713 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
722 failExp GHC.Base.<> farExp
729 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
732 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
735 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
737 let _ = "checkToken.else"
739 Data.Set.Internal.Bin
741 ( Symantic.Parser.Grammar.Combinators.SomeFailure
743 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
746 Data.Set.Internal.Tip
747 Data.Set.Internal.Tip
751 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
760 failExp GHC.Base.<> Data.Set.Internal.empty
765 Data.Set.Internal.empty
767 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
769 let _ = "checkHorizon.else"
771 Data.Set.Internal.Bin
773 ( Symantic.Parser.Grammar.Combinators.SomeFailure
775 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
778 Data.Set.Internal.Tip
779 Data.Set.Internal.Tip
783 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
792 failExp GHC.Base.<> Data.Set.Internal.empty
797 Data.Set.Internal.empty
799 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
801 let _ = "choicesBranch.else"
802 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
806 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
815 failExp GHC.Base.<> Data.Set.Internal.empty
820 Data.Set.Internal.empty
822 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
824 let _ = "checkToken.else"
826 Data.Set.Internal.Bin
828 ( Symantic.Parser.Grammar.Combinators.SomeFailure
830 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureAny @tok'
833 Data.Set.Internal.Tip
834 Data.Set.Internal.Tip
838 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
847 failExp GHC.Base.<> Data.Set.Internal.empty
852 Data.Set.Internal.empty
854 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
856 let _ = "checkHorizon.else"
858 Data.Set.Internal.Bin
860 ( Symantic.Parser.Grammar.Combinators.SomeFailure
862 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
865 Data.Set.Internal.Tip
866 Data.Set.Internal.Tip
870 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
879 failExp GHC.Base.<> Data.Set.Internal.empty
884 Data.Set.Internal.empty
886 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
887 name = \(!ok) (!inp) (!koByLabel) ->
888 let _ = "catch ExceptionFailure"
889 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
890 let _ = "catch.ko ExceptionFailure"
891 in if ( \( Data.Text.Internal.Text
896 ( Data.Text.Internal.Text
900 ) -> i GHC.Classes.== j
905 let _ = "choicesBranch.then"
910 ( let _ = "resume.genCode"
915 let _ = "choicesBranch.else"
916 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
917 in let readFail = catchHandler
924 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
928 in \farInp farExp v (!inp) ->
933 ( let _ = "resume.genCode"
939 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
941 let _ = "checkToken.else"
942 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp init Data.Set.Internal.empty
944 let _ = "checkHorizon.else"
946 Data.Set.Internal.Bin
948 ( Symantic.Parser.Grammar.Combinators.SomeFailure
950 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
953 Data.Set.Internal.Tip
954 Data.Set.Internal.Tip
958 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
967 failExp GHC.Base.<> Data.Set.Internal.empty
972 Data.Set.Internal.empty
974 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
977 in \farInp farExp v (!inp) ->
980 in \farInp farExp v (!inp) ->
985 ( let _ = "resume.genCode"
991 Data.Map.Internal.Tip
994 Data.Map.Internal.Tip