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.Char

Description

Characters rules of C language

Synopsis

The definition of characters rules

isValidChar :: Char -> Bool Source #

Return True if it is a valid character.

The helper class for some string types

class GenericStr a where Source #

Class of type that can be treated as a set of characters.

Methods

isValid :: a -> Bool Source #

Returns True if the set of characters is a valid C language characters.

Instances

Instances details
GenericStr String Source # 
Instance details

Defined in Htcc.CRules.Char

Methods

isValid :: String -> Bool Source #

GenericStr Text Source # 
Instance details

Defined in Htcc.CRules.Char

Methods

isValid :: Text -> Bool Source #