syntax
editSynopsis
Meziantou.Framework.Language.Tool syntax [options]Description
Dump the syntax tree of a CSS, INI, JSON, TOML, XML, regular expression, or shell document as JSON
Options
| Option | Description |
|---|---|
--input <input> | Path to the file to parse. If omitted, reads from stdin |
--output <output> | Path to the JSON file to write. If omitted, writes to stdout |
--language <language> | Language to parse the input as. If omitted, it is detected from the extension of --input, which is why it is required when reading from stdin. One of: css, ini, json, toml, xml, regex, regex-dotnet, regex-javascript, regex-pcre, regex-ere, regex-bre, sh, bash, zsh, powershell, pwsh, cmd |
--no-tokens | Omit the tokens of each node, and the trivia they carry |
--no-trivia | Omit the leading and trailing trivia of each token |
--no-text | Omit the source text of each node, token, and trivia |
--no-spans | Omit the source spans of each node, token, and trivia |
-?, -h, --help | Show help and usage information |