Motoko grammar explanations?

The motoko sdk grammar doc was autogenerated with no explanation of the symbol meanings, so it’s not very helpful. Is there a guide that explains the grammar/syntax in more detail?

Maybe you are looking for this section? Language quick reference :: Internet Computer

1 Like

See the section that @nomeata points to for detailed explanations.

As for the notation used in the auto-generated grammar, it is pretty much standard BNF, with the only addition of optional phrases (...)?.

1 Like