Language reference · section 35

35. Equivalence check

This file is the source of truth only while it matches the grammar and the compiler. Check the match with these commands:

cargo test --all                                   # the compiler tests
cargo build --release                              # rebuild the pin binary
pin <example.pin>                                  # every pin example in this file must compile
pin fmt --check <example.pin>                      # every pin example must already be formatted

A rule in this file that fails any check is a mismatch. Fix the file, the grammar, or the compiler so that they agree.