Skip to main content

Class: Lexer

@sapphire/lexure.Lexer

Constructors

constructor

new Lexer(options?): Lexer

Parameters

NameType
optionsOptions

Returns

Lexer

Defined in

lib/lexer/Lexer.ts:8

Properties

quotes

Readonly quotes: readonly [open: string, close: string][]

Defined in

lib/lexer/Lexer.ts:5


separator

Readonly separator: string

Defined in

lib/lexer/Lexer.ts:6

Methods

raw

raw(input): TokenStream

Parameters

NameType
inputstring

Returns

TokenStream

Defined in

lib/lexer/Lexer.ts:17


run

run(input): ParameterStream

Parameters

NameType
inputstring

Returns

ParameterStream

Defined in

lib/lexer/Lexer.ts:13