Sha256: d129fe2da30927446c3c9f24f698b712e992b7dcfcb7a62cb8cec71ae450036e

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

# ErrorMessages module contains different error messages
module ErrorMessages
  def unbalanced_brackets_error
    'error signaled: unbalanced brackets'
  end

  def unbalanced_quotes_error
    'error signaled: unbalanced quotes'
  end

  def arg_err_build(exp, got)
    'Incorrect number of arguments, expected ' + exp.to_s + ' got ' + got.to_s
  end
end

class SchemeException < RuntimeError
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lisp-interpreter-0.3.5 lib/lisp/interpreter/errors.rb
lisp-interpreter-0.3.4 lib/lisp/interpreter/errors.rb
lisp-interpreter-0.3.3 lib/lisp/interpreter/errors.rb
lisp-interpreter-0.3.2 lib/lisp/interpreter/errors.rb