When I run d8 --help there is indeed no --print-ast.
d8 --help
How can I print AST?
You need a debug build of d8 if you want to use --print-ast.
--print-ast