This CLI is a lightweight wrapper around the ReScript prototype parser.
-
render <file>— render HTML to stdout -
validate <file>— validate (checked mode) and exit with status 2 on errors -
ast <file>— output JSON surface AST
-
--mode lax|checked(default: lax) -
--out <path>to write output to a file -
--concatto join output when multiple inputs are provided -
--stdinto read from stdin (equivalent to-) -
-h, --helpshow help
just cli render tests/vectors/module0-basic.a2ml
just cli validate tests/vectors/module0-basic.a2ml
just cli ast tests/vectors/module0-basic.a2ml --out /tmp/ast.json
cat tests/vectors/module0-basic.a2ml | just cli render - --stdin
just cli render tests/vectors/inline-edges.a2ml tests/vectors/inline-formatting.a2ml --concat