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 HaskellSafe
LanguageHaskell2010

Htcc.CRules.Preprocessor.Punctuators

Description

The puncuators of preprocessor

Synopsis

The define of C preprocessor

bgMacro :: Char Source #

bgMacro is the character that starts the macro, so it is #

data Macros Source #

Macros is a macro token defined in C.

Constructors

MacInclude

the include

Instances

Instances details
Enum Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

Eq Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

Methods

(==) :: Macros -> Macros -> Bool #

(/=) :: Macros -> Macros -> Bool #

Show Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

Generic Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

Associated Types

type Rep Macros :: Type -> Type #

Methods

from :: Macros -> Rep Macros x #

to :: Rep Macros x -> Macros #

NFData Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

Methods

rnf :: Macros -> () #

type Rep Macros Source # 
Instance details

Defined in Htcc.CRules.Preprocessor.Punctuators

type Rep Macros = D1 ('MetaData "Macros" "Htcc.CRules.Preprocessor.Punctuators" "htcc-0.0.0.1-I8tHuOdNzco4DzUthNftqr" 'False) (C1 ('MetaCons "MacInclude" 'PrefixI 'False) (U1 :: Type -> Type))

Utilities

macros :: [Macros] Source #

all macros

length :: Macros -> Int Source #

the length of the macro