Home Reference Source Test
import Token from 'botlang/src/Lexer/Token.js'
public class | source

Token

Lexer token representation.

Constructor Summary

Public Constructor
public

constructor(type: String, value: *)

Create a Token.

Method Summary

Public Methods
public

Return the token type

public

getValue(): *

Return the token value

Public Constructors

public constructor(type: String, value: *) source

Create a Token.

Params:

NameTypeAttributeDescription
type String
value *

Public Methods

public getType(): String source

Return the token type

Return:

String

public getValue(): * source

Return the token value

Return:

*