This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom class for errorcodes | |
class ERR | |
def self.ERR; -1 end | |
def self.OK; 0 end | |
def self.EXIT; 1 end | |
def self.UNKNOWN; 2 end | |
def self.EMPTY_STACK; 3 end | |
def self.get x | |
case x |