Typescript all the parser things

This commit is contained in:
Thaum Rystra
2024-02-20 23:21:12 +02:00
parent 3ea492ee78
commit ac15512bc5
86 changed files with 926 additions and 718 deletions

View File

@@ -0,0 +1,7 @@
import factories from './parseTree';
import ParseNode from '/imports/parser/parseTree/ParseNode';
export default function toString(node: ParseNode) {
if (!node) return '';
return factories[node.parseType].toString(node as any, toString);
}