NetsBlox-AST
For the time being, this crate is in active development and its API is highly unstable
NetsBlox is a block-based programming language (extended from Snap!) which provides access to advanced web and distributed computing capabilities such as accessing web APIs and sending messages between clients (e.g. to create multi-user programs). NetsBlox-AST is a rust crate that takes as input a NetsBlox project XML file and outputs a sanitized Abstract Syntax Tree, which is useful for code generation.
Development
This crate is intended to be used directly on some embedded platforms.
Thus, because the parser is recursive, we need to keep the stack size to an absolute minimum.
To do this, we use cargo-call-stack to check call stack usage.
For the time being, you should install from this fork.
You'll also need dot from graphviz.
To generate the call graph, run the following commands:
RUSTFLAGS="-C embed-bitcode"
|
Optionally you can generate a visual graph, but this is likely VERY cluttered: