Lexer

class Lexer(input: String)

Generates a list of tokens from the given input. This is usually the first step when parsing code.

Parameters

input

the string input to be tokenised

Constructors

Link copied to clipboard
fun Lexer(input: String)

Functions

Link copied to clipboard
fun generateTokens(): Array<Token>

Generate an Array of Token from the given input