我想分析与@
后跟任意数量的字的array name
和simple variable
而不@
再次后跟任意数量的单词:删除移/减少警告
阵列名称例如:@people
简单变量名称:person
示例文件,我需要解析:
@people name1 name2
person name3 name4
我做了如下规则:
list of record :
line list_of_record
{}
|
line
{};
line
:
AT_SYMBOL string string_list
{}
|
string string_list
{}
;
string_list:
string string_list
{}
|
string
{}
;
//here string is any string
但我正在逐渐shift/reduce
的警告。可有人请提出某种办法让我可以删除这些警告。
这只是太多的标签。选一个。 –