Looking at the tree
Sometimes it's usefull to look at the parsed syntax tree encapsulated from a running program. You can use a dotnet tool to view your ast right in your favourite terminal. You can install it with:
After installing the global dotnet tool, navigate to your directory where the dlls of the parser lives in the terminal. You can view the tree by executing 'silver-tree'
The tool looks for an assembly that contains a parser and parses the input given by the -s option. If the directory contains more than one assembly with more than one parser you can specify which parser type to use by specifying the -p option with the fullname of your parser type with namespace
Last updated