Package-level declarations

Types

Link copied to clipboard
class AmbiguousOperatorUseException(source: Source, operatorToken: Token, operatorText: String, val candidates: List<OperatorDefinition>, rulePath: List<String>) : PrologParsingException

Reports an occurrence for which several operator definitions remain applicable.

Link copied to clipboard
class InvalidEscapeException(source: Source, span: SourceSpan, offendingText: String, detail: String) : PrologLexingException

Reports an unsupported, incomplete, or out-of-range escape sequence in quoted text.

Link copied to clipboard

Indicates that an operator has an empty name or a priority outside the Prolog range.

Link copied to clipboard
class MalformedNumericLiteralException(source: Source, span: SourceSpan, offendingText: String, detail: String) : PrologLexingException

Reports a numeric spelling whose radix, digits, exponent, or character code is incomplete.

Link copied to clipboard
class MissingClauseTerminatorException(source: Source, token: Token, offendingText: String?, rulePath: List<String>) : PrologParsingException

Reports a clause that is not followed by a clause-terminating full stop.

Link copied to clipboard
class MissingOperatorOperandException(source: Source, operatorToken: Token, operatorText: String, val definition: OperatorDefinition, val side: String, rulePath: List<String>) : PrologParsingException

Reports a prefix, infix, or postfix operator occurrence without a required operand.

Link copied to clipboard
class NestingLimitExceededException(source: Source, token: Token, val maximumDepth: Int, rulePath: List<String>) : PrologParsingException
Link copied to clipboard
class OperatorPriorityException(source: Source, operatorToken: Token, operatorText: String, val definition: OperatorDefinition, val operandPriority: Int, val side: String, rulePath: List<String>) : PrologParsingException

Reports an operand whose priority violates its operator's x or y constraint.

Link copied to clipboard

Base class for failures encountered while lazily converting source characters into tokens.

Link copied to clipboard

Base class for failures encountered while constructing Prolog syntax from valid tokens.

Link copied to clipboard

Root of all typed lexical and grammatical diagnostics produced by parser-impl.

Link copied to clipboard

Wraps a failure thrown while obtaining the next synchronous or asynchronous source chunk.

Link copied to clipboard

Stable programmatic categories for PrologSyntaxException diagnostics.

Link copied to clipboard
data class SyntaxExpectation(val description: String)

A human-readable description of one token or construct that could have appeared at an error.

Link copied to clipboard
class TokenBufferLimitExceededException(source: Source, span: SourceSpan, val maximumRetainedTokens: Int) : PrologLexingException

Reports that an uncommitted parse item exceeded its configured token-buffer bound.

Link copied to clipboard

Reports a character that cannot begin any supported Prolog token.

Link copied to clipboard

Reports EOF where the active grammar rule still requires another construct.

Link copied to clipboard
class UnexpectedTokenException(source: Source, token: Token, offendingText: String, expected: Set<SyntaxExpectation>, rulePath: List<String>) : PrologParsingException

Reports a non-EOF token that is not accepted by the active grammar rule.

Link copied to clipboard

Reports a block comment that reaches EOF without a matching closing delimiter.

Link copied to clipboard

Reports a single- or double-quoted literal that reaches EOF without its closing quote.