Averest


MiniCFunction Type

MiniC functions are defined by their name, their arguments and return type, and of course by their body statement. The body statement should always terminate with a return expression. MiniC functions can call other functions, but not themselves (also not via other functions). This restriction ensures statically bounded memory for function calls.

Record fields

Record Field Description

argdecl

Full Usage: argdecl

Field type: (string * TypeC)[]

Field type: (string * TypeC)[]

body

Full Usage: body

Field type: StmtC

Field type: StmtC

name

Full Usage: name

Field type: string

Field type: string

returnTy

Full Usage: returnTy

Field type: TypeC option

Field type: TypeC option