Sha256: a748ee6791b0eca533b3505966b535b2f90b35e1fbb18ddddfd369ef79bcaf84
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
module Antelope module Ace # Defines an error that can occur within the Ace module. All # errors that are raised within the Ace module are subclasses of # this. class Error < Antelope::Error end # Used primarily in the {Scanner}, this is raised when an input # is malformed. The message should contain a snippet of the input # which caused the error. class SyntaxError < Error 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 # Primarily used in the {Compiler}, if a scanner token appears # that should not be in the current state, this is raised. class InvalidStateError < 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
antelope-0.1.1 | lib/antelope/ace/errors.rb |
antelope-0.1.0 | lib/antelope/ace/errors.rb |