bhai-lang-parser
Version:
Parser for bhai-lang
20 lines (18 loc) • 422 B
TypeScript
declare type ASTNode = {
type: string;
body?: ASTNode | ASTNode[];
expressions?: ASTNode[];
expression?: ASTNode;
operator?: string;
name?: string;
left?: ASTNode;
right?: ASTNode;
value?: string | number | null;
id?: ASTNode;
init?: ASTNode | null;
declarations?: ASTNode[];
test?: ASTNode;
consequent?: ASTNode;
alternates?: ASTNode[];
};
export { ASTNode };