Created
May 13, 2014 11:58
-
-
Save amieres/5829c37fe6e0c48ae561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool Stopping = false; | |
bool P(rule R) { | |
if (Stopping) return false; | |
int StartingPosition = Position; | |
bool Result = R(); | |
if (!Result && StartingPosition != Position) | |
Stopping = true; | |
return Result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment