Strategy

halotukozak.alpaca.ErrorHandling$package.ErrorHandling.Strategy
enum Strategy

What to do with input that is not accepted: one character for the lexer, one lexeme for the parser.

Attributes

Source
ErrorHandling.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case SkipOne extends Strategy

Skips the one character or lexeme that is not accepted and goes on.

Skips the one character or lexeme that is not accepted and goes on.

Attributes

Source
ErrorHandling.scala
case SkipToNextMatch extends Strategy

Skips ahead to the next character the lexer can match, or the next lexeme the parser can accept, and goes on; one error covers everything skipped. If nothing further is accepted, it skips one character or stops at the end of the input.

Skips ahead to the next character the lexer can match, or the next lexeme the parser can accept, and goes on; one error covers everything skipped. If nothing further is accepted, it skips one character or stops at the end of the input.

Attributes

Source
ErrorHandling.scala
case Stop extends Strategy

Stops at the error; the failure has no recovered value.

Stops at the error; the failure has no recovered value.

Attributes

Source
ErrorHandling.scala