From: Eric S. Raymond Date: Tue, 2 Mar 2004 05:51:00 +0000 (+0000) Subject: Handle PAUSE NO. X-Git-Tag: 1.0~46 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=347890d69f45680305829c65ae103758d5134892;p=mad.git Handle PAUSE NO. --- diff --git a/mad b/mad index c577471..ac7e9a6 100755 --- a/mad +++ b/mad @@ -1180,6 +1180,8 @@ if __name__ == '__main__': source = source.replace("SET LIST TO", "SET_LIST_TO") source = source.replace("PRINT FORMAT", "PRINT_FORMAT") source = source.replace("READ FORMAT", "READ_FORMAT") + # Clean up one seriously ugly feature of the syntax. + source = re.sub(r"PAUSE\s*NO\.", "PAUSE", source) # Lex or parse if lexercise: lex.input(source)