module Text.Show.Parser (parseValue) where
import Text.Show.Value
import Language.Haskell.Lexer
#if __GLASGOW_HASKELL__ >= 503
import Data.Array
#else
import Array
#endif
#if __GLASGOW_HASKELL__ >= 503
import GHC.Exts
#else
import GlaExts
#endif
newtype HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 = HappyAbsSyn HappyAny
#if __GLASGOW_HASKELL__ >= 607
type HappyAny = GHC.Exts.Any
#else
type HappyAny = forall a . a
#endif
happyIn4 :: (Value) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn4 x = unsafeCoerce# x
happyOut4 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> (Value)
happyOut4 x = unsafeCoerce# x
happyIn5 :: (Value) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn5 x = unsafeCoerce# x
happyOut5 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> (Value)
happyOut5 x = unsafeCoerce# x
happyIn6 :: (String) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn6 x = unsafeCoerce# x
happyOut6 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> (String)
happyOut6 x = unsafeCoerce# x
happyIn7 :: ((Name,Value)) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn7 x = unsafeCoerce# x
happyOut7 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> ((Name,Value))
happyOut7 x = unsafeCoerce# x
happyIn8 :: ([Value]) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn8 x = unsafeCoerce# x
happyOut8 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> ([Value])
happyOut8 x = unsafeCoerce# x
happyIn9 :: t9 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn9 x = unsafeCoerce# x
happyOut9 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t9
happyOut9 x = unsafeCoerce# x
happyIn10 :: t10 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn10 x = unsafeCoerce# x
happyOut10 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t10
happyOut10 x = unsafeCoerce# x
happyIn11 :: t11 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn11 x = unsafeCoerce# x
happyOut11 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t11
happyOut11 x = unsafeCoerce# x
happyIn12 :: t12 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn12 x = unsafeCoerce# x
happyOut12 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t12
happyOut12 x = unsafeCoerce# x
happyIn13 :: t13 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn13 x = unsafeCoerce# x
happyOut13 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t13
happyOut13 x = unsafeCoerce# x
happyIn14 :: t14 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn14 x = unsafeCoerce# x
happyOut14 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t14
happyOut14 x = unsafeCoerce# x
happyIn15 :: t15 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn15 x = unsafeCoerce# x
happyOut15 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t15
happyOut15 x = unsafeCoerce# x
happyIn16 :: t16 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn16 x = unsafeCoerce# x
happyOut16 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t16
happyOut16 x = unsafeCoerce# x
happyIn17 :: t17 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn17 x = unsafeCoerce# x
happyOut17 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t17
happyOut17 x = unsafeCoerce# x
happyIn18 :: t18 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn18 x = unsafeCoerce# x
happyOut18 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t18
happyOut18 x = unsafeCoerce# x
happyIn19 :: t19 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn19 x = unsafeCoerce# x
happyOut19 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t19
happyOut19 x = unsafeCoerce# x
happyIn20 :: t20 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn20 x = unsafeCoerce# x
happyOut20 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t20
happyOut20 x = unsafeCoerce# x
happyIn21 :: t21 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn21 x = unsafeCoerce# x
happyOut21 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t21
happyOut21 x = unsafeCoerce# x
happyIn22 :: t22 -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyIn22 x = unsafeCoerce# x
happyOut22 :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> t22
happyOut22 x = unsafeCoerce# x
happyInTok :: (PosToken) -> (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22)
happyInTok x = unsafeCoerce# x
happyOutTok :: (HappyAbsSyn t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22) -> (PosToken)
happyOutTok x = unsafeCoerce# x
happyActOffsets :: HappyAddr
happyActOffsets = HappyA# "\x0e\x00\x35\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\x00\x00\x00\xff\xff\x0e\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x48\x00\x4a\x00\x00\x00\x1f\x00\x3e\x00\x00\x00\x38\x00\x00\x00\x0e\x00\x42\x00\x2b\x00\x33\x00\x00\x00\x2f\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x22\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00"#
happyGotoOffsets :: HappyAddr
happyGotoOffsets = HappyA# "\x4c\x00\x27\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x11\x00\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x34\x00\x2e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x49\x00\x00\x00\x00\x00\x00\x00\x46\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf3\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"#
happyDefActions :: HappyAddr
happyDefActions = HappyA# "\x00\x00\x00\x00\x00\x00\xf1\xff\xf0\xff\xf3\xff\xf2\xff\x00\x00\xfd\xff\xf8\xff\xee\xff\xe8\xff\xf7\xff\xf6\xff\xf5\xff\xf4\xff\xe5\xff\x00\x00\xe9\xff\x00\x00\x00\x00\xe4\xff\xf8\xff\xfe\xff\xec\xff\xea\xff\xdf\xff\x00\x00\xeb\xff\x00\x00\xe3\xff\xfa\xff\xfc\xff\x00\x00\xfb\xff\xe7\xff\xdb\xff\xe6\xff\xde\xff\x00\x00\xe1\xff\xda\xff\xed\xff\x00\x00\xf9\xff\xe2\xff\xd9\xff\xe0\xff\xdc\xff\x00\x00\xdd\xff\xd8\xff\xef\xff"#
happyCheck :: HappyAddr
happyCheck = HappyA# "\xff\xff\x02\x00\x0f\x00\x04\x00\x03\x00\x06\x00\x01\x00\x02\x00\x09\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x02\x00\x00\x00\x01\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x09\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x01\x00\x02\x00\x0d\x00\x03\x00\x05\x00\x00\x00\x01\x00\x02\x00\x08\x00\x0a\x00\x02\x00\x08\x00\x07\x00\x08\x00\x00\x00\x01\x00\x02\x00\x01\x00\x09\x00\x08\x00\x08\x00\x0c\x00\x08\x00\x0e\x00\x03\x00\x05\x00\x11\x00\x06\x00\x0d\x00\x04\x00\x0f\x00\x10\x00\x0b\x00\x12\x00\x03\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x00\x00\x01\x00\x02\x00\x00\x00\x01\x00\x02\x00\x00\x00\x01\x00\x02\x00\x0d\x00\x08\x00\x07\x00\x13\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"#
happyTable :: HappyAddr
happyTable = HappyA# "\x00\x00\x0b\x00\x33\x00\x1a\x00\x32\x00\x0c\x00\x1e\x00\x16\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x04\x00\x05\x00\x06\x00\x07\x00\x0b\x00\x13\x00\x08\x00\x09\x00\x0c\x00\x14\x00\x29\x00\x0d\x00\x0e\x00\x0f\x00\x10\x00\x04\x00\x05\x00\x06\x00\x07\x00\x15\x00\x16\x00\x1e\x00\x21\x00\x17\x00\x10\x00\x08\x00\x09\x00\x22\x00\x18\x00\x02\x00\x32\x00\x11\x00\x12\x00\x10\x00\x08\x00\x09\x00\x2c\x00\x23\x00\x28\x00\x32\x00\x24\x00\x2a\x00\x25\x00\x1a\x00\x2d\x00\x26\x00\x1b\x00\x2d\x00\x1a\x00\x2e\x00\x2f\x00\x1c\x00\x30\x00\x20\x00\x04\x00\x05\x00\x06\x00\x07\x00\x34\x00\x08\x00\x09\x00\x28\x00\x08\x00\x09\x00\x07\x00\x08\x00\x09\x00\x1e\x00\x28\x00\x23\x00\xff\xff\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 (1, 39) [
(1 , happyReduce_1),
(2 , happyReduce_2),
(3 , happyReduce_3),
(4 , happyReduce_4),
(5 , happyReduce_5),
(6 , happyReduce_6),
(7 , happyReduce_7),
(8 , happyReduce_8),
(9 , happyReduce_9),
(10 , happyReduce_10),
(11 , happyReduce_11),
(12 , happyReduce_12),
(13 , happyReduce_13),
(14 , happyReduce_14),
(15 , happyReduce_15),
(16 , happyReduce_16),
(17 , happyReduce_17),
(18 , happyReduce_18),
(19 , happyReduce_19),
(20 , happyReduce_20),
(21 , happyReduce_21),
(22 , happyReduce_22),
(23 , happyReduce_23),
(24 , happyReduce_24),
(25 , happyReduce_25),
(26 , happyReduce_26),
(27 , happyReduce_27),
(28 , happyReduce_28),
(29 , happyReduce_29),
(30 , happyReduce_30),
(31 , happyReduce_31),
(32 , happyReduce_32),
(33 , happyReduce_33),
(34 , happyReduce_34),
(35 , happyReduce_35),
(36 , happyReduce_36),
(37 , happyReduce_37),
(38 , happyReduce_38),
(39 , happyReduce_39)
]
happy_n_terms = 20 :: Int
happy_n_nonterms = 19 :: Int
happyReduce_1 = happySpecReduce_2 0# happyReduction_1
happyReduction_1 happy_x_2
happy_x_1
= case happyOut6 happy_x_1 of { happy_var_1 ->
case happyOut9 happy_x_2 of { happy_var_2 ->
happyIn4
(Con happy_var_1 happy_var_2
)}}
happyReduce_2 = happySpecReduce_1 0# happyReduction_2
happyReduction_2 happy_x_1
= case happyOut5 happy_x_1 of { happy_var_1 ->
happyIn4
(happy_var_1
)}
happyReduce_3 = happySpecReduce_3 1# happyReduction_3
happyReduction_3 happy_x_3
happy_x_2
happy_x_1
= case happyOut4 happy_x_2 of { happy_var_2 ->
happyIn5
(happy_var_2
)}
happyReduce_4 = happySpecReduce_3 1# happyReduction_4
happyReduction_4 happy_x_3
happy_x_2
happy_x_1
= case happyOut11 happy_x_2 of { happy_var_2 ->
happyIn5
(List happy_var_2
)}
happyReduce_5 = happySpecReduce_3 1# happyReduction_5
happyReduction_5 happy_x_3
happy_x_2
happy_x_1
= case happyOut8 happy_x_2 of { happy_var_2 ->
happyIn5
(Tuple happy_var_2
)}
happyReduce_6 = happyReduce 4# 1# happyReduction_6
happyReduction_6 (happy_x_4 `HappyStk`
happy_x_3 `HappyStk`
happy_x_2 `HappyStk`
happy_x_1 `HappyStk`
happyRest)
= case happyOut6 happy_x_1 of { happy_var_1 ->
case happyOut10 happy_x_3 of { happy_var_3 ->
happyIn5
(Rec happy_var_1 happy_var_3
) `HappyStk` happyRest}}
happyReduce_7 = happySpecReduce_1 1# happyReduction_7
happyReduction_7 happy_x_1
= case happyOut6 happy_x_1 of { happy_var_1 ->
happyIn5
(Con happy_var_1 []
)}
happyReduce_8 = happySpecReduce_1 1# happyReduction_8
happyReduction_8 happy_x_1
= case happyOutTok happy_x_1 of { ((IntLit, (_,happy_var_1))) ->
happyIn5
(Other happy_var_1
)}
happyReduce_9 = happySpecReduce_1 1# happyReduction_9
happyReduction_9 happy_x_1
= case happyOutTok happy_x_1 of { ((FloatLit, (_,happy_var_1))) ->
happyIn5
(Other happy_var_1
)}
happyReduce_10 = happySpecReduce_1 1# happyReduction_10
happyReduction_10 happy_x_1
= case happyOutTok happy_x_1 of { ((StringLit, (_,happy_var_1))) ->
happyIn5
(Other happy_var_1
)}
happyReduce_11 = happySpecReduce_1 1# happyReduction_11
happyReduction_11 happy_x_1
= case happyOutTok happy_x_1 of { ((CharLit, (_,happy_var_1))) ->
happyIn5
(Other happy_var_1
)}
happyReduce_12 = happySpecReduce_1 2# happyReduction_12
happyReduction_12 happy_x_1
= case happyOutTok happy_x_1 of { ((Conid, (_,happy_var_1))) ->
happyIn6
(happy_var_1
)}
happyReduce_13 = happySpecReduce_1 2# happyReduction_13
happyReduction_13 happy_x_1
= case happyOutTok happy_x_1 of { ((Qconid, (_,happy_var_1))) ->
happyIn6
(happy_var_1
)}
happyReduce_14 = happySpecReduce_1 2# happyReduction_14
happyReduction_14 happy_x_1
= case happyOutTok happy_x_1 of { ((Varid, (_,happy_var_1))) ->
happyIn6
(happy_var_1
)}
happyReduce_15 = happySpecReduce_1 2# happyReduction_15
happyReduction_15 happy_x_1
= case happyOutTok happy_x_1 of { ((Qvarid, (_,happy_var_1))) ->
happyIn6
(happy_var_1
)}
happyReduce_16 = happySpecReduce_3 3# happyReduction_16
happyReduction_16 happy_x_3
happy_x_2
happy_x_1
= case happyOutTok happy_x_1 of { ((Varid, (_,happy_var_1))) ->
case happyOut4 happy_x_3 of { happy_var_3 ->
happyIn7
((happy_var_1,happy_var_3)
)}}
happyReduce_17 = happySpecReduce_0 4# happyReduction_17
happyReduction_17 = happyIn8
([]
)
happyReduce_18 = happySpecReduce_3 4# happyReduction_18
happyReduction_18 happy_x_3
happy_x_2
happy_x_1
= case happyOut4 happy_x_1 of { happy_var_1 ->
case happyOut12 happy_x_3 of { happy_var_3 ->
happyIn8
(happy_var_1 : happy_var_3
)}}
happyReduce_19 = happySpecReduce_1 5# happyReduction_19
happyReduction_19 happy_x_1
= case happyOut14 happy_x_1 of { happy_var_1 ->
happyIn9
(reverse happy_var_1
)}
happyReduce_20 = happySpecReduce_1 6# happyReduction_20
happyReduction_20 happy_x_1
= case happyOut15 happy_x_1 of { happy_var_1 ->
happyIn10
(happy_var_1
)}
happyReduce_21 = happySpecReduce_0 6# happyReduction_21
happyReduction_21 = happyIn10
([]
)
happyReduce_22 = happySpecReduce_1 7# happyReduction_22
happyReduction_22 happy_x_1
= case happyOut12 happy_x_1 of { happy_var_1 ->
happyIn11
(happy_var_1
)}
happyReduce_23 = happySpecReduce_0 7# happyReduction_23
happyReduction_23 = happyIn11
([]
)
happyReduce_24 = happySpecReduce_2 8# happyReduction_24
happyReduction_24 happy_x_2
happy_x_1
= case happyOut4 happy_x_1 of { happy_var_1 ->
case happyOut13 happy_x_2 of { happy_var_2 ->
happyIn12
(happy_var_1 : happy_var_2
)}}
happyReduce_25 = happySpecReduce_1 9# happyReduction_25
happyReduction_25 happy_x_1
= case happyOut18 happy_x_1 of { happy_var_1 ->
happyIn13
(happy_var_1
)}
happyReduce_26 = happySpecReduce_0 9# happyReduction_26
happyReduction_26 = happyIn13
([]
)
happyReduce_27 = happySpecReduce_1 10# happyReduction_27
happyReduction_27 happy_x_1
= case happyOut5 happy_x_1 of { happy_var_1 ->
happyIn14
([happy_var_1]
)}
happyReduce_28 = happySpecReduce_2 10# happyReduction_28
happyReduction_28 happy_x_2
happy_x_1
= case happyOut14 happy_x_1 of { happy_var_1 ->
case happyOut5 happy_x_2 of { happy_var_2 ->
happyIn14
(happy_var_2 : happy_var_1
)}}
happyReduce_29 = happySpecReduce_2 11# happyReduction_29
happyReduction_29 happy_x_2
happy_x_1
= case happyOut7 happy_x_1 of { happy_var_1 ->
case happyOut17 happy_x_2 of { happy_var_2 ->
happyIn15
(happy_var_1 : happy_var_2
)}}
happyReduce_30 = happySpecReduce_2 12# happyReduction_30
happyReduction_30 happy_x_2
happy_x_1
= case happyOut4 happy_x_2 of { happy_var_2 ->
happyIn16
(happy_var_2
)}
happyReduce_31 = happySpecReduce_1 13# happyReduction_31
happyReduction_31 happy_x_1
= case happyOut20 happy_x_1 of { happy_var_1 ->
happyIn17
(happy_var_1
)}
happyReduce_32 = happySpecReduce_0 13# happyReduction_32
happyReduction_32 = happyIn17
([]
)
happyReduce_33 = happySpecReduce_1 14# happyReduction_33
happyReduction_33 happy_x_1
= case happyOut21 happy_x_1 of { happy_var_1 ->
happyIn18
(reverse happy_var_1
)}
happyReduce_34 = happySpecReduce_2 15# happyReduction_34
happyReduction_34 happy_x_2
happy_x_1
= case happyOut7 happy_x_2 of { happy_var_2 ->
happyIn19
(happy_var_2
)}
happyReduce_35 = happySpecReduce_1 16# happyReduction_35
happyReduction_35 happy_x_1
= case happyOut22 happy_x_1 of { happy_var_1 ->
happyIn20
(reverse happy_var_1
)}
happyReduce_36 = happySpecReduce_1 17# happyReduction_36
happyReduction_36 happy_x_1
= case happyOut16 happy_x_1 of { happy_var_1 ->
happyIn21
([happy_var_1]
)}
happyReduce_37 = happySpecReduce_2 17# happyReduction_37
happyReduction_37 happy_x_2
happy_x_1
= case happyOut21 happy_x_1 of { happy_var_1 ->
case happyOut16 happy_x_2 of { happy_var_2 ->
happyIn21
(happy_var_2 : happy_var_1
)}}
happyReduce_38 = happySpecReduce_1 18# happyReduction_38
happyReduction_38 happy_x_1
= case happyOut19 happy_x_1 of { happy_var_1 ->
happyIn22
([happy_var_1]
)}
happyReduce_39 = happySpecReduce_2 18# happyReduction_39
happyReduction_39 happy_x_2
happy_x_1
= case happyOut22 happy_x_1 of { happy_var_1 ->
case happyOut19 happy_x_2 of { happy_var_2 ->
happyIn22
(happy_var_2 : happy_var_1
)}}
happyNewToken action sts stk [] =
happyDoAction 19# notHappyAtAll action sts stk []
happyNewToken action sts stk (tk:tks) =
let cont i = happyDoAction i tk action sts stk tks in
case tk of {
(Reservedop, (_,"=")) -> cont 1#;
(Special, (_,"(")) -> cont 2#;
(Special, (_,")")) -> cont 3#;
(Special, (_,"{")) -> cont 4#;
(Special, (_,"}")) -> cont 5#;
(Special, (_,"[")) -> cont 6#;
(Special, (_,"]")) -> cont 7#;
(Special, (_,",")) -> cont 8#;
(IntLit, (_,happy_dollar_dollar)) -> cont 9#;
(FloatLit, (_,happy_dollar_dollar)) -> cont 10#;
(StringLit, (_,happy_dollar_dollar)) -> cont 11#;
(CharLit, (_,happy_dollar_dollar)) -> cont 12#;
(Varid, (_,happy_dollar_dollar)) -> cont 13#;
(Qvarid, (_,happy_dollar_dollar)) -> cont 14#;
(Conid, (_,happy_dollar_dollar)) -> cont 15#;
(Qconid, (_,happy_dollar_dollar)) -> cont 16#;
(Consym, (_,happy_dollar_dollar)) -> cont 17#;
(Qconsym, (_,happy_dollar_dollar)) -> cont 18#;
_ -> happyError' (tk:tks)
}
happyError_ tk tks = happyError' (tk:tks)
happyThen :: () => Maybe a -> (a -> Maybe b) -> Maybe b
happyThen = ((>>=))
happyReturn :: () => a -> Maybe a
happyReturn = (return)
happyThen1 m k tks = ((>>=)) m (\a -> k a tks)
happyReturn1 :: () => a -> b -> Maybe a
happyReturn1 = \a tks -> (return) a
happyError' :: () => [(PosToken)] -> Maybe a
happyError' = happyError
parseValue tks = happySomeParser where
happySomeParser = happyThen (happyParse 0# tks) (\x -> happyReturn (happyOut4 x))
happySeq = happyDontSeq
happyError :: [PosToken] -> Maybe a
happyError ((_,(p,_)) : _) = Nothing
happyError [] = Nothing
data Happy_IntList = HappyCons Int# Happy_IntList
infixr 9 `HappyStk`
data HappyStk a = HappyStk a (HappyStk a)
happyParse start_state = happyNewToken start_state notHappyAtAll notHappyAtAll
happyAccept 0# tk st sts (_ `HappyStk` ans `HappyStk` _) =
happyReturn1 ans
happyAccept j tk st sts (HappyStk ans _) =
(happyTcHack j (happyTcHack st)) (happyReturn1 ans)
happyDoAction i tk st
=
case action of
0# ->
happyFail i tk st
1# ->
happyAccept i tk st
n | (n <# (0# :: Int#)) ->
(happyReduceArr ! rule) i tk st
where rule = (I# ((negateInt# ((n +# (1# :: Int#))))))
n ->
happyShift new_state i tk st
where new_state = (n -# (1# :: Int#))
where off = indexShortOffAddr happyActOffsets st
off_i = (off +# i)
check = if (off_i >=# (0# :: Int#))
then (indexShortOffAddr happyCheck off_i ==# i)
else False
action | check = indexShortOffAddr happyTable off_i
| otherwise = indexShortOffAddr happyDefActions st
indexShortOffAddr (HappyA# arr) off =
#if __GLASGOW_HASKELL__ > 500
narrow16Int# i
#elif __GLASGOW_HASKELL__ == 500
intToInt16# i
#else
(i `iShiftL#` 16#) `iShiftRA#` 16#
#endif
where
#if __GLASGOW_HASKELL__ >= 503
i = word2Int# ((high `uncheckedShiftL#` 8#) `or#` low)
#else
i = word2Int# ((high `shiftL#` 8#) `or#` low)
#endif
high = int2Word# (ord# (indexCharOffAddr# arr (off' +# 1#)))
low = int2Word# (ord# (indexCharOffAddr# arr off'))
off' = off *# 2#
data HappyAddr = HappyA# Addr#
happyShift new_state 0# tk st sts stk@(x `HappyStk` _) =
let i = (case unsafeCoerce# x of { (I# (i)) -> i }) in
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)
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 -# (1# :: Int#)) sts of
sts1@((HappyCons (st1@(action)) (_))) ->
let r = fn stk in
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 =
happyThen1 (fn stk tk) (\r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk))
where sts1@((HappyCons (st1@(action)) (_))) = happyDrop k (HappyCons (st) (sts))
drop_stk = happyDropStk k 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 =
happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))
where sts1@((HappyCons (st1@(action)) (_))) = happyDrop k (HappyCons (st) (sts))
drop_stk = happyDropStk k stk
off = indexShortOffAddr happyGotoOffsets st1
off_i = (off +# nt)
new_state = indexShortOffAddr happyTable off_i
happyDrop 0# l = l
happyDrop n (HappyCons (_) (t)) = happyDrop (n -# (1# :: Int#)) t
happyDropStk 0# l = l
happyDropStk n (x `HappyStk` xs) = happyDropStk (n -# (1#::Int#)) xs
happyGoto nt j tk st =
happyDoAction j tk new_state
where off = indexShortOffAddr happyGotoOffsets st
off_i = (off +# nt)
new_state = indexShortOffAddr happyTable off_i
happyFail 0# tk old_st _ stk =
happyError_ tk
happyFail i tk (action) sts stk =
happyDoAction 0# tk action sts ( (unsafeCoerce# (I# (i))) `HappyStk` stk)
notHappyAtAll = error "Internal Happy error\n"
happyTcHack :: Int# -> a -> a
happyTcHack x y = y
happyDoSeq, happyDontSeq :: a -> b -> b
happyDoSeq a b = a `seq` b
happyDontSeq a b = b