Skip to main content

Module util

Module util 

Source

Structs§

ParseContext
Context for parsing, containing shared state passed through parser functions.

Enums§

TypecheckingContext

Functions§

get_documentation
Fetch Essence syntax documentation from Conjure’s docs/bits/ folder on GitHub.
get_expr_tree
Parse an expression fragment, allowing a dummy prefix for error recovery.
get_metavars
Get all meta-variable names in a node
get_tree
Parse the given source code into a syntax tree using tree-sitter.
named_children
Get the named children of a node
node_is_expression
query_toplevel
Get all top-level nodes that match the given predicate