bat2js
Version:
Batch to JavaScript compiler
18 lines (17 loc) • 596 B
TypeScript
export type token = {
type: string;
value: string;
argument: string;
};
export declare class tokenType {
static readonly COMMENT = "COMMENT";
static readonly COMMAND = "COMMAND";
static readonly STRING = "STRING";
static readonly VARIABLE = "VARIABLE";
static readonly NUMBER = "NUMBER";
static readonly SETVAR = "SETVAR";
}
export declare function tokenize(contents: string): token[];
export declare function tokens_to_javascript(tokens: token[], filePath: string): string;
export declare function isPercentVariable(str: string): boolean;