Sha256: 2ebfc1572943cd226c5b1f9a3969725fc3d32b59ef818e2a7d0b076bf8068fb0

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

# encoding: utf-8

module Antelope
  # Every error in antelope inherits this error class.
  class Error < StandardError
  end

  # This is used primarily in the {Grammar}; if a rule references a
  # token (a nonterminal or a terminal) that was not previously
  # defined, this is raised.
  class UndefinedTokenError < Error
  end

  # Used primarily in the {Compiler}, this is raised when the
  # version requirement of the Ace file doesn't match the running
  # version of Ace.
  class IncompatibleVersionError < Error
  end

  # Primarily used in the {Grammar} (specifically
  # {Grammar::Generation}), if the grammar could not determine the
  # generator to use for the generation, it raises this.
  class NoTypeError < Error
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
antelope-0.3.2 lib/antelope/errors.rb
antelope-0.3.0 lib/antelope/errors.rb