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.Parser.AST.DeduceKind

Description

Data types and type synonyms used during AST construction

Synopsis

Documentation

addKind :: (Eq i, Ord i, Show i) => ATree i -> ATree i -> Maybe (ATree i) Source #

Constructs a numeric addition or pointer addition node according to the C language implicit conversion rules

subKind :: (Eq i, Ord i) => ATree i -> ATree i -> Maybe (ATree i) Source #

Constructs a number subtraction or pointer subtraction node according to the C language implicit conversion rules