peelonet/tempearly — pull request #86 by RauliL (2014-11-19 16:04:02+00:00)
Title: Throw statement.

1. Add support for `throw` statement which can be used to throw
exceptions. Not very useful until we have a `try` exception which can
catch them.

`throw` statement can be used to throw new exceptions or previouly
caught exceptions. Only objects which are instance of `Exception`
class can be thrown, otherwise an `TypeError` is thrown.
2. Add support for `Interpreter` class to track caught exceptions,
alongside with uncaught exceptions. Required for `throw` statement.
3. Fix minor yet annoying bugs where the number of required arguments
was not properly converted to string in error messages.