Amelia allows replacing the built-in commands with method calls returning CommandDescriptor objects. However, it is not totally integrated with the language. A good option for more command-like extensibility would be allowing the user to define its own commands. It wouldn't be much difference with regard to the current implementation, although a new kind of statement or type declaration should be introduced. For instance:
Also a good thing would be to remove the need for using quotes to specify command arguments, although that can be difficult to validate (because of grammar ambiguities).
Amelia allows replacing the built-in commands with method calls returning
CommandDescriptor
objects. However, it is not totally integrated with the language. A good option for more command-like extensibility would be allowing the user to define its own commands. It wouldn't be much difference with regard to the current implementation, although a new kind of statement or type declaration should be introduced. For instance:Also a good thing would be to remove the need for using quotes to specify command arguments, although that can be difficult to validate (because of grammar ambiguities).