Learning a programming language in the grammar-point of view helps you to achieve it faster.
This is No's grammar — the rules of the language and the guide of parser implementing. Completely knew it, you can learn any scripting language in the world easily.
We are presenting in pseudo code like regex.
Program
program := (decl | stmt)*
A program or a single file contains multiple declarations and statements.
Declarations
A declaration always starts with a keyword: use, class, func, or var.