Elm Exactly

Figuredynamic-core-compound

Figure 20, Compound Semantic Objects, in Section 6.4 Compound Objects.

vv∈\inVal\Val={()}∪SVal∪BasApp∪ConVal∪Record= \{()\}\cup\SVal\cup\BasApp\cup\ConVal\cup\Record
=∪Tuple∪Closure∪EffVal∪JVal\phantom{{}={}}\cup\Tuple\cup\Closure\cup\EffVal\cup\JVal
(b,v1⋯vk)(b, v_1\cdots v_k)∈\inBasApp\BasApp=⋃k≥0BasVal×Valk= \textstyle\bigcup_{k\geq 0}\BasVal\times\Val^k
con v1⋯vk\con\ v_1\cdots v_k∈\inConVal\ConVal=⋃k≥0Con×Valk= \textstyle\bigcup_{k\geq 0}\cls{Con}\times\Val^k
rr∈\inRecord\Record=Lab→finVal= \cls{Lab}\finmap\Val
(v1,v2⟨,v3⟩)(v_1,v_2\opt{,v_3})∈\inTuple\Tuple=Val2∪Val3= \Val^2\cup\Val^3
(atpat,exp,E,VE)(\atpat,\expm,E,\VE)∈\inClosure\Closure=AtPat×Exp×Env×ValEnv= \cls{AtPat}\times\cls{Exp}\times\Env\times\ValEnv
(QE,VE) or E(\QE,\VE)\ \text{or}\ E∈\inEnv\Env=QualEnv×ValEnv= \QualEnv\times\ValEnv
QE\QE∈\inQualEnv\QualEnv=ModId→finEnv= \cls{ModId}\finmap\Env
VE\VE∈\inValEnv\ValEnv=(Var∪Con)→finVal= (\cls{Var}\cup\cls{Con})\finmap\Val
Figure 20: Compound Semantic Objects
Read it in its chapter·Permanent address: /standard/figures/dynamic-core-compound

Referred to from

Tests (0)

No test of the suite checks this figure yet.

Discussions

Discuss this figure·Search the discussions on GitHub

Discussions are on GitHub; one about this figure has [fig:dynamic-core-compound] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.