Cflat.Interpreter (cflat v0.2.1)

This module implements an interpreter for syntax trees of code following the grammar of the C♭ programming langauge.

Summary

Functions

Evaluate program in syntax tree form

Functions

evaluate(st)

Evaluate program in syntax tree form

Examples

iex> "int i = 42;" |> Cflat.tokenize() |> Cflat.parse() |> Cflat.Interpreter.evaluate()
%{"i" => 42}