$$ vs return

25 views
Skip to first unread message

Peter Chen

unread,
Nov 25, 2012, 1:00:38 AM11/25/12
to uoft_csc...@googlegroups.com
expr : expr + expr { $$ = something 
                                return something;
                              }

what is the difference?

Peter Goodman

unread,
Nov 25, 2012, 10:00:55 AM11/25/12
to uoft_csc...@googlegroups.com

I suggest looking at the generated C file for the parser to see what each becomes.

Sent from my mobile device.

--
 
 
Reply all
Reply to author
Forward
0 new messages