ParserState

class ParserState

ParserState instances are immutable and keep track of a current lexingState and clientDataMap during parsing.

Author

Mark van Gulik

Parameters

lexingState

The LexingState at this parse position.

clientDataMap

The map of data used by macros while parsing Avail code.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val atEnd: Boolean

true if this state represents the end of the file, false otherwise.

Link copied to clipboard
val clientDataMap: A_Map

A map of interesting information used by the compiler.

Link copied to clipboard
val lexingState: LexingState

The state of the lexer at this parse position.

Link copied to clipboard
val lineNumber: Int

The one-based line number.

Link copied to clipboard
val position: Int

The one-based index into the source.