Command interpreter can take an address by itself

This commit is contained in:
Corey Johnson
2012-03-21 17:36:43 -07:00
parent a2156e39c0
commit 38debc8107
2 changed files with 7 additions and 2 deletions

View File

@@ -4,10 +4,10 @@
}
start
= address:address? _ command:substitution {
= address:address? _ command:substitution? {
var operations = [];
if (address) operations.push(address);
operations.push(command);
if (command) operations.push(command);
return operations;
}