tom_ast_model 0.1.2 copy "tom_ast_model: ^0.1.2" to clipboard
tom_ast_model: ^0.1.2 copied to clipboard

Serializable AST model for Dart source code. A complete, self-contained AST representation with JSON serialization — independent of the Dart analyzer and any interpreter runtime.

example/README.md

tom_ast_model examples → see the canonical sample homes #

tom_ast_model is a zero-dependency AST data model — a serializable mirror of the Dart analyzer's node hierarchy. It is infrastructure consumed by the interpreter and generator, not a runtime you write programs against, so it ships no sample programs of its own.

Runnable D4rt samples live in the three canonical sample homes (P2):

Canonical home Runtime What it demonstrates
tom_d4rt_flutter_test Source-based Flutter (analyzer) 37 multi-file D4rt Flutter Material sample apps, rendered live
tom_d4rt_flutter_ast_test Analyzer-free Flutter (AST bundles) 33 of those samples as pre-compiled AstBundle JSON
tom_d4rt_dcli DCli shell scripting File / directory / process / env / colour snippets + multi-file CLI apps

For the model's own API surface (constructing, serializing, and diffing SAstNode trees), see this package's README.md and test/.

0
likes
160
points
140
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Serializable AST model for Dart source code. A complete, self-contained AST representation with JSON serialization — independent of the Dart analyzer and any interpreter runtime.

Homepage
Repository (GitHub)
View/report issues

Topics

#ast #dart #serialization #interpreter

License

BSD-3-Clause (license)

More

Packages that depend on tom_ast_model