eo-phi-normalizer-2.1.0: src/Language/EO/Phi/Syntax/Abs.hs
{-
Copyright EO/Polystat Development Team (c) 2023
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of EO/Polystat Development Team nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-}
-- File generated by the BNF Converter (bnfc 2.9.5).
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | The abstract syntax of language Syntax.
module Language.EO.Phi.Syntax.Abs where
import Prelude (String)
import qualified Prelude as C (Eq, Ord, Show, Read)
import qualified Data.String
import qualified Data.Data as C (Data, Typeable)
import qualified GHC.Generics as C (Generic)
data Program = Program [Binding]
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data MetaId
= MetaIdLabel LabelMetaId
| MetaIdTail TailMetaId
| MetaIdBindings BindingsMetaId
| MetaIdObject ObjectMetaId
| MetaIdBytes BytesMetaId
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data Object
= Formation [Binding]
| Application Object [Binding]
| ObjectDispatch Object Attribute
| GlobalObject
| ThisObject
| Termination
| MetaSubstThis Object Object
| MetaContextualize Object Object
| MetaObject ObjectMetaId
| MetaTailContext Object TailMetaId
| MetaFunction MetaFunctionName Object
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data Binding
= AlphaBinding Attribute Object
| EmptyBinding Attribute
| DeltaBinding Bytes
| DeltaEmptyBinding
| LambdaBinding Function
| MetaBindings BindingsMetaId
| MetaDeltaBinding BytesMetaId
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data Attribute
= Phi
| Rho
| Label LabelId
| Alpha AlphaIndex
| MetaAttr LabelMetaId
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data RuleAttribute = ObjectAttr Attribute | DeltaAttr | LambdaAttr
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data PeeledObject = PeeledObject ObjectHead [ObjectAction]
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data ObjectHead
= HeadFormation [Binding] | HeadGlobal | HeadThis | HeadTermination
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
data ObjectAction
= ActionApplication [Binding] | ActionDispatch Attribute
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic)
newtype Bytes = Bytes String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype Function = Function String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype LabelId = LabelId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype AlphaIndex = AlphaIndex String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype LabelMetaId = LabelMetaId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype TailMetaId = TailMetaId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype BindingsMetaId = BindingsMetaId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype ObjectMetaId = ObjectMetaId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype BytesMetaId = BytesMetaId String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)
newtype MetaFunctionName = MetaFunctionName String
deriving (C.Eq, C.Ord, C.Show, C.Read, C.Data, C.Typeable, C.Generic, Data.String.IsString)