下面的表达式在 Yacc 中有效吗

Is the below expression valid in Yacc

在 Yacc(或 bison)中,下面的表达式在句法上是否有效?

sentence :  noun verb {
/* some action here which uses only  ,  */ 
} 
predicate {
/*some action which uses ,,, */ 
} 

是的,有效。

第一个动作是中规动作。它本身有一个语义值,将是 $3,所以第二个动作中的评论应该包括 $4(predicate 的值)。