@syntaxs/compiler
Version:
Compiler used to compile Syntax Script projects.
20 lines • 634 B
TypeScript
import { Token } from './types.js';
/**
* Tokenizes a .syx file.
* @param {string} source Source string.
* @returns A list of tokens generated from source string.
* @author efekos
* @version 1.0.9
* @since 0.0.2-alpha
*/
export declare function tokenizeSyx(source: string): Token[];
/**
* Tokenizes a .sys file. Stops when the file end marker (:::) is encountered.
* @param {string} source Source string.
* @returns A list of tokens generated from the source file.
* @author efekos
* @version 1.0.6
* @since 0.0.2-alpha
*/
export declare function tokenizeSys(source: string): Token[];
//# sourceMappingURL=lexer.d.ts.map