Lines Matching refs:follow
385 def match( type, follow )
393 return recover_from_mismatched_token( type, follow )
627 def recover_from_mismatched_token( type, follow )
636 if mismatch_is_missing_token?( follow )
637 inserted = missing_symbol( nil, type, follow )
645 def recover_from_mismatched_set( e, follow )
646 if mismatch_is_missing_token?( follow )
648 return missing_symbol( e, INVALID_TOKEN_TYPE, follow )
653 def recover_from_mismatched_element( e, follow )
654 follow.nil? and return false
655 if follow.include?( EOR_TOKEN_TYPE )
657 follow = ( follow | viable_tokens ) - Set[ EOR_TOKEN_TYPE ]
659 if follow.include?( @input.peek )
684 def missing_symbol( error, expected_token_type, follow )
692 def mismatch_is_missing_token?( follow )
693 follow.nil? and return false
694 if follow.include?( EOR_TOKEN_TYPE )
696 follow = follow | viable_tokens
698 follow.delete( EOR_TOKEN_TYPE ) unless @state.following.empty?
700 if follow.include?( @input.peek ) or follow.include?( EOR_TOKEN_TYPE )
1284 def missing_symbol( error, expected_type, follow )