HQ9+-

From Esolang
Jump to navigation Jump to search

An extension of HQ9++ with the - operator added for debugging purposes, by Melikamp.

- behaves differently based on what character(s) it follows:

  • start of file: syntax error
  • H: I/O error
  • Q: infinite recurse
  • 9: infinite loop
  • -: decrement the accumulator
  • + by itself: 1/0
  • ++: virtual exception ("which itself is a method of an object of a new subclass of the generic superclass. In line with the best data-hiding principles, there is no way to intercept this exception.")

See also

External resources