Welcome to CoCoNut’s documentation!

CoCoNut is a framework to ease the construction of a compiler by providing a DSL to define the common compiler structure. From this specification, CoCoNut generates the boilerplate to work with the defined structure. The structure is defined using several compiler primitives: enums, nodes, nodesets, passes, traversals and phases. This documentation starts with an explanation of the DSL, continues with the generated code from the structure, and then shows how to communicate with the CoCoNut driver from within your compiler, and, finally, walk through an example building a simple REPL calculator.

Indices and tables