Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Snapshots

Since all AST nodes implement the Debug trait, it is very easy to take snapshots of them.

Therefore, you can use any snapshot testing library such as insta or expect_test.

Note

Since Some errors during parsing might be silent, it is recommended to have an utility fn/macro to create a Database and use get_ast with an accumulator to check for errors.