Need an example for how Go syntax for assignment operator uses the grammar rules specified using EBNF
如文档中所述,Go 中的语法是使用扩展巴科斯-瑙尔格式 (EBNF) 指定的:
1 2 3 4 5 6 7 | Production = production_name"=" [ Expression ]"." . Expression = Alternative {"|" Alternative } . Alternative = Term { Term } . Term = production_name | token ["a€|" token ] | Group | Option | Repetition . Group ="(" Expression")" . Option ="[" Expression"]" . Repetition ="{" Expression"}" . |
我试图了解 Go 语法语法是如何定义的,如何使用这些语法规则分解/推导/理解表达式
表达式
1 | IncDecStmt = Expression ("++" |"--" ) . |
这里,