From 347890d69f45680305829c65ae103758d5134892 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 2 Mar 2004 05:51:00 +0000 Subject: [PATCH] Handle PAUSE NO. --- mad | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.0