浏览代码

List_addLast correction

master
Nathan R 3 年前
父节点
当前提交
98d4b84778
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      ccmeta.leg

+ 5
- 5
ccmeta.leg 查看文件

@ -1005,7 +1005,7 @@ oop listEnd(void)
return list;
}
oop List_addLast(oop list, oop obj) {
void List_addLast(oop list, oop obj) {
assert(list);
map_append(list, obj);
}
@ -1317,9 +1317,9 @@ declaration = @{ C_declarationBegin() }
declarationSpecifiers = @{ int specified= 0 } { listBegin() }
( s:storageClassSpecifier { listAppend(s) }
| s:typeSpecifier @{ specified++ } { listAppend(s) }
#| | s:typedefName &{ !specified++ } { listAppend(s) }
#| | s:typeQualifier { listAppend(s) }
#| | s:functionSpecifier { listAppend(s) }
| s:typedefName &{ !specified++ } { listAppend(s) }
| s:typeQualifier { listAppend(s) }
| s:functionSpecifier { listAppend(s) }
)+ { $$= listEnd() }
| &{gnu} { $$= listEmpty() }
@ -1623,7 +1623,7 @@ externalDeclaration = { yylval = newComment(yytext); }
| ( SEMI &{gnu}
| c:constant { yylval = c; } #################| TODO
| declaration
#| | functionDefinition
| functionDefinition
#| | meta
| &. &{ errmsg= "declaration expected" } error
) { yylval= $$; }

正在加载...
取消
保存