diff options
author | Adrian Thurston <thurston@complang.org> | 2011-03-24 04:25:32 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2011-03-24 04:25:32 +0000 |
commit | fb5430c9c2cf2ad1570150316e969ab142288b58 (patch) | |
tree | 62095cd9abf26b59771ea7f3d4f3afd88689a15e /test/argv2.lm | |
parent | 6b6229980be2b0034b49eb66f00d62325e781882 (diff) | |
download | colm-fb5430c9c2cf2ad1570150316e969ab142288b58.tar.gz |
Test cases use pattern-style parameters and declarations. refs #241.
Diffstat (limited to 'test/argv2.lm')
-rw-r--r-- | test/argv2.lm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/argv2.lm b/test/argv2.lm index e0c68506..318a3f14 100644 --- a/test/argv2.lm +++ b/test/argv2.lm @@ -39,14 +39,14 @@ def args # The argument parser. Using an accumulator so we can send nulls after each # arg. accum arg_parser [args] -arg_parser ArgParser = +ArgParser: arg_parser = construct arg_parser [] # Parse the args and extract the result into Args. -argv_list ArgV = argv +ArgV: argv_list = argv for A: str in ArgV ArgParser << [A '\0'] -args Args = ArgParser.finish() +Args: args = ArgParser.finish() # Process the args. for Item: item in Args { |