Crate leo_ast

source ·
Expand description

The abstract syntax tree (ast) for a Leo program.

This module contains the Ast type, a wrapper around the Program type. The Ast type is intended to be parsed and modified by different passes of the Leo compiler. The Leo compiler can generate a set of R1CS constraints from any Ast.

Re-exports§

Modules§

Macros§

Structs§

  • The abstract syntax tree (AST) for a Leo program.

Functions§

  • Helper function to normalize AST JSON into a form compatible with tgc. This function will traverse the original JSON value and produce a new one under the following rules:
  • Helper function to recursively filter keys from AST JSON