Chapter 5
Grammar
This chapter presents the complete grammar of the Scaly programming language in a formal notation. Each production defines a syntactic construct, with nonterminals linking to their definitions.
Notation:
identifier, literal — terminal symbols from the lexer
'keyword'— keyword terminalsX | Y— alternativesX?— optionalX+— one or moreX*— zero or more