开发者

What does %prec '.' mean here in yacc?

开发者 https://www.devze.com 2023-02-17 01:47 出处:网络
notype_declarator: notype_declarator \'(\' parmlist_or_identifiers%prec \'.\' { $$ = build_nt (CALL_EXPR开发者_Python百科, $1, $3, NULL_TREE); }
notype_declarator:
      notype_declarator '(' parmlist_or_identifiers  %prec '.'
        { $$ = build_nt (CALL_EXPR开发者_Python百科, $1, $3, NULL_TREE); }

Anyone familiar with yacc rules?


It declares that the construct has the same precedence as the '.' operator, which have been specified earlier.


yacc program for showing error for 1) redeclaration of variable 2) Assignment expression error 3) operator missing

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号