htcc-0.0.0.1: The full scratch implementation of tiny C compiler (x86_64)
Copyright(c) roki 2019
LicenseMIT
Maintainerfalgon53@yahoo.co.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Htcc.CRules.Types.StorageClass

Description

The storage-class of C language

Synopsis

StorageClass data type and class

data StorageClass i Source #

The data type representing StorageClass

Constructors

SCAuto (TypeKind i)

The auto keyword

SCStatic (TypeKind i)

The static keyword

SCRegister (TypeKind i)

The register keyword

SCUndef (TypeKind i)

SCUndef is used when storage-class specifier is not defined

Instances

Instances details
IncompleteBase StorageClass Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

TypeKindBase StorageClass Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

StorageClassBase StorageClass Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Eq i => Eq (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Ord i => Ord (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Show i => Show (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Generic (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Associated Types

type Rep (StorageClass i) :: Type -> Type #

Methods

from :: StorageClass i -> Rep (StorageClass i) x #

to :: Rep (StorageClass i) x -> StorageClass i #

NFData i => NFData (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

Methods

rnf :: StorageClass i -> () #

Ord i => CType (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

type Rep (StorageClass i) Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass

class StorageClassBase a where Source #

Class to a type based on StorageClass.

Methods

isSCStatic :: a i -> Bool Source #

When the given argument is SCStatic, isSCStatic returns True, otherwise False.

Instances

Instances details
StorageClassBase StorageClass Source # 
Instance details

Defined in Htcc.CRules.Types.StorageClass