{-# OPTIONS_GHC -w #-}
{-# OPTIONS -XMagicHash -XBangPatterns -XTypeSynonymInstances -XFlexibleInstances -cpp #-}
#if __GLASGOW_HASKELL__ >= 710
{-# OPTIONS_GHC -XPartialTypeSignatures #-}
#endif
{-# LANGUAGE CPP               #-}
{-# LANGUAGE OverloadedStrings #-}

{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures  #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing      #-}
{-# OPTIONS_GHC -fno-warn-tabs                #-}
{-# OPTIONS_GHC -fno-warn-unused-binds        #-}
{-# OPTIONS_GHC -fno-warn-unused-matches      #-}

module Language.Sexp.Parser
  ( parseSexp_
  , parseSexps_
  ) where

import qualified Data.ByteString.Lazy.Char8 as B8
import qualified Data.List.NonEmpty as NE
import qualified Data.Scientific
import Data.Text (Text)
import qualified Data.Text as T
import Data.Text.Prettyprint.Doc

#if MIN_VERSION_prettyprinter(1,7,0)
import qualified Data.Text.Prettyprint.Doc.Render.String as Render
#else
import qualified Data.Text.Prettyprint.Doc.Render.ShowS as Render
#endif

import Language.Sexp.Token
import Language.Sexp.Lexer
import Language.Sexp.Types
import qualified Data.Array as Happy_Data_Array
import qualified Data.Bits as Bits
import qualified GHC.Exts as Happy_GHC_Exts
import Control.Applicative(Applicative(..))
import Control.Monad (ap)

-- parser produced by Happy Version 1.19.9

newtype HappyAbsSyn t10 t11 t12 = HappyAbsSyn HappyAny
#if __GLASGOW_HASKELL__ >= 607
type HappyAny = Happy_GHC_Exts.Any
#else
type HappyAny = forall a . a
#endif
happyIn5 :: ([Sexp]) -> (HappyAbsSyn t10 t11 t12)
happyIn5 :: [Sexp] -> HappyAbsSyn t10 t11 t12
happyIn5 [Sexp]
x = [Sexp] -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# [Sexp]
x
{-# INLINE happyIn5 #-}
happyOut5 :: (HappyAbsSyn t10 t11 t12) -> ([Sexp])
happyOut5 :: HappyAbsSyn t10 t11 t12 -> [Sexp]
happyOut5 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> [Sexp]
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut5 #-}
happyIn6 :: ([Sexp]) -> (HappyAbsSyn t10 t11 t12)
happyIn6 :: [Sexp] -> HappyAbsSyn t10 t11 t12
happyIn6 [Sexp]
x = [Sexp] -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# [Sexp]
x
{-# INLINE happyIn6 #-}
happyOut6 :: (HappyAbsSyn t10 t11 t12) -> ([Sexp])
happyOut6 :: HappyAbsSyn t10 t11 t12 -> [Sexp]
happyOut6 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> [Sexp]
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut6 #-}
happyIn7 :: (Sexp) -> (HappyAbsSyn t10 t11 t12)
happyIn7 :: Sexp -> HappyAbsSyn t10 t11 t12
happyIn7 Sexp
x = Sexp -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# Sexp
x
{-# INLINE happyIn7 #-}
happyOut7 :: (HappyAbsSyn t10 t11 t12) -> (Sexp)
happyOut7 :: HappyAbsSyn t10 t11 t12 -> Sexp
happyOut7 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> Sexp
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut7 #-}
happyIn8 :: (Sexp) -> (HappyAbsSyn t10 t11 t12)
happyIn8 :: Sexp -> HappyAbsSyn t10 t11 t12
happyIn8 Sexp
x = Sexp -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# Sexp
x
{-# INLINE happyIn8 #-}
happyOut8 :: (HappyAbsSyn t10 t11 t12) -> (Sexp)
happyOut8 :: HappyAbsSyn t10 t11 t12 -> Sexp
happyOut8 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> Sexp
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut8 #-}
happyIn9 :: (LocatedBy Position Atom) -> (HappyAbsSyn t10 t11 t12)
happyIn9 :: LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
happyIn9 LocatedBy Position Atom
x = LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# LocatedBy Position Atom
x
{-# INLINE happyIn9 #-}
happyOut9 :: (HappyAbsSyn t10 t11 t12) -> (LocatedBy Position Atom)
happyOut9 :: HappyAbsSyn t10 t11 t12 -> LocatedBy Position Atom
happyOut9 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> LocatedBy Position Atom
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut9 #-}
happyIn10 :: t10 -> (HappyAbsSyn t10 t11 t12)
happyIn10 :: t10 -> HappyAbsSyn t10 t11 t12
happyIn10 t10
x = t10 -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# t10
x
{-# INLINE happyIn10 #-}
happyOut10 :: (HappyAbsSyn t10 t11 t12) -> t10
happyOut10 :: HappyAbsSyn t10 t11 t12 -> t10
happyOut10 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> t10
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut10 #-}
happyIn11 :: t11 -> (HappyAbsSyn t10 t11 t12)
happyIn11 :: t11 -> HappyAbsSyn t10 t11 t12
happyIn11 t11
x = t11 -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# t11
x
{-# INLINE happyIn11 #-}
happyOut11 :: (HappyAbsSyn t10 t11 t12) -> t11
happyOut11 :: HappyAbsSyn t10 t11 t12 -> t11
happyOut11 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> t11
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut11 #-}
happyIn12 :: t12 -> (HappyAbsSyn t10 t11 t12)
happyIn12 :: t12 -> HappyAbsSyn t10 t11 t12
happyIn12 t12
x = t12 -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# t12
x
{-# INLINE happyIn12 #-}
happyOut12 :: (HappyAbsSyn t10 t11 t12) -> t12
happyOut12 :: HappyAbsSyn t10 t11 t12 -> t12
happyOut12 HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> t12
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOut12 #-}
happyInTok :: (LocatedBy Position Token) -> (HappyAbsSyn t10 t11 t12)
happyInTok :: LocatedBy Position Token -> HappyAbsSyn t10 t11 t12
happyInTok LocatedBy Position Token
x = LocatedBy Position Token -> HappyAbsSyn t10 t11 t12
Happy_GHC_Exts.unsafeCoerce# LocatedBy Position Token
x
{-# INLINE happyInTok #-}
happyOutTok :: (HappyAbsSyn t10 t11 t12) -> (LocatedBy Position Token)
happyOutTok :: HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
x = HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t10 t11 t12
x
{-# INLINE happyOutTok #-}


happyExpList :: HappyAddr
happyExpList :: HappyAddr
happyExpList = Addr# -> HappyAddr
HappyA# Addr#
"\x00\x50\x3d\x00\x50\x3d\x00\x50\x3d\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x3d\x00\x50\x3d\x00\x50\x3d\x00\x50\x3d\x00\x50\x3d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x80\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

{-# NOINLINE happyExpListPerState #-}
happyExpListPerState :: Int -> [a]
happyExpListPerState Int
st =
    [a]
token_strs_expected
  where token_strs :: [a]
token_strs = [a
"error",a
"%dummy",a
"%start_parseSexp_",a
"%start_parseSexps_",a
"Sexps_",a
"Sexps",a
"Sexp_",a
"Sexp",a
"Atom",a
"list__Sexp__",a
"list1__Sexp__",a
"rev_list1__Sexp__",a
"'('",a
"')'",a
"'['",a
"']'",a
"'{'",a
"'}'",a
"PREFIX",a
"SYMBOL",a
"NUMBER",a
"STRING",a
"EOF",a
"%eof"]
        bit_start :: Int
bit_start = Int
st Int -> Int -> Int
forall a. Num a => a -> a -> a
* Int
24
        bit_end :: Int
bit_end = (Int
st Int -> Int -> Int
forall a. Num a => a -> a -> a
+ Int
1) Int -> Int -> Int
forall a. Num a => a -> a -> a
* Int
24
        read_bit :: Int -> Bool
read_bit = HappyAddr -> Int -> Bool
readArrayBit HappyAddr
happyExpList
        bits :: [Bool]
bits = (Int -> Bool) -> [Int] -> [Bool]
forall a b. (a -> b) -> [a] -> [b]
map Int -> Bool
read_bit [Int
bit_start..Int
bit_end Int -> Int -> Int
forall a. Num a => a -> a -> a
- Int
1]
        bits_indexed :: [(Bool, Int)]
bits_indexed = [Bool] -> [Int] -> [(Bool, Int)]
forall a b. [a] -> [b] -> [(a, b)]
zip [Bool]
bits [Int
0..Int
23]
        token_strs_expected :: [a]
token_strs_expected = ((Bool, Int) -> [a]) -> [(Bool, Int)] -> [a]
forall (t :: * -> *) a b. Foldable t => (a -> [b]) -> t a -> [b]
concatMap (Bool, Int) -> [a]
f [(Bool, Int)]
bits_indexed
        f :: (Bool, Int) -> [a]
f (Bool
False, Int
_) = []
        f (Bool
True, Int
nr) = [[a]
token_strs [a] -> Int -> a
forall a. [a] -> Int -> a
!! Int
nr]

happyActOffsets :: HappyAddr
happyActOffsets :: HappyAddr
happyActOffsets = Addr# -> HappyAddr
HappyA# Addr#
"\x01\x00\x01\x00\x01\x00\xf6\xff\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\xf7\xff\xf7\xff\xfa\xff\x00\x00\x00\x00\x08\x00\x03\x00\x2f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

happyGotoOffsets :: HappyAddr
happyGotoOffsets :: HappyAddr
happyGotoOffsets = Addr# -> HappyAddr
HappyA# Addr#
"\x28\x00\x0c\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x00\x18\x00\x1d\x00\x22\x00\x2c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

happyAdjustOffset :: Happy_GHC_Exts.Int# -> Happy_GHC_Exts.Int#
happyAdjustOffset :: Int# -> Int#
happyAdjustOffset Int#
off = Int#
off

happyDefActions :: HappyAddr
happyDefActions :: HappyAddr
happyDefActions = Addr# -> HappyAddr
HappyA# Addr#
"\x00\x00\xf2\xff\x00\x00\x00\x00\xef\xff\xfa\xff\xfc\xff\xf1\xff\xf0\xff\xf2\xff\xf2\xff\xf2\xff\x00\x00\xf3\xff\xf5\xff\xf4\xff\x00\x00\x00\x00\x00\x00\xfb\xff\xf6\xff\x00\x00\x00\x00\x00\x00\xee\xff\xfd\xff\xf9\xff\xf8\xff\xf7\xff"#

happyCheck :: HappyAddr
happyCheck :: HappyAddr
happyCheck = Addr# -> HappyAddr
HappyA# Addr#
"\xff\xff\x0b\x00\x01\x00\x0c\x00\x03\x00\x0b\x00\x05\x00\x04\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x01\x00\x06\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x01\x00\xff\xff\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x02\x00\x03\x00\x04\x00\x03\x00\x04\x00\x03\x00\x04\x00\x02\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"#

happyTable :: HappyAddr
happyTable :: HappyAddr
happyTable = Addr# -> HappyAddr
HappyA# Addr#
"\x00\x00\x1a\x00\x0a\x00\xff\xff\x0b\x00\x14\x00\x0c\x00\x1c\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x10\x00\x03\x00\x1d\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08\x00\x03\x00\x00\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08\x00\x04\x00\x05\x00\x17\x00\x07\x00\x08\x00\x04\x00\x05\x00\x16\x00\x07\x00\x08\x00\x04\x00\x05\x00\x15\x00\x07\x00\x08\x00\x11\x00\x12\x00\x05\x00\x18\x00\x05\x00\x14\x00\x05\x00\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

happyReduceArr :: Array
  Int
  (Int#
   -> LocatedBy Position Token
   -> Int#
   -> Happy_IntList
   -> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
   -> [LocatedBy Position Token]
   -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp]))
happyReduceArr = (Int, Int)
-> [(Int,
     Int#
     -> LocatedBy Position Token
     -> Int#
     -> Happy_IntList
     -> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
     -> [LocatedBy Position Token]
     -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp]))]
-> Array
     Int
     (Int#
      -> LocatedBy Position Token
      -> Int#
      -> Happy_IntList
      -> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
      -> [LocatedBy Position Token]
      -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp]))
forall i e. Ix i => (i, i) -> [(i, e)] -> Array i e
Happy_Data_Array.array (Int
2, Int
17) [
	(Int
2 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_2),
	(Int
3 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_3),
	(Int
4 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_4),
	(Int
5 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_5),
	(Int
6 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_6),
	(Int
7 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_7),
	(Int
8 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_8),
	(Int
9 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_9),
	(Int
10 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_10),
	(Int
11 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_11),
	(Int
12 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_12),
	(Int
13 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_13),
	(Int
14 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_14),
	(Int
15 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_15),
	(Int
16 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_16),
	(Int
17 , Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_17)
	]

happy_n_terms :: Int
happy_n_terms = Int
13 :: Int
happy_n_nonterms :: Int
happy_n_nonterms = Int
8 :: Int

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_2 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_2 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_2  Int#
0# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall p t10 t11 t12 t10 t11 t12.
p -> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_2
happyReduction_2 :: p -> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_2 p
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> [Sexp]
happyOut6 HappyAbsSyn t10 t11 t12
happy_x_1 of { [Sexp]
happy_var_1 -> 
	[Sexp] -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. [Sexp] -> HappyAbsSyn t10 t11 t12
happyIn5
		 ([Sexp]
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_3 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_3 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
1# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t11 t12 t10 t11 t12.
HappyAbsSyn [Sexp] t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_3
happyReduction_3 :: HappyAbsSyn [Sexp] t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_3 HappyAbsSyn [Sexp] t11 t12
happy_x_1
	 =  case HappyAbsSyn [Sexp] t11 t12 -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t10
happyOut10 HappyAbsSyn [Sexp] t11 t12
happy_x_1 of { [Sexp]
happy_var_1 -> 
	[Sexp] -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. [Sexp] -> HappyAbsSyn t10 t11 t12
happyIn6
		 ([Sexp]
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_4 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_4 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_2  Int#
2# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall p t10 t11 t12 t10 t11 t12.
p -> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_4
happyReduction_4 :: p -> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_4 p
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> Sexp
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> Sexp
happyOut8 HappyAbsSyn t10 t11 t12
happy_x_1 of { Sexp
happy_var_1 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn7
		 (Sexp
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_5 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_5 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
3# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_5
happyReduction_5 :: HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_5 HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Atom
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Atom
happyOut9 HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Atom
happy_var_1 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn8
		 (Atom -> SexpF Sexp
forall e. Atom -> SexpF e
AtomF                       (Atom -> SexpF Sexp) -> LocatedBy Position Atom -> Sexp
forall a (e :: * -> *) p.
(a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ LocatedBy Position Atom
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_6 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_6 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_3  Int#
3# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall p t11 t12 t10 t11 t12 t10 t11 t12.
p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_6
happyReduction_6 :: p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_6 p
happy_x_3
	HappyAbsSyn [Sexp] t11 t12
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	case HappyAbsSyn [Sexp] t11 t12 -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t10
happyOut10 HappyAbsSyn [Sexp] t11 t12
happy_x_2 of { [Sexp]
happy_var_2 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn8
		 (SexpF Sexp -> Token -> SexpF Sexp
forall a b. a -> b -> a
const ([Sexp] -> SexpF Sexp
forall e. [e] -> SexpF e
ParenListF [Sexp]
happy_var_2)       (Token -> SexpF Sexp) -> LocatedBy Position Token -> Sexp
forall a (e :: * -> *) p.
(a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ LocatedBy Position Token
happy_var_1
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_7 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_7 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_3  Int#
3# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall p t11 t12 t10 t11 t12 t10 t11 t12.
p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_7
happyReduction_7 :: p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_7 p
happy_x_3
	HappyAbsSyn [Sexp] t11 t12
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	case HappyAbsSyn [Sexp] t11 t12 -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t10
happyOut10 HappyAbsSyn [Sexp] t11 t12
happy_x_2 of { [Sexp]
happy_var_2 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn8
		 (SexpF Sexp -> Token -> SexpF Sexp
forall a b. a -> b -> a
const ([Sexp] -> SexpF Sexp
forall e. [e] -> SexpF e
BracketListF [Sexp]
happy_var_2)     (Token -> SexpF Sexp) -> LocatedBy Position Token -> Sexp
forall a (e :: * -> *) p.
(a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ LocatedBy Position Token
happy_var_1
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_8 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_8 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_3  Int#
3# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall p t11 t12 t10 t11 t12 t10 t11 t12.
p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_8
happyReduction_8 :: p
-> HappyAbsSyn [Sexp] t11 t12
-> HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12
happyReduction_8 p
happy_x_3
	HappyAbsSyn [Sexp] t11 t12
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	case HappyAbsSyn [Sexp] t11 t12 -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t10
happyOut10 HappyAbsSyn [Sexp] t11 t12
happy_x_2 of { [Sexp]
happy_var_2 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn8
		 (SexpF Sexp -> Token -> SexpF Sexp
forall a b. a -> b -> a
const ([Sexp] -> SexpF Sexp
forall e. [e] -> SexpF e
BraceListF [Sexp]
happy_var_2)       (Token -> SexpF Sexp) -> LocatedBy Position Token -> Sexp
forall a (e :: * -> *) p.
(a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ LocatedBy Position Token
happy_var_1
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_9 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_9 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_2  Int#
3# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t12 t10 t11 t12.
HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_9
happyReduction_9 :: HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_9 HappyAbsSyn t10 t11 t12
happy_x_2
	HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	case HappyAbsSyn t10 t11 t12 -> Sexp
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> Sexp
happyOut8 HappyAbsSyn t10 t11 t12
happy_x_2 of { Sexp
happy_var_2 -> 
	Sexp -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. Sexp -> HappyAbsSyn t10 t11 t12
happyIn8
		 (SexpF Sexp -> Token -> SexpF Sexp
forall a b. a -> b -> a
const (Prefix -> Sexp -> SexpF Sexp
forall e. Prefix -> e -> SexpF e
ModifiedF
                                                    (Token -> Prefix
getPrefix (LocatedBy Position Token -> Token
forall a e. LocatedBy a e -> e
extract LocatedBy Position Token
happy_var_1))
                                                    Sexp
happy_var_2)                 (Token -> SexpF Sexp) -> LocatedBy Position Token -> Sexp
forall a (e :: * -> *) p.
(a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ LocatedBy Position Token
happy_var_1
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_10 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_10 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
4# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_10
happyReduction_10 :: HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_10 HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12.
LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
happyIn9
		 ((Token -> Atom)
-> LocatedBy Position Token -> LocatedBy Position Atom
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap (Scientific -> Atom
AtomNumber (Scientific -> Atom) -> (Token -> Scientific) -> Token -> Atom
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Token -> Scientific
getNumber) LocatedBy Position Token
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_11 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_11 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
4# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_11
happyReduction_11 :: HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_11 HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12.
LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
happyIn9
		 ((Token -> Atom)
-> LocatedBy Position Token -> LocatedBy Position Atom
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap (Text -> Atom
AtomString (Text -> Atom) -> (Token -> Text) -> Token -> Atom
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Token -> Text
getString) LocatedBy Position Token
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_12 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_12 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
4# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_12
happyReduction_12 :: HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_12 HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
forall t10 t11 t12.
HappyAbsSyn t10 t11 t12 -> LocatedBy Position Token
happyOutTok HappyAbsSyn t10 t11 t12
happy_x_1 of { LocatedBy Position Token
happy_var_1 -> 
	LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12.
LocatedBy Position Atom -> HappyAbsSyn t10 t11 t12
happyIn9
		 ((Token -> Atom)
-> LocatedBy Position Token -> LocatedBy Position Atom
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap (Text -> Atom
AtomSymbol (Text -> Atom) -> (Token -> Text) -> Token -> Atom
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Token -> Text
getSymbol) LocatedBy Position Token
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_13 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_13 = Int#
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_0  Int#
5# HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall a t11 t12. HappyAbsSyn [a] t11 t12
happyReduction_13
happyReduction_13 :: HappyAbsSyn [a] t11 t12
happyReduction_13  =  [a] -> HappyAbsSyn [a] t11 t12
forall t10 t11 t12. t10 -> HappyAbsSyn t10 t11 t12
happyIn10
		 ([]
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_14 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_14 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
5# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t10 t12 t11 t12.
HappyAbsSyn t10 t10 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_14
happyReduction_14 :: HappyAbsSyn t10 t10 t12 -> HappyAbsSyn t10 t11 t12
happyReduction_14 HappyAbsSyn t10 t10 t12
happy_x_1
	 =  case HappyAbsSyn t10 t10 t12 -> t10
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t11
happyOut11 HappyAbsSyn t10 t10 t12
happy_x_1 of { t10
happy_var_1 -> 
	t10 -> HappyAbsSyn t10 t11 t12
forall t10 t11 t12. t10 -> HappyAbsSyn t10 t11 t12
happyIn10
		 (t10
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_15 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_15 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
6# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 a t10 t12.
HappyAbsSyn t10 t11 [a] -> HappyAbsSyn t10 [a] t12
happyReduction_15
happyReduction_15 :: HappyAbsSyn t10 t11 [a] -> HappyAbsSyn t10 [a] t12
happyReduction_15 HappyAbsSyn t10 t11 [a]
happy_x_1
	 =  case HappyAbsSyn t10 t11 [a] -> [a]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t12
happyOut12 HappyAbsSyn t10 t11 [a]
happy_x_1 of { [a]
happy_var_1 -> 
	[a] -> HappyAbsSyn t10 [a] t12
forall t11 t10 t12. t11 -> HappyAbsSyn t10 t11 t12
happyIn11
		 ([a] -> [a]
forall a. [a] -> [a]
reverse [a]
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_16 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_16 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_1  Int#
7# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11.
HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 [Sexp]
happyReduction_16
happyReduction_16 :: HappyAbsSyn t10 t11 t12 -> HappyAbsSyn t10 t11 [Sexp]
happyReduction_16 HappyAbsSyn t10 t11 t12
happy_x_1
	 =  case HappyAbsSyn t10 t11 t12 -> Sexp
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> Sexp
happyOut8 HappyAbsSyn t10 t11 t12
happy_x_1 of { Sexp
happy_var_1 -> 
	[Sexp] -> HappyAbsSyn t10 t11 [Sexp]
forall t12 t10 t11. t12 -> HappyAbsSyn t10 t11 t12
happyIn12
		 ([Sexp
happy_var_1]
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_17 :: Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyReduce_17 = Int#
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp]
    -> HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happySpecReduce_2  Int#
7# HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
-> HappyAbsSyn [Sexp] [Sexp] [Sexp]
forall t10 t11 t12 t10 t11 t10 t11.
HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 [Sexp] -> HappyAbsSyn t10 t11 [Sexp]
happyReduction_17
happyReduction_17 :: HappyAbsSyn t10 t11 t12
-> HappyAbsSyn t10 t11 [Sexp] -> HappyAbsSyn t10 t11 [Sexp]
happyReduction_17 HappyAbsSyn t10 t11 t12
happy_x_2
	HappyAbsSyn t10 t11 [Sexp]
happy_x_1
	 =  case HappyAbsSyn t10 t11 [Sexp] -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> t12
happyOut12 HappyAbsSyn t10 t11 [Sexp]
happy_x_1 of { [Sexp]
happy_var_1 -> 
	case HappyAbsSyn t10 t11 t12 -> Sexp
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> Sexp
happyOut8 HappyAbsSyn t10 t11 t12
happy_x_2 of { Sexp
happy_var_2 -> 
	[Sexp] -> HappyAbsSyn t10 t11 [Sexp]
forall t12 t10 t11. t12 -> HappyAbsSyn t10 t11 t12
happyIn12
		 (Sexp
happy_var_2 Sexp -> [Sexp] -> [Sexp]
forall k1. k1 -> [k1] -> [k1]
: [Sexp]
happy_var_1
	)}}

happyNewToken :: Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyNewToken Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
stk [] =
	Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyDoAction Int#
12# LocatedBy Position Token
forall a. a
notHappyAtAll Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
stk []

happyNewToken Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
stk (LocatedBy Position Token
tk:[LocatedBy Position Token]
tks) =
	let cont :: Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
i = Int#
-> LocatedBy Position Token
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyDoAction Int#
i LocatedBy Position Token
tk Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn [Sexp] [Sexp] [Sexp])
stk [LocatedBy Position Token]
tks in
	case LocatedBy Position Token
tk of {
	Position
_ :< Token
TokLParen -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
1#;
	Position
_ :< Token
TokRParen -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
2#;
	Position
_ :< Token
TokLBracket -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
3#;
	Position
_ :< Token
TokRBracket -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
4#;
	Position
_ :< Token
TokLBrace -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
5#;
	Position
_ :< Token
TokRBrace -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
6#;
	Position
_ :< (TokPrefix Prefix
_) -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
7#;
	Position
_ :< (TokSymbol Text
_) -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
8#;
	Position
_ :< (TokNumber Scientific
_) -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
9#;
	Position
_ :< (TokString Text
_) -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
10#;
	Position
_ :< Token
TokEOF -> Int# -> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
cont Int#
11#;
	LocatedBy Position Token
_ -> ([LocatedBy Position Token], [String])
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
forall a. ([LocatedBy Position Token], [String]) -> Either String a
happyError' ((LocatedBy Position Token
tkLocatedBy Position Token
-> [LocatedBy Position Token] -> [LocatedBy Position Token]
forall k1. k1 -> [k1] -> [k1]
:[LocatedBy Position Token]
tks), [])
	}

happyError_ :: [String]
-> Int#
-> LocatedBy Position Token
-> [LocatedBy Position Token]
-> Either String a
happyError_ [String]
explist Int#
12# LocatedBy Position Token
tk [LocatedBy Position Token]
tks = ([LocatedBy Position Token], [String]) -> Either String a
forall a. ([LocatedBy Position Token], [String]) -> Either String a
happyError' ([LocatedBy Position Token]
tks, [String]
explist)
happyError_ [String]
explist Int#
_ LocatedBy Position Token
tk [LocatedBy Position Token]
tks = ([LocatedBy Position Token], [String]) -> Either String a
forall a. ([LocatedBy Position Token], [String]) -> Either String a
happyError' ((LocatedBy Position Token
tkLocatedBy Position Token
-> [LocatedBy Position Token] -> [LocatedBy Position Token]
forall k1. k1 -> [k1] -> [k1]
:[LocatedBy Position Token]
tks), [String]
explist)

happyThen :: () => Either String a -> (a -> Either String b) -> Either String b
happyThen :: Either String a -> (a -> Either String b) -> Either String b
happyThen = Either String a -> (a -> Either String b) -> Either String b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(>>=)
happyReturn :: () => a -> Either String a
happyReturn :: a -> Either String a
happyReturn = (a -> Either String a
forall (m :: * -> *) a. Monad m => a -> m a
return)
happyThen1 :: m t -> (t -> t -> m b) -> t -> m b
happyThen1 m t
m t -> t -> m b
k t
tks = m t -> (t -> m b) -> m b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(>>=) m t
m (\t
a -> t -> t -> m b
k t
a t
tks)
happyReturn1 :: () => a -> b -> Either String a
happyReturn1 :: a -> b -> Either String a
happyReturn1 = \a
a b
tks -> (a -> Either String a
forall (m :: * -> *) a. Monad m => a -> m a
return) a
a
happyError' :: () => ([(LocatedBy Position Token)], [String]) -> Either String a
happyError' :: ([LocatedBy Position Token], [String]) -> Either String a
happyError' = (\([LocatedBy Position Token]
tokens, [String]
_) -> [LocatedBy Position Token] -> Either String a
forall b. [LocatedBy Position Token] -> Either String b
parseError [LocatedBy Position Token]
tokens)
parseSexp_ :: [LocatedBy Position Token] -> Either String Sexp
parseSexp_ [LocatedBy Position Token]
tks = Either String Sexp
happySomeParser where
 happySomeParser :: Either String Sexp
happySomeParser = Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp] -> Either String Sexp)
-> Either String Sexp
forall a b.
Either String a -> (a -> Either String b) -> Either String b
happyThen (Int#
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyParse Int#
0# [LocatedBy Position Token]
tks) (\HappyAbsSyn [Sexp] [Sexp] [Sexp]
x -> Sexp -> Either String Sexp
forall a. a -> Either String a
happyReturn (HappyAbsSyn [Sexp] [Sexp] [Sexp] -> Sexp
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> Sexp
happyOut7 HappyAbsSyn [Sexp] [Sexp] [Sexp]
x))

parseSexps_ :: [LocatedBy Position Token] -> Either String [Sexp]
parseSexps_ [LocatedBy Position Token]
tks = Either String [Sexp]
happySomeParser where
 happySomeParser :: Either String [Sexp]
happySomeParser = Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
-> (HappyAbsSyn [Sexp] [Sexp] [Sexp] -> Either String [Sexp])
-> Either String [Sexp]
forall a b.
Either String a -> (a -> Either String b) -> Either String b
happyThen (Int#
-> [LocatedBy Position Token]
-> Either String (HappyAbsSyn [Sexp] [Sexp] [Sexp])
happyParse Int#
1# [LocatedBy Position Token]
tks) (\HappyAbsSyn [Sexp] [Sexp] [Sexp]
x -> [Sexp] -> Either String [Sexp]
forall a. a -> Either String a
happyReturn (HappyAbsSyn [Sexp] [Sexp] [Sexp] -> [Sexp]
forall t10 t11 t12. HappyAbsSyn t10 t11 t12 -> [Sexp]
happyOut5 HappyAbsSyn [Sexp] [Sexp] [Sexp]
x))

happySeq :: a -> b -> b
happySeq = a -> b -> b
forall a b. a -> b -> b
happyDontSeq


type Sexp = Fix (Compose (LocatedBy Position) SexpF)

(@@) :: (a -> e (Fix (Compose (LocatedBy p) e))) -> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
@@ :: (a -> e (Fix (Compose (LocatedBy p) e)))
-> LocatedBy p a -> Fix (Compose (LocatedBy p) e)
(@@) a -> e (Fix (Compose (LocatedBy p) e))
f (p
p :< a
a) = Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e))
-> Fix (Compose (LocatedBy p) e)
forall (f :: * -> *). f (Fix f) -> Fix f
Fix (Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e))
 -> Fix (Compose (LocatedBy p) e))
-> (a -> Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e)))
-> a
-> Fix (Compose (LocatedBy p) e)
forall b c a. (b -> c) -> (a -> b) -> a -> c
. LocatedBy p (e (Fix (Compose (LocatedBy p) e)))
-> Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e))
forall k k1 (f :: k -> *) (g :: k1 -> k) (a :: k1).
f (g a) -> Compose f g a
Compose (LocatedBy p (e (Fix (Compose (LocatedBy p) e)))
 -> Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e)))
-> (a -> LocatedBy p (e (Fix (Compose (LocatedBy p) e))))
-> a
-> Compose (LocatedBy p) e (Fix (Compose (LocatedBy p) e))
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (p
p p
-> e (Fix (Compose (LocatedBy p) e))
-> LocatedBy p (e (Fix (Compose (LocatedBy p) e)))
forall a e. a -> e -> LocatedBy a e
:<) (e (Fix (Compose (LocatedBy p) e))
 -> LocatedBy p (e (Fix (Compose (LocatedBy p) e))))
-> (a -> e (Fix (Compose (LocatedBy p) e)))
-> a
-> LocatedBy p (e (Fix (Compose (LocatedBy p) e)))
forall b c a. (b -> c) -> (a -> b) -> a -> c
. a -> e (Fix (Compose (LocatedBy p) e))
f (a -> Fix (Compose (LocatedBy p) e))
-> a -> Fix (Compose (LocatedBy p) e)
forall a b. (a -> b) -> a -> b
$ a
a

parseError :: [LocatedBy Position Token] -> Either String b
parseError :: [LocatedBy Position Token] -> Either String b
parseError [LocatedBy Position Token]
toks = case [LocatedBy Position Token]
toks of
  [] ->
    String -> Either String b
forall a b. a -> Either a b
Left String
"EOF: Unexpected end of file"
  (Position
pos :< Token
tok : [LocatedBy Position Token]
_) ->
    String -> Either String b
forall a b. a -> Either a b
Left (String -> Either String b) -> String -> Either String b
forall a b. (a -> b) -> a -> b
$ (SimpleDocStream Any -> String -> String)
-> String -> SimpleDocStream Any -> String
forall a b c. (a -> b -> c) -> b -> a -> c
flip SimpleDocStream Any -> String -> String
forall ann. SimpleDocStream ann -> String -> String
Render.renderShowS [] (SimpleDocStream Any -> String)
-> (Doc Any -> SimpleDocStream Any) -> Doc Any -> String
forall b c a. (b -> c) -> (a -> b) -> a -> c
. LayoutOptions -> Doc Any -> SimpleDocStream Any
forall ann. LayoutOptions -> Doc ann -> SimpleDocStream ann
layoutPretty (PageWidth -> LayoutOptions
LayoutOptions (Int -> Double -> PageWidth
AvailablePerLine Int
80 Double
0.8)) (Doc Any -> String) -> Doc Any -> String
forall a b. (a -> b) -> a -> b
$
      Position -> Doc Any
forall a ann. Pretty a => a -> Doc ann
pretty Position
pos Doc Any -> Doc Any -> Doc Any
forall a. Semigroup a => a -> a -> a
<> Doc Any
forall ann. Doc ann
colon Doc Any -> Doc Any -> Doc Any
forall ann. Doc ann -> Doc ann -> Doc ann
<+> Doc Any
"Unexpected token:" Doc Any -> Doc Any -> Doc Any
forall ann. Doc ann -> Doc ann -> Doc ann
<+> Token -> Doc Any
forall a ann. Pretty a => a -> Doc ann
pretty Token
tok
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "<built-in>" #-}
{-# LINE 1 "<command-line>" #-}
{-# LINE 10 "<command-line>" #-}
# 1 "/usr/include/stdc-predef.h" 1 3 4

# 17 "/usr/include/stdc-predef.h" 3 4














































{-# LINE 10 "<command-line>" #-}
{-# LINE 1 "/opt/ghc/8.6.3/lib/ghc-8.6.3/include/ghcversion.h" #-}















{-# LINE 10 "<command-line>" #-}
{-# LINE 1 "/tmp/ghc780_0/ghc_2.h" #-}






































































































































































































{-# LINE 10 "<command-line>" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
-- Id: GenericTemplate.hs,v 1.26 2005/01/14 14:47:22 simonmar Exp 













-- Do not remove this comment. Required to fix CPP parsing when using GCC and a clang-compiled alex.
#if __GLASGOW_HASKELL__ > 706
#define LT(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.<# m)) :: Bool)
#define GTE(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.>=# m)) :: Bool)
#define EQ(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.==# m)) :: Bool)
#else
#define LT(n,m) (n Happy_GHC_Exts.<# m)
#define GTE(n,m) (n Happy_GHC_Exts.>=# m)
#define EQ(n,m) (n Happy_GHC_Exts.==# m)
#endif
{-# LINE 43 "templates/GenericTemplate.hs" #-}

data Happy_IntList = HappyCons Happy_GHC_Exts.Int# Happy_IntList







{-# LINE 65 "templates/GenericTemplate.hs" #-}

{-# LINE 75 "templates/GenericTemplate.hs" #-}

{-# LINE 84 "templates/GenericTemplate.hs" #-}

infixr 9 `HappyStk`
data HappyStk a = HappyStk a (HappyStk a)

-----------------------------------------------------------------------------
-- starting the parse

happyParse start_state = happyNewToken start_state notHappyAtAll notHappyAtAll

-----------------------------------------------------------------------------
-- Accepting the parse

-- If the current token is 0#, it means we've just accepted a partial
-- parse (a %partial parser).  We must ignore the saved token on the top of
-- the stack in this case.
happyAccept 0# tk st sts (_ `HappyStk` ans `HappyStk` _) =
        happyReturn1 ans
happyAccept j tk st sts (HappyStk ans _) = 
        (happyTcHack j (happyTcHack st)) (happyReturn1 ans)

-----------------------------------------------------------------------------
-- Arrays only: do the next action



happyDoAction i tk st
        = {- nothing -}


          case action of
                0#           -> {- nothing -}
                                     happyFail (happyExpListPerState ((Happy_GHC_Exts.I# (st)) :: Int)) i tk st
                -1#          -> {- nothing -}
                                     happyAccept i tk st
                n | LT(n,(0# :: Happy_GHC_Exts.Int#)) -> {- nothing -}

                                                   (happyReduceArr Happy_Data_Array.! rule) i tk st
                                                   where rule = (Happy_GHC_Exts.I# ((Happy_GHC_Exts.negateInt# ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#))))))
                n                 -> {- nothing -}


                                     happyShift new_state i tk st
                                     where new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#))
   where off    = happyAdjustOffset (indexShortOffAddr happyActOffsets st)
         off_i  = (off Happy_GHC_Exts.+#  i)
         check  = if GTE(off_i,(0# :: Happy_GHC_Exts.Int#))
                  then EQ(indexShortOffAddr happyCheck off_i, i)
                  else False
         action
          | check     = indexShortOffAddr happyTable off_i
          | otherwise = indexShortOffAddr happyDefActions st




indexShortOffAddr (HappyA# arr) off =
        Happy_GHC_Exts.narrow16Int# i
  where
        i = Happy_GHC_Exts.word2Int# (Happy_GHC_Exts.or# (Happy_GHC_Exts.uncheckedShiftL# high 8#) low)
        high = Happy_GHC_Exts.int2Word# (Happy_GHC_Exts.ord# (Happy_GHC_Exts.indexCharOffAddr# arr (off' Happy_GHC_Exts.+# 1#)))
        low  = Happy_GHC_Exts.int2Word# (Happy_GHC_Exts.ord# (Happy_GHC_Exts.indexCharOffAddr# arr off'))
        off' = off Happy_GHC_Exts.*# 2#




{-# INLINE happyLt #-}
happyLt x y = LT(x,y)


readArrayBit arr bit =
    Bits.testBit (Happy_GHC_Exts.I# (indexShortOffAddr arr ((unbox_int bit) `Happy_GHC_Exts.iShiftRA#` 4#))) (bit `mod` 16)
  where unbox_int (Happy_GHC_Exts.I# x) = x






data HappyAddr = HappyA# Happy_GHC_Exts.Addr#


-----------------------------------------------------------------------------
-- HappyState data type (not arrays)

{-# LINE 180 "templates/GenericTemplate.hs" #-}

-----------------------------------------------------------------------------
-- Shifting a token

happyShift new_state 0# tk st sts stk@(x `HappyStk` _) =
     let i = (case Happy_GHC_Exts.unsafeCoerce# x of { (Happy_GHC_Exts.I# (i)) -> i }) in
--     trace "shifting the error token" $
     happyDoAction i tk new_state (HappyCons (st) (sts)) (stk)

happyShift new_state i tk st sts stk =
     happyNewToken new_state (HappyCons (st) (sts)) ((happyInTok (tk))`HappyStk`stk)

-- happyReduce is specialised for the common cases.

happySpecReduce_0 i fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happySpecReduce_0 nt fn j tk st@((action)) sts stk
     = happyGoto nt j tk st (HappyCons (st) (sts)) (fn `HappyStk` stk)

happySpecReduce_1 i fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happySpecReduce_1 nt fn j tk _ sts@((HappyCons (st@(action)) (_))) (v1`HappyStk`stk')
     = let r = fn v1 in
       happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_2 i fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happySpecReduce_2 nt fn j tk _ (HappyCons (_) (sts@((HappyCons (st@(action)) (_))))) (v1`HappyStk`v2`HappyStk`stk')
     = let r = fn v1 v2 in
       happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_3 i fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happySpecReduce_3 nt fn j tk _ (HappyCons (_) ((HappyCons (_) (sts@((HappyCons (st@(action)) (_))))))) (v1`HappyStk`v2`HappyStk`v3`HappyStk`stk')
     = let r = fn v1 v2 v3 in
       happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk'))

happyReduce k i fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happyReduce k nt fn j tk st sts stk
     = case happyDrop (k Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) sts of
         sts1@((HappyCons (st1@(action)) (_))) ->
                let r = fn stk in  -- it doesn't hurt to always seq here...
                happyDoSeq r (happyGoto nt j tk st1 sts1 r)

happyMonadReduce k nt fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happyMonadReduce k nt fn j tk st sts stk =
      case happyDrop k (HappyCons (st) (sts)) of
        sts1@((HappyCons (st1@(action)) (_))) ->
          let drop_stk = happyDropStk k stk in
          happyThen1 (fn stk tk) (\r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk))

happyMonad2Reduce k nt fn 0# tk st sts stk
     = happyFail [] 0# tk st sts stk
happyMonad2Reduce k nt fn j tk st sts stk =
      case happyDrop k (HappyCons (st) (sts)) of
        sts1@((HappyCons (st1@(action)) (_))) ->
         let drop_stk = happyDropStk k stk

             off = happyAdjustOffset (indexShortOffAddr happyGotoOffsets st1)
             off_i = (off Happy_GHC_Exts.+#  nt)
             new_state = indexShortOffAddr happyTable off_i




          in
          happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))

happyDrop 0# l = l
happyDrop n (HappyCons (_) (t)) = happyDrop (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) t

happyDropStk 0# l = l
happyDropStk n (x `HappyStk` xs) = happyDropStk (n Happy_GHC_Exts.-# (1#::Happy_GHC_Exts.Int#)) xs

-----------------------------------------------------------------------------
-- Moving to a new state after a reduction


happyGoto nt j tk st = 
   {- nothing -}
   happyDoAction j tk new_state
   where off = happyAdjustOffset (indexShortOffAddr happyGotoOffsets st)
         off_i = (off Happy_GHC_Exts.+#  nt)
         new_state = indexShortOffAddr happyTable off_i




-----------------------------------------------------------------------------
-- Error recovery (0# is the error token)

-- parse error if we are in recovery and we fail again
happyFail explist 0# tk old_st _ stk@(x `HappyStk` _) =
     let i = (case Happy_GHC_Exts.unsafeCoerce# x of { (Happy_GHC_Exts.I# (i)) -> i }) in
--      trace "failing" $ 
        happyError_ explist i tk

{-  We don't need state discarding for our restricted implementation of
    "error".  In fact, it can cause some bogus parses, so I've disabled it
    for now --SDM

-- discard a state
happyFail  0# tk old_st (HappyCons ((action)) (sts)) 
                                                (saved_tok `HappyStk` _ `HappyStk` stk) =
--      trace ("discarding state, depth " ++ show (length stk))  $
        happyDoAction 0# tk action sts ((saved_tok`HappyStk`stk))
-}

-- Enter error recovery: generate an error token,
--                       save the old token and carry on.
happyFail explist i tk (action) sts stk =
--      trace "entering error recovery" $
        happyDoAction 0# tk action sts ( (Happy_GHC_Exts.unsafeCoerce# (Happy_GHC_Exts.I# (i))) `HappyStk` stk)

-- Internal happy errors:

notHappyAtAll :: a
notHappyAtAll = error "Internal Happy error\n"

-----------------------------------------------------------------------------
-- Hack to get the typechecker to accept our action functions


happyTcHack :: Happy_GHC_Exts.Int# -> a -> a
happyTcHack x y = y
{-# INLINE happyTcHack #-}


-----------------------------------------------------------------------------
-- Seq-ing.  If the --strict flag is given, then Happy emits 
--      happySeq = happyDoSeq
-- otherwise it emits
--      happySeq = happyDontSeq

happyDoSeq, happyDontSeq :: a -> b -> b
happyDoSeq   a b = a `seq` b
happyDontSeq a b = b

-----------------------------------------------------------------------------
-- Don't inline any functions from the template.  GHC has a nasty habit
-- of deciding to inline happyGoto everywhere, which increases the size of
-- the generated parser quite a bit.


{-# NOINLINE happyDoAction #-}
{-# NOINLINE happyTable #-}
{-# NOINLINE happyCheck #-}
{-# NOINLINE happyActOffsets #-}
{-# NOINLINE happyGotoOffsets #-}
{-# NOINLINE happyDefActions #-}

{-# NOINLINE happyShift #-}
{-# NOINLINE happySpecReduce_0 #-}
{-# NOINLINE happySpecReduce_1 #-}
{-# NOINLINE happySpecReduce_2 #-}
{-# NOINLINE happySpecReduce_3 #-}
{-# NOINLINE happyReduce #-}
{-# NOINLINE happyMonadReduce #-}
{-# NOINLINE happyGoto #-}
{-# NOINLINE happyFail #-}

-- end of Happy Template.