Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以对野牛中的多个规则执行相同的语义操作?
即我有类似的东西
exp: NUM { $$ = $1; } | exp exp { $$ = $1; }
是否有可能只写一个动作而侥幸?
像这样的东西可以工作:
list: exp { $$ = $1; } exp : NUM | exp exp