ddc-core-tetra-0.3.2.1: Disciplined Disciple Compiler intermediate language.

Safe HaskellNone

DDC.Core.Tetra.Profile

Description

Language profile for Disciple Core Tetra

Synopsis

Documentation

profile :: Profile NameSource

Language profile for Disciple Core Flow.

lexModuleString :: String -> Int -> String -> [Token (Tok Name)]Source

Lex a string to tokens, using primitive names.

The first argument gives the starting source line number.

lexExpString :: String -> Int -> String -> [Token (Tok Name)]Source

Lex a string to tokens, using primitive names.

The first argument gives the starting source line number.

freshT :: Env Name -> Bind Name -> State Int NameSource

Create a new type variable name that is not in the given environment.

freshX :: Env Name -> Bind Name -> State Int NameSource

Create a new value variable name that is not in the given environment.