Skip to main content

Crate fluidattacks_blends

Crate fluidattacks_blends 

Source
Expand description

Blends imperative shell: language detection, tree-sitter parsing, AST-graph construction, and canonical-JSON serialization. It wraps the pure domain and is the crate published as fluidattacks-blends.

Re-exports§

pub use blends_domain as domain;

Structs§

Content
A source file’s bytes, decoded text, detected language and path.
ParseError
The grammar for the content’s language could not be loaded, or the parsed tree contains a syntax error.
SvgRenderError
Why rendering a graph to SVG failed: Graphviz is missing, failed, or the output could not be written. The message is ready to display as-is.

Enums§

Language
A source language this crate has a syntax-graph dispatcher for.

Traits§

LanguageExt
Shell-side operations on the domain Language enum: path detection and the tree-sitter grammar bindings domain cannot depend on (it is no_std).

Functions§

get_ast_graph
Parses content and walks the resulting tree into an AstGraph.
get_graphs_from_path
Parses the file at path and builds every graph layer it supports.
get_stack_graph
Builds syntax_graph’s stack graph, naming the file’s module by its path under root; None when the file is not under root.
get_syntax_graph
Builds ast_graph’s syntax graph and applies the CFG overlay.
parse
Parses content with the tree-sitter grammar of its language.
render_graph_set
Renders each present graph as <output_prefix>.ast.svg and <output_prefix>.syntax_graph.svg. Absent layers are skipped.