Language reference · section 34
34. Changing the language
Every change to the language does all of these in one change:
- Update the grammar in
crates/pin-compiler/src/grammar.lalrpopwhen the syntax changes. - Update the grammar in section 5 to match.
- Update the scenario for each changed rule in this file.
- Add or change a test in
crates/pin-compiler/testsfor each changed rule. - Check the design test in section 1.
- Use the terms in section 2. Add a term to section 2 when a new idea needs one.
- Check the writing rules in section 3.
- Update section 31 when a reserved word is added. A new reserved word breaks code that uses the word as a name. Record that break in the CHANGELOG.