我刚刚读到了C ++ 11的语法,我得到了这个:
balanced-token-seq:
balanced-token opt
balanced-token-seq balanced-token
balanced-token:
( balanced-token-seq )
[ balanced-token-seq ]
{ balanced-token-seq }
any token other than a parenthesis, a bracket, or a brace
我花了几个小时的时间仍然无法弄清楚balance-token-seq的含义。如果有人给我帮助,我将不胜感激!
答案 0 :(得分:4)
一系列具有平衡括号的标记(即[
将具有匹配的]
等。)
[ ( a ) b { c } ] // a balanced token seq
[ { a x ( } ] // not a balanced token seq