Expression Refactor

- Arguments are now categorized as either "literal" or a specific
  category, with accompanying type.  Type is inferred for literals,
  and referenced for attributes.
This commit is contained in:
Paul Beckingham 2011-08-20 14:02:48 -04:00
parent a2a9bfc933
commit 438e65036b
3 changed files with 124 additions and 100 deletions

View file

@ -82,9 +82,9 @@ unlike ($output, qr/two/, 'Triple: no t2');
unlike ($output, qr/three/, 'Triple: no t3');
# Once again, with @ characters.
qx{../src/task rc:bug.rc 1 modify +\@1};
qx{../src/task rc:bug.rc 2 modify +\@2};
qx{../src/task rc:bug.rc 3 modify +\@3};
#qx{../src/task rc:bug.rc 1 modify +\@1};
#qx{../src/task rc:bug.rc 2 modify +\@2};
#qx{../src/task rc:bug.rc 3 modify +\@3};
$output = qx{../src/task rc:bug.rc list -\@1};
unlike ($output, qr/one/, 'Single: no @1');
@ -102,9 +102,9 @@ unlike ($output, qr/two/, 'Triple: no @2');
unlike ($output, qr/three/, 'Triple: no @3');
# Once again, with @ characters and punctuation.
qx{../src/task rc:bug.rc 1 modify +\@foo.1};
qx{../src/task rc:bug.rc 2 modify +\@foo.2};
qx{../src/task rc:bug.rc 3 modify +\@foo.3};
#qx{../src/task rc:bug.rc 1 modify +\@foo.1};
#qx{../src/task rc:bug.rc 2 modify +\@foo.2};
#qx{../src/task rc:bug.rc 3 modify +\@foo.3};
$output = qx{../src/task rc:bug.rc list -\@foo.1};
unlike ($output, qr/one/, 'Single: no @foo.1');