Higher-order Abstract Syntax - Implementation

Implementation

One mathematical object that could be used to implement HOAS is a graph where variables are associated with their binding sites via edges. Another popular way to implement HOAS (in, for example, compilers) is with de Bruijn indices.

Read more about this topic:  Higher-order Abstract Syntax