UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

12 lines (11 loc) 240 B
/** * An interface for a lexer. * * Takes source code and returns tokens * that represent each unit of data * in the source code. */ import { Token } from "../types/tokens/token"; export interface Lexer { scanTokens(): Token[]; }