8
notype_declarator:
      notype_declarator '(' parmlist_or_identifiers  %prec '.'
        { $$ = build_nt (CALL_EXPR, $1, $3, NULL_TREE); }

Anyone familiar with yacc rules?

assem
  • 3,023
  • 4
  • 20
  • 20

2 Answers2

10

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

cnexans
  • 975
  • 1
  • 7
  • 20
geekosaur
  • 59,309
  • 11
  • 123
  • 114
  • 2
    Which symbol do you refer to by `that construct`? – assem Mar 16 '11 at 19:19
  • 4
    The whole expression before the `%prec`, actually. It's telling `yacc` how to disambiguate that branch of the parse tree relative to other similar branches. – geekosaur Mar 16 '11 at 19:25
0

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