Sha256: 12037e3712c25e173392fd02e981e1d5c8634df939c83f945d950469aa2b0b85
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
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 < StandardError 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 # Pimarily used in the {Compiler}, if a scanner token appears that # should not be in the current state, this is raised. class InvalidStateError < Error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
antelope-0.0.1 | lib/antelope/ace/errors.rb |