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.ParsingError
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 -> (GHC.Types.:) v (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 (GHC.Classes.==) '<' c
144 let _ = "choicesBranch.then"
145 in let readFail = readFail
155 Data.Set.Internal.empty
156 ( let _ = "resume.genCode"
157 in Parsers.Brainfuck.Types.Backward
161 let _ = "checkHorizon.else"
163 Data.Set.Internal.Bin
165 ( Symantic.Parser.Grammar.Combinators.SomeFailure
167 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
170 Data.Set.Internal.Tip
171 Data.Set.Internal.Tip
175 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
184 failExp GHC.Base.<> Data.Set.Internal.empty
189 Data.Set.Internal.empty
191 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
193 let _ = "choicesBranch.else"
194 in if (GHC.Classes.==) '>' c
196 let _ = "choicesBranch.then"
197 in let readFail = readFail
207 Data.Set.Internal.empty
208 ( let _ = "resume.genCode"
209 in Parsers.Brainfuck.Types.Forward
213 let _ = "checkHorizon.else"
215 Data.Set.Internal.Bin
217 ( Symantic.Parser.Grammar.Combinators.SomeFailure
219 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
222 Data.Set.Internal.Tip
223 Data.Set.Internal.Tip
227 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
236 failExp GHC.Base.<> Data.Set.Internal.empty
241 Data.Set.Internal.empty
243 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
245 let _ = "choicesBranch.else"
246 in if (GHC.Classes.==) '+' c
248 let _ = "choicesBranch.then"
249 in let readFail = readFail
259 Data.Set.Internal.empty
260 ( let _ = "resume.genCode"
261 in Parsers.Brainfuck.Types.Increment
265 let _ = "checkHorizon.else"
267 Data.Set.Internal.Bin
269 ( Symantic.Parser.Grammar.Combinators.SomeFailure
271 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
274 Data.Set.Internal.Tip
275 Data.Set.Internal.Tip
279 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
288 failExp GHC.Base.<> Data.Set.Internal.empty
293 Data.Set.Internal.empty
295 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
297 let _ = "choicesBranch.else"
298 in if (GHC.Classes.==) '-' c
300 let _ = "choicesBranch.then"
301 in let readFail = readFail
311 Data.Set.Internal.empty
312 ( let _ = "resume.genCode"
313 in Parsers.Brainfuck.Types.Decrement
317 let _ = "checkHorizon.else"
319 Data.Set.Internal.Bin
321 ( Symantic.Parser.Grammar.Combinators.SomeFailure
323 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
326 Data.Set.Internal.Tip
327 Data.Set.Internal.Tip
331 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
340 failExp GHC.Base.<> Data.Set.Internal.empty
345 Data.Set.Internal.empty
347 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
349 let _ = "choicesBranch.else"
350 in if (GHC.Classes.==) ',' c
352 let _ = "choicesBranch.then"
353 in let readFail = readFail
363 Data.Set.Internal.empty
364 ( let _ = "resume.genCode"
365 in Parsers.Brainfuck.Types.Input
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
415 Data.Set.Internal.empty
416 ( let _ = "resume.genCode"
417 in Parsers.Brainfuck.Types.Output
421 let _ = "checkHorizon.else"
423 Data.Set.Internal.Bin
425 ( Symantic.Parser.Grammar.Combinators.SomeFailure
427 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
430 Data.Set.Internal.Tip
431 Data.Set.Internal.Tip
435 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
444 failExp GHC.Base.<> Data.Set.Internal.empty
449 Data.Set.Internal.empty
451 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
453 let _ = "choicesBranch.else"
454 in if (GHC.Classes.==) '[' c
456 let _ = "choicesBranch.then"
457 in let readFail = readFail
458 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
466 in \farInp farExp v (!inp) ->
469 in \farInp farExp v (!inp) ->
470 let readFail = readFail
477 in if (GHC.Classes.==) ']' c
483 ( let _ = "resume.genCode"
484 in Parsers.Brainfuck.Types.Loop v
488 let _ = "checkToken.else"
489 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
491 let _ = "checkHorizon.else"
493 Data.Set.Internal.Bin
495 ( Symantic.Parser.Grammar.Combinators.SomeFailure
497 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
500 Data.Set.Internal.Tip
501 Data.Set.Internal.Tip
505 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
514 failExp GHC.Base.<> farExp
521 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
524 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
527 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
529 let _ = "checkHorizon.else"
531 Data.Set.Internal.Bin
533 ( Symantic.Parser.Grammar.Combinators.SomeFailure
535 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
538 Data.Set.Internal.Tip
539 Data.Set.Internal.Tip
543 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
552 failExp GHC.Base.<> Data.Set.Internal.empty
557 Data.Set.Internal.empty
559 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
561 let _ = "choicesBranch.else"
562 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
566 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
575 failExp GHC.Base.<> Data.Set.Internal.empty
580 Data.Set.Internal.empty
582 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
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 inp of
607 failExp GHC.Base.<> Data.Set.Internal.empty
612 Data.Set.Internal.empty
614 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
615 name = \(!ok) (!inp) (!koByLabel) ->
616 let _ = "catch ExceptionFailure"
617 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
618 let _ = "catch.ko ExceptionFailure"
619 in if ( \( Data.Text.Internal.Text
624 ( Data.Text.Internal.Text
628 ) -> i GHC.Classes.== j
633 let _ = "choicesBranch.then"
638 ( let _ = "resume.genCode"
643 let _ = "choicesBranch.else"
644 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
645 in let readFail = catchHandler
652 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
656 in \farInp farExp v (!inp) ->
661 ( let _ = "resume.genCode"
667 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
669 let _ = "checkToken.else"
670 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp init Data.Set.Internal.empty
672 let _ = "checkHorizon.else"
674 Data.Set.Internal.Bin
676 ( Symantic.Parser.Grammar.Combinators.SomeFailure
678 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
681 Data.Set.Internal.Tip
682 Data.Set.Internal.Tip
686 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
695 failExp GHC.Base.<> Data.Set.Internal.empty
700 Data.Set.Internal.empty
702 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
705 in \farInp farExp v (!inp) ->
708 in \farInp farExp v (!inp) ->
713 ( let _ = "resume.genCode"
719 Data.Map.Internal.Tip
722 Data.Map.Internal.Tip