Token
data class Token(val id: Int, val kind: TokenKind, val channel: TokenChannel, val span: SourceSpan, val payload: TokenPayload? = null) : Representable
A lossless lexical token.
Raw spelling is obtained from span through the owning it.unibo.tuprolog.parser.sources.LexedSource. toRepresentation instead returns normalized content and is not a substitute for source extraction.
Constructors
Link copied to clipboard
constructor(id: Int, kind: TokenKind, channel: TokenChannel, span: SourceSpan, payload: TokenPayload? = null)