Function leo_asg::load_ast [−][src]
pub fn load_ast<T: AsRef<Path>, Y: AsRef<str>>(
path: T,
content: Y
) -> Result<Program, AsgConvertError>
The abstract semantic graph (ASG) for a Leo program.
The [Asg
] type represents a Leo program as a series of recursive data types.
These data types form a graph that begins from a Program
type node.
A new [Asg
] can be created from an [Ast
] generated in the ast
module.