# Walk a regular expression in fate-passing style # The fate is simply a list of all this is left to do # Fates only seem to arise when concatenation are considered # # Walk returns the boolean status of the beast, and a match_tree # containing the match information. # Also: the last position scanned and the remainder stream # MODIFICATION: walk returns a list of matches # (because we need to extract the longest match) # fun max [] sel => raise exception ERROR;