Home Reference Source Repository
import {EOFToken} from 'perplex/lib/token.js'
public class | source

EOFToken

Extends:

Token → EOFToken

Constructor Summary

Public Constructor
public

constructor(lexer: *)

Method Summary

Public Methods
public

Inherited Summary

From class Token
public

The string position where this match ends

public

Any RegExp groups that accrued during the match

public

lexer: Lexer<T>

The parent Lexer

public

The string that the lexer consumed to create this token

public

The string position where this match started

public

type: T

The token type

public
public

Returns the bounds of this token, each in {line, column} format

Public Constructors

public constructor(lexer: *) source

Constructs a token

Override:

Token#constructor

Params:

NameTypeAttributeDescription
lexer *

Public Methods

public isEof(): boolean source

Override:

Token#isEof

Return:

boolean