I'm a bit confused about Go's grammar. I thought I read somewhere that Go could be parsed by a CFG.
But when I looked into it just now, the introduction to the language spec [1] says "The grammar is compact and regular ...". But how can the grammar be regular? According to Wikipedia "regular grammars" describe languages that can be expressed using regular expressions. [2][3] Wouldn't matching parenthesis and braces require at least a context free language instead of regular?
[1] http://golang.org/ref/spec#Introduction