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.Parsing.Global.Function

Description

The function declaration

Synopsis

Documentation

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

\[ \begin{array}{ccc} \text{function}&=&\text{pre-type}\ \text{declaration}\ \text{"("}\ \text{params?}\ \text{")"}\ \left(\text{"\{"}\ \text{stmt*}\ \text{"\}"}\ \mid\ \text{";"}\right)\\ \text{params}&=&\text{params}\left(\text{","}\ \text{param}\right)\text{*}\\ \text{param}&=&\text{pre-type}\ \text{declaration}\ \text{array-decl-suffix} \end{array} \]