LR parsers can only perform semantic actions when the recognize a handle
(right-hand side). You can either split up the right-hand sides into
pieces so that the pieces end where you need the semantic actions, or you
can stick in epsilon productions whose only purpose is to cause semantic
actions.
--
Roy J. Mongiovi Systems Support Specialist Information Technology
Georgia Institute of Technology, Atlanta, Georgia 30332-0715
roy@prism.gatech.edu
--