ddc-core-0.3.1.1: Disciplined Disciple Compiler core language and type checker.

Safe HaskellNone

DDC.Core.Lexer.Names

Contents

Synopsis

Keywords

keywords :: [(String, Tok n)]Source

Textual keywords in the core language.

Builtin constructors

readTcConBuiltin :: String -> Maybe TcConSource

Read a builtin TcCon with a non-symbolic name, ie not '->'.

Variable names

isVarName :: String -> BoolSource

String is a variable name

isVarStart :: Char -> BoolSource

Charater can start a variable name.

isVarBody :: Char -> BoolSource

Character can be part of a variable body.

readVar :: String -> Maybe StringSource

Read a named, user defined variable.

Constructor names

isConName :: String -> BoolSource

String is a constructor name.

isConStart :: Char -> BoolSource

Character can start a constructor name.

isConBody :: Char -> BoolSource

Charater can be part of a constructor body.

readCon :: String -> Maybe StringSource

Read a named, user defined TcCon.

Literal names

isLitName :: String -> BoolSource

String is the name of a literal.

isLitStart :: Char -> BoolSource

Character can start a literal.

isLitBody :: Char -> BoolSource

Character can be part of a literal body.