{-# OPTIONS_GHC -w #-}
{-# OPTIONS -XMagicHash -XBangPatterns -XTypeSynonymInstances -XFlexibleInstances -cpp #-}
#if __GLASGOW_HASKELL__ >= 710
{-# OPTIONS_GHC -XPartialTypeSignatures #-}
#endif
module Advent.Format.Parser (parseFormat, ParseError(..)) where

import Advent.Format.Types
import Advent.Format.Lexer (AlexPosn(..))
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.20.0

newtype HappyAbsSyn t4 t5 t6 = HappyAbsSyn HappyAny
#if __GLASGOW_HASKELL__ >= 607
type HappyAny = Happy_GHC_Exts.Any
#else
type HappyAny = forall a . a
#endif
happyIn4 :: t4 -> (HappyAbsSyn t4 t5 t6)
happyIn4 :: forall t4 t5 t6. t4 -> HappyAbsSyn t4 t5 t6
happyIn4 t4
x = t4 -> HappyAbsSyn t4 t5 t6
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# t4
x
{-# INLINE happyIn4 #-}
happyOut4 :: (HappyAbsSyn t4 t5 t6) -> t4
happyOut4 :: forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t4
happyOut4 HappyAbsSyn t4 t5 t6
x = HappyAbsSyn t4 t5 t6 -> t4
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t4 t5 t6
x
{-# INLINE happyOut4 #-}
happyIn5 :: t5 -> (HappyAbsSyn t4 t5 t6)
happyIn5 :: forall t5 t4 t6. t5 -> HappyAbsSyn t4 t5 t6
happyIn5 t5
x = t5 -> HappyAbsSyn t4 t5 t6
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# t5
x
{-# INLINE happyIn5 #-}
happyOut5 :: (HappyAbsSyn t4 t5 t6) -> t5
happyOut5 :: forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t5
happyOut5 HappyAbsSyn t4 t5 t6
x = HappyAbsSyn t4 t5 t6 -> t5
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t4 t5 t6
x
{-# INLINE happyOut5 #-}
happyIn6 :: t6 -> (HappyAbsSyn t4 t5 t6)
happyIn6 :: forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6 t6
x = t6 -> HappyAbsSyn t4 t5 t6
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# t6
x
{-# INLINE happyIn6 #-}
happyOut6 :: (HappyAbsSyn t4 t5 t6) -> t6
happyOut6 :: forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 t6
x = HappyAbsSyn t4 t5 t6 -> t6
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t4 t5 t6
x
{-# INLINE happyOut6 #-}
happyInTok :: ((AlexPosn, Token)) -> (HappyAbsSyn t4 t5 t6)
happyInTok :: forall t4 t5 t6. (AlexPosn, Token) -> HappyAbsSyn t4 t5 t6
happyInTok (AlexPosn, Token)
x = (AlexPosn, Token) -> HappyAbsSyn t4 t5 t6
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# (AlexPosn, Token)
x
{-# INLINE happyInTok #-}
happyOutTok :: (HappyAbsSyn t4 t5 t6) -> ((AlexPosn, Token))
happyOutTok :: forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
happyOutTok HappyAbsSyn t4 t5 t6
x = HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
forall a b. a -> b
Happy_GHC_Exts.unsafeCoerce# HappyAbsSyn t4 t5 t6
x
{-# INLINE happyOutTok #-}


happyExpList :: HappyAddr
happyExpList :: HappyAddr
happyExpList = Addr# -> HappyAddr
HappyA# Addr#
"\x00\x00\x00\x00\x00\x00\x10\xf8\x0f\x00\x01\x00\x00\x00\x00\xb8\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\x81\x08\x00\x00\x00\x00\x00\x00\x00\x08\xfc\x07\x00\x00\x00\x02\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

{-# NOINLINE happyExpListPerState #-}
happyExpListPerState :: Int -> [String]
happyExpListPerState Int
st =
    [String]
token_strs_expected
  where token_strs :: [String]
token_strs = [String
"error",String
"%dummy",String
"%start_parseFormat",String
"format",String
"atoms",String
"atom",String
"'('",String
"')'",String
"'*'",String
"'+'",String
"'&'",String
"'|'",String
"'!'",String
"'%a'",String
"'%c'",String
"'%s'",String
"'%u'",String
"'%d'",String
"'%lu'",String
"'%ld'",String
"LIT",String
"NAME",String
"%eof"]
        bit_start :: Int
bit_start = Int
st Int -> Int -> Int
forall a. Num a => a -> a -> a
Prelude.* Int
23
        bit_end :: Int
bit_end = (Int
st Int -> Int -> Int
forall a. Num a => a -> a -> a
Prelude.+ Int
1) Int -> Int -> Int
forall a. Num a => a -> a -> a
Prelude.* Int
23
        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]
Prelude.map Int -> Bool
read_bit [Int
bit_start..Int
bit_end Int -> Int -> Int
forall a. Num a => a -> a -> a
Prelude.- Int
1]
        bits_indexed :: [(Bool, Int)]
bits_indexed = [Bool] -> [Int] -> [(Bool, Int)]
forall a b. [a] -> [b] -> [(a, b)]
Prelude.zip [Bool]
bits [Int
0..Int
22]
        token_strs_expected :: [String]
token_strs_expected = ((Bool, Int) -> [String]) -> [(Bool, Int)] -> [String]
forall (t :: * -> *) a b. Foldable t => (a -> [b]) -> t a -> [b]
Prelude.concatMap (Bool, Int) -> [String]
f [(Bool, Int)]
bits_indexed
        f :: (Bool, Int) -> [String]
f (Bool
Prelude.False, Int
_) = []
        f (Bool
Prelude.True, Int
nr) = [[String]
token_strs [String] -> Int -> String
forall a. HasCallStack => [a] -> Int -> a
Prelude.!! Int
nr]

happyActOffsets :: HappyAddr
happyActOffsets :: HappyAddr
happyActOffsets = Addr# -> HappyAddr
HappyA# Addr#
"\x00\x00\x00\x00\x01\x00\x02\x00\x00\x00\x16\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"#

happyGotoOffsets :: HappyAddr
happyGotoOffsets :: HappyAddr
happyGotoOffsets = Addr# -> HappyAddr
HappyA# Addr#
"\x03\x00\x06\x00\xff\xff\x00\x00\x14\x00\x00\x00\x05\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\x15\x00\x00\x00\x1a\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#
"\xfc\xff\x00\x00\xfe\xff\x00\x00\xfc\xff\xfb\xff\xfc\xff\xf2\xff\xf3\xff\xf4\xff\xf8\xff\xf7\xff\xf6\xff\xf5\xff\xf1\xff\xec\xff\x00\x00\xf0\xff\xef\xff\x00\x00\xee\xff\xfd\xff\xed\xff\xf9\xff\xfa\xff"#

happyCheck :: HappyAddr
happyCheck :: HappyAddr
happyCheck = Addr# -> HappyAddr
HappyA# Addr#
"\xff\xff\x02\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x01\x00\x06\x00\x08\x00\x09\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x00\x00\x11\x00\x02\x00\x01\x00\xff\xff\x02\x00\x06\x00\x03\x00\x04\x00\x05\x00\x02\x00\x07\x00\xff\xff\xff\xff\xff\xff\xff\xff\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\x05\x00\x07\x00\x03\x00\x02\x00\x10\x00\x02\x00\x02\x00\x05\x00\x08\x00\x09\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x18\x00\xff\xff\x19\x00\x15\x00\x00\x00\x16\x00\x05\x00\x12\x00\x13\x00\x14\x00\x05\x00\x15\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"#

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

happy_n_terms :: Int
happy_n_terms = Int
18 :: Prelude.Int
happy_n_nonterms :: Int
happy_n_nonterms = Int
3 :: Prelude.Int

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_1 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_1 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
0# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t4} {t6} {t5} {t6}.
HappyAbsSyn t4 t4 t6 -> HappyAbsSyn t4 t5 t6
happyReduction_1
happyReduction_1 :: HappyAbsSyn t4 t4 t6 -> HappyAbsSyn t4 t5 t6
happyReduction_1 HappyAbsSyn t4 t4 t6
happy_x_1
	 =  case HappyAbsSyn t4 t4 t6 -> t4
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t5
happyOut5 HappyAbsSyn t4 t4 t6
happy_x_1 of { t4
happy_var_1 -> 
	t4 -> HappyAbsSyn t4 t5 t6
forall t4 t5 t6. t4 -> HappyAbsSyn t4 t5 t6
happyIn4
		 (t4
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_2 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_2 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_3  Int#
0# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t6} {p} {t5} {t6} {t5} {t6}.
HappyAbsSyn t4 Format t6
-> p -> HappyAbsSyn Format t5 t6 -> HappyAbsSyn Format t5 t6
happyReduction_2
happyReduction_2 :: HappyAbsSyn t4 Format t6
-> p -> HappyAbsSyn Format t5 t6 -> HappyAbsSyn Format t5 t6
happyReduction_2 HappyAbsSyn t4 Format t6
happy_x_3
	p
happy_x_2
	HappyAbsSyn Format t5 t6
happy_x_1
	 =  case HappyAbsSyn Format t5 t6 -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t4
happyOut4 HappyAbsSyn Format t5 t6
happy_x_1 of { Format
happy_var_1 -> 
	case HappyAbsSyn t4 Format t6 -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t5
happyOut5 HappyAbsSyn t4 Format t6
happy_x_3 of { Format
happy_var_3 -> 
	Format -> HappyAbsSyn Format t5 t6
forall t4 t5 t6. t4 -> HappyAbsSyn t4 t5 t6
happyIn4
		 (Format -> Format -> Format
Alt Format
happy_var_1 Format
happy_var_3
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_3 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_3 = Int#
-> HappyAbsSyn Format Format Format
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_0  Int#
1# HappyAbsSyn Format Format Format
forall {t4} {t6}. HappyAbsSyn t4 Format t6
happyReduction_3
happyReduction_3 :: HappyAbsSyn t4 Format t6
happyReduction_3  =  Format -> HappyAbsSyn t4 Format t6
forall t5 t4 t6. t5 -> HappyAbsSyn t4 t5 t6
happyIn5
		 (Format
Empty
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_4 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_4 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_2  Int#
1# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t5} {t4} {t6} {t4} {t6}.
HappyAbsSyn t4 t5 Format
-> HappyAbsSyn t4 Format t6 -> HappyAbsSyn t4 Format t6
happyReduction_4
happyReduction_4 :: HappyAbsSyn t4 t5 Format
-> HappyAbsSyn t4 Format t6 -> HappyAbsSyn t4 Format t6
happyReduction_4 HappyAbsSyn t4 t5 Format
happy_x_2
	HappyAbsSyn t4 Format t6
happy_x_1
	 =  case HappyAbsSyn t4 Format t6 -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t5
happyOut5 HappyAbsSyn t4 Format t6
happy_x_1 of { Format
happy_var_1 -> 
	case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_2 of { Format
happy_var_2 -> 
	Format -> HappyAbsSyn t4 Format t6
forall t5 t4 t6. t5 -> HappyAbsSyn t4 t5 t6
happyIn5
		 (Format -> Format -> Format
follow Format
happy_var_1 Format
happy_var_2
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_5 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_5 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_3  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t5} {t6} {p} {t4} {t5}.
p -> HappyAbsSyn Format t5 t6 -> p -> HappyAbsSyn t4 t5 Format
happyReduction_5
happyReduction_5 :: p -> HappyAbsSyn Format t5 t6 -> p -> HappyAbsSyn t4 t5 Format
happyReduction_5 p
happy_x_3
	HappyAbsSyn Format t5 t6
happy_x_2
	p
happy_x_1
	 =  case HappyAbsSyn Format t5 t6 -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t4
happyOut4 HappyAbsSyn Format t5 t6
happy_x_2 of { Format
happy_var_2 -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format -> Format
Group Format
happy_var_2
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_6 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_6 = Int#
-> Int#
-> (HappyStk (HappyAbsSyn Format Format Format)
    -> (AlexPosn, Token)
    -> Either ParseError (HappyAbsSyn Format Format Format))
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyMonadReduce Int#
3# Int#
2# HappyStk (HappyAbsSyn Format Format Format)
-> (AlexPosn, Token)
-> Either ParseError (HappyAbsSyn Format Format Format)
forall {t4} {t5} {t6} {p} {t4} {t5} {t6}.
HappyStk (HappyAbsSyn t4 t5 t6)
-> p -> Either ParseError (HappyAbsSyn t4 t5 t6)
happyReduction_6
happyReduction_6 :: HappyStk (HappyAbsSyn t4 t5 t6)
-> p -> Either ParseError (HappyAbsSyn t4 t5 t6)
happyReduction_6 (HappyAbsSyn t4 t5 t6
happy_x_3 `HappyStk`
	HappyAbsSyn t4 t5 t6
happy_x_2 `HappyStk`
	HappyAbsSyn t4 t5 t6
happy_x_1 `HappyStk`
	HappyStk (HappyAbsSyn t4 t5 t6)
happyRest) p
tk
	 = Either ParseError t6
-> (t6 -> Either ParseError (HappyAbsSyn t4 t5 t6))
-> Either ParseError (HappyAbsSyn t4 t5 t6)
forall a b.
Either ParseError a
-> (a -> Either ParseError b) -> Either ParseError b
happyThen ((case HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
happyOutTok HappyAbsSyn t4 t5 t6
happy_x_1 of { ((AlexPosn
happy_var_1, Token
TOpenGroup)) -> 
	( ParseError -> Either ParseError t6
forall a b. a -> Either a b
Left (AlexPosn -> ParseError
Unclosed AlexPosn
happy_var_1))})
	) (\t6
r -> HappyAbsSyn t4 t5 t6 -> Either ParseError (HappyAbsSyn t4 t5 t6)
forall a. a -> Either ParseError a
happyReturn (t6 -> HappyAbsSyn t4 t5 t6
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6 t6
r))

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_7 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_7 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_7
happyReduction_7 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_7 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
UnsignedInt
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_8 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_8 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_8
happyReduction_8 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_8 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
SignedInt
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_9 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_9 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_9
happyReduction_9 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_9 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
UnsignedInteger
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_10 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_10 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_10
happyReduction_10 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_10 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
SignedInteger
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_11 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_11 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_11
happyReduction_11 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_11 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
Word
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_12 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_12 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_12
happyReduction_12 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_12 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
Char
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_13 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_13 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5}. p -> HappyAbsSyn t4 t5 Format
happyReduction_13
happyReduction_13 :: p -> HappyAbsSyn t4 t5 Format
happyReduction_13 p
happy_x_1
	 =  Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format
Letter
	)

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_14 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_14 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t5} {t6} {t4} {t5}.
HappyAbsSyn t4 t5 t6 -> HappyAbsSyn t4 t5 Format
happyReduction_14
happyReduction_14 :: HappyAbsSyn t4 t5 t6 -> HappyAbsSyn t4 t5 Format
happyReduction_14 HappyAbsSyn t4 t5 t6
happy_x_1
	 =  case HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
happyOutTok HappyAbsSyn t4 t5 t6
happy_x_1 of { ((AlexPosn
_, TLiteral Char
happy_var_1)) -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (String -> Format
Literal [Char
happy_var_1]
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_15 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_15 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_2  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5} {t4} {t5}.
p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_15
happyReduction_15 :: p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_15 p
happy_x_2
	HappyAbsSyn t4 t5 Format
happy_x_1
	 =  case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_1 of { Format
happy_var_1 -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format -> Format
Many Format
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_16 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_16 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_2  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5} {t4} {t5}.
p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_16
happyReduction_16 :: p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_16 p
happy_x_2
	HappyAbsSyn t4 t5 Format
happy_x_1
	 =  case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_1 of { Format
happy_var_1 -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format -> Format
Some Format
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_17 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_17 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_2  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {p} {t4} {t5} {t4} {t5}.
p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_17
happyReduction_17 :: p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_17 p
happy_x_2
	HappyAbsSyn t4 t5 Format
happy_x_1
	 =  case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_1 of { Format
happy_var_1 -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format -> Format
Gather Format
happy_var_1
	)}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_18 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_18 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_3  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t5} {p} {t4} {t5} {t4} {t5}.
HappyAbsSyn t4 t5 Format
-> p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_18
happyReduction_18 :: HappyAbsSyn t4 t5 Format
-> p -> HappyAbsSyn t4 t5 Format -> HappyAbsSyn t4 t5 Format
happyReduction_18 HappyAbsSyn t4 t5 Format
happy_x_3
	p
happy_x_2
	HappyAbsSyn t4 t5 Format
happy_x_1
	 =  case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_1 of { Format
happy_var_1 -> 
	case HappyAbsSyn t4 t5 Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t6
happyOut6 HappyAbsSyn t4 t5 Format
happy_x_3 of { Format
happy_var_3 -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (Format -> Format -> Format
SepBy Format
happy_var_1 Format
happy_var_3
	)}}

#if __GLASGOW_HASKELL__ >= 710
#endif
happyReduce_19 :: Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyReduce_19 = Int#
-> (HappyAbsSyn Format Format Format
    -> HappyAbsSyn Format Format Format)
-> Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happySpecReduce_1  Int#
2# HappyAbsSyn Format Format Format
-> HappyAbsSyn Format Format Format
forall {t4} {t5} {t6} {t4} {t5}.
HappyAbsSyn t4 t5 t6 -> HappyAbsSyn t4 t5 Format
happyReduction_19
happyReduction_19 :: HappyAbsSyn t4 t5 t6 -> HappyAbsSyn t4 t5 Format
happyReduction_19 HappyAbsSyn t4 t5 t6
happy_x_1
	 =  case HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> (AlexPosn, Token)
happyOutTok HappyAbsSyn t4 t5 t6
happy_x_1 of { ((AlexPosn
_, TAt String
happy_var_1)) -> 
	Format -> HappyAbsSyn t4 t5 Format
forall t6 t4 t5. t6 -> HappyAbsSyn t4 t5 t6
happyIn6
		 (String -> Format
Named String
happy_var_1
	)}

happyNewToken :: Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyNewToken Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn Format Format Format)
stk [] =
	Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyDoAction Int#
17# (AlexPosn, Token)
forall a. a
notHappyAtAll Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn Format Format Format)
stk []

happyNewToken Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn Format Format Format)
stk ((AlexPosn, Token)
tk:[(AlexPosn, Token)]
tks) =
	let cont :: Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
i = Int#
-> (AlexPosn, Token)
-> Int#
-> Happy_IntList
-> HappyStk (HappyAbsSyn Format Format Format)
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyDoAction Int#
i (AlexPosn, Token)
tk Int#
action Happy_IntList
sts HappyStk (HappyAbsSyn Format Format Format)
stk [(AlexPosn, Token)]
tks in
	case (AlexPosn, Token)
tk of {
	(AlexPosn
happy_dollar_dollar, Token
TOpenGroup) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
1#;
	(AlexPosn
_, Token
TCloseGroup) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
2#;
	(AlexPosn
_, Token
TMany) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
3#;
	(AlexPosn
_, Token
TSome) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
4#;
	(AlexPosn
_, Token
TSepBy) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
5#;
	(AlexPosn
_, Token
TAlt) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
6#;
	(AlexPosn
_, Token
TBang) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
7#;
	(AlexPosn
_, Token
TAnyLetter) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
8#;
	(AlexPosn
_, Token
TAnyChar) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
9#;
	(AlexPosn
_, Token
TAnyWord) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
10#;
	(AlexPosn
_, Token
TUnsignedInt) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
11#;
	(AlexPosn
_, Token
TSignedInt) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
12#;
	(AlexPosn
_, Token
TUnsignedInteger) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
13#;
	(AlexPosn
_, Token
TSignedInteger) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
14#;
	(AlexPosn
_, TLiteral Char
happy_dollar_dollar) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
15#;
	(AlexPosn
_, TAt String
happy_dollar_dollar) -> Int# -> Either ParseError (HappyAbsSyn Format Format Format)
cont Int#
16#;
	(AlexPosn, Token)
_ -> ([(AlexPosn, Token)], [String])
-> Either ParseError (HappyAbsSyn Format Format Format)
forall a. ([(AlexPosn, Token)], [String]) -> Either ParseError a
happyError' (((AlexPosn, Token)
tk(AlexPosn, Token) -> [(AlexPosn, Token)] -> [(AlexPosn, Token)]
forall a. a -> [a] -> [a]
:[(AlexPosn, Token)]
tks), [])
	}

happyError_ :: [String]
-> Int#
-> (AlexPosn, Token)
-> [(AlexPosn, Token)]
-> Either ParseError a
happyError_ [String]
explist Int#
17# (AlexPosn, Token)
tk [(AlexPosn, Token)]
tks = ([(AlexPosn, Token)], [String]) -> Either ParseError a
forall a. ([(AlexPosn, Token)], [String]) -> Either ParseError a
happyError' ([(AlexPosn, Token)]
tks, [String]
explist)
happyError_ [String]
explist Int#
_ (AlexPosn, Token)
tk [(AlexPosn, Token)]
tks = ([(AlexPosn, Token)], [String]) -> Either ParseError a
forall a. ([(AlexPosn, Token)], [String]) -> Either ParseError a
happyError' (((AlexPosn, Token)
tk(AlexPosn, Token) -> [(AlexPosn, Token)] -> [(AlexPosn, Token)]
forall a. a -> [a] -> [a]
:[(AlexPosn, Token)]
tks), [String]
explist)

happyThen :: () => Either ParseError a -> (a -> Either ParseError b) -> Either ParseError b
happyThen :: forall a b.
Either ParseError a
-> (a -> Either ParseError b) -> Either ParseError b
happyThen = Either ParseError a
-> (a -> Either ParseError b) -> Either ParseError b
forall a b.
Either ParseError a
-> (a -> Either ParseError b) -> Either ParseError b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=)
happyReturn :: () => a -> Either ParseError a
happyReturn :: forall a. a -> Either ParseError a
happyReturn = (a -> Either ParseError a
forall a. a -> Either ParseError a
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.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 a b. m a -> (a -> m b) -> m b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=) m t
m (\t
a -> t -> t -> m b
k t
a t
tks)
happyReturn1 :: () => a -> b -> Either ParseError a
happyReturn1 :: forall a b. a -> b -> Either ParseError a
happyReturn1 = \a
a b
tks -> (forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return) a
a
happyError' :: () => ([((AlexPosn, Token))], [Prelude.String]) -> Either ParseError a
happyError' :: forall a. ([(AlexPosn, Token)], [String]) -> Either ParseError a
happyError' = (\([(AlexPosn, Token)]
tokens, [String]
_) -> [(AlexPosn, Token)] -> Either ParseError a
forall a. [(AlexPosn, Token)] -> Either ParseError a
parseError [(AlexPosn, Token)]
tokens)
parseFormat :: [(AlexPosn, Token)] -> Either ParseError Format
parseFormat [(AlexPosn, Token)]
tks = Either ParseError Format
happySomeParser where
 happySomeParser :: Either ParseError Format
happySomeParser = Either ParseError (HappyAbsSyn Format Format Format)
-> (HappyAbsSyn Format Format Format -> Either ParseError Format)
-> Either ParseError Format
forall a b.
Either ParseError a
-> (a -> Either ParseError b) -> Either ParseError b
happyThen (Int#
-> [(AlexPosn, Token)]
-> Either ParseError (HappyAbsSyn Format Format Format)
happyParse Int#
0# [(AlexPosn, Token)]
tks) (\HappyAbsSyn Format Format Format
x -> Format -> Either ParseError Format
forall a. a -> Either ParseError a
happyReturn (let {x' :: Format
x' = HappyAbsSyn Format Format Format -> Format
forall t4 t5 t6. HappyAbsSyn t4 t5 t6 -> t4
happyOut4 HappyAbsSyn Format Format Format
x} in Format
x'))

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


data ParseError
  = Unclosed AlexPosn
  | UnexpectedEOF
  | UnexpectedToken AlexPosn Token
  deriving Int -> ParseError -> ShowS
[ParseError] -> ShowS
ParseError -> String
(Int -> ParseError -> ShowS)
-> (ParseError -> String)
-> ([ParseError] -> ShowS)
-> Show ParseError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParseError -> ShowS
showsPrec :: Int -> ParseError -> ShowS
$cshow :: ParseError -> String
show :: ParseError -> String
$cshowList :: [ParseError] -> ShowS
showList :: [ParseError] -> ShowS
Show

parseError :: [(AlexPosn, Token)] -> Either ParseError a
parseError :: forall a. [(AlexPosn, Token)] -> Either ParseError a
parseError ((AlexPosn
p,Token
t):[(AlexPosn, Token)]
_) = ParseError -> Either ParseError a
forall a b. a -> Either a b
Left (AlexPosn -> Token -> ParseError
UnexpectedToken AlexPosn
p Token
t)
parseError [] = ParseError -> Either ParseError a
forall a b. a -> Either a b
Left ParseError
UnexpectedEOF
{-# 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)) :: Prelude.Bool)
#define GTE(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.>=# m)) :: Prelude.Bool)
#define EQ(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.==# m)) :: Prelude.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



















data Happy_IntList = HappyCons Happy_GHC_Exts.Int# Happy_IntList








































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 ERROR_TOK, 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)) :: Prelude.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 Prelude.False
         action
          | check     = indexShortOffAddr happyTable off_i
          | Prelude.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 `Prelude.mod` 16)
  where unbox_int (Happy_GHC_Exts.I# x) = x






data HappyAddr = HappyA# Happy_GHC_Exts.Addr#


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













-----------------------------------------------------------------------------
-- 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 (ERROR_TOK 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  ERROR_TOK tk old_st CONS(HAPPYSTATE(action),sts) 
                                                (saved_tok `HappyStk` _ `HappyStk` stk) =
--      trace ("discarding state, depth " ++ show (length stk))  $
        DO_ACTION(action,ERROR_TOK,tk,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 = Prelude.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 `Prelude.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.