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.Var.Init

Description

The C languge parser and AST constructor

Synopsis

Documentation

type Assign i = [TokenLC i] -> ATree i -> ConstructionData i -> ASTConstruction i Source #

needs parameters for Assign

validAssign :: Eq i => TokenLC i -> ATree i -> Either (ASTError i) (ATree i) Source #

Check for valid substitutions

varInit :: (Read i, Show i, Integral i, Bits i) => Assign i -> StorageClass i -> TokenLC i -> [TokenLC i] -> ConstructionData i -> ASTConstruction i Source #

Initializing local variables