Farkle


CharStreamErrorReportingExtensions Type

Extension methods to the CharStream type that have to do with error reporting.

Static members

Static member Description

CharStreamErrorReportingExtensions.FailAtOffset(stream, offset, message)

Full Usage: CharStreamErrorReportingExtensions.FailAtOffset(stream, offset, message)

Parameters:
    stream : CharStream - The CharStream to work with.
    offset : int - The offset from the character stream's current position to the point the error will be reported.
    message : string - The exception's message

Throws a ParserApplicationException at offset characters after stream's current position.

stream : CharStream

The CharStream to work with.

offset : int

The offset from the character stream's current position to the point the error will be reported.

message : string

The exception's message