UNPKG

mollu-lang-web

Version:
11 lines (10 loc) 688 B
import { info } from './error'; export declare type token_type = 'assign' | 'var_value' | 'add' | 'sub' | 'mul' | 'div' | 'positive_one' | 'positive_ten' | 'negative_one' | 'negative_ten' | 'jump_equal' | 'jump_less' | 'jump_greater' | 'define_label' | 'label' | 'input_number' | 'input_character' | 'output_number' | 'output_character' | 'line_comment' | 'block_comment_start' | 'block_comment_end' | 'line_feed' | 'unknown'; export declare type tokenlist = Array<token>; export declare class token { type: token_type; str: string; info: info; constructor(type: token_type, str: string, info: info); } export declare function tokenize(code: string): tokenlist;