Does Elkhound ever run action routines on parses that are not part of a complete parse tree?
Yes, it does. The question of whether a given reduction can be part of a complete parse tree can, in general, only be answered by seeing all of the input. So the two choices are to reduce as you go, which is what Elkhound does, or to build a parse tree/forest and then run all reductions after parsing is complete. Elkhound does not do the latter because building a parse tree slows parsing by a large (~10) constant factor. In certain circumstances, Elkhound can determine that an action corresponds to a parse that is going to fail before processing of the current token is finished (see glr.cc, GLR::canMakeProgress()). In such cases, the action is preempted, but this is just a quick hack that can slightly improve performance.
Related Questions
- Does each player complete all seven phases in the action sequence before the next player starts his or her turn or do all players complete phase one before going to phase two?
- Why does my Health Risk Questionnaire Web site Action Plan state that I must complete the Questionnaire by September 16?
- Can we run automated programmes with the full version,i.e. Will the message boxes requesting user action disappear?