cue exp ast print
CUE v0.19.0
print CUE syntax trees
Usage
cue exp ast print [flags] [inputs]print writes multi-line Go-like representations of CUE syntax trees.
Arguments are loaded as packages; see 'cue help inputs'. Use --files to parse each argument as a single file instead, where "-" reads from stdin. In this mode, a file with syntax errors still has its partial syntax tree printed.
Flags
--files treat arguments as literal files; do not try to load as package
--language-version string fallback language version for input outside a module (for example, v0.17.0)
--omitempty omit empty strings, empty structs, empty lists, nil pointers, invalid positions, and missing tokens
--pos print position info for all nodes
--refs print node references for Node fieldsGlobal flags
-E, --all-errors print all available errors
-C, --chdir string change working directory before running command (must be the first flag)
-i, --ignore proceed in the presence of errors