Closed albertjan closed 3 years ago
left a few comments for you
addressed most of the comments 😄 few outstanding q's.
Lets think about how we can put this through it's paces
test result: ok. 559 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (23476ms)
test result: ok. 559 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (31930ms)
it appears we broke the ast tests at some point haha we didn't actually exit with an error code 😄
oh no so blissfully unaware
the dump function errors are escape characters for strings so we can just make that a separate pr fix
Alright it generates a SymbolTable for all of the run-tests, now the small matter of proving that is the correct symbol table 😬
Another good point if you're talking to Anvil about typescript. I wrote all of this without running it once. And I only had to change a few little things.
Why not do a call inside SEQ instead?
bind
is expensiveSEQ<T>(visitor: (node: T) => void, nodes: (T | null)[]) { assert(Array.isArray(nodes), "SEQ: nodes isn't array? got " + nodes.toString()); for (const node of nodes) { if (node) { visitor.call(this, node); } } }
thanks!
ls -1 run-tests/*.py | xargs -n1 vr symtable
if you want to see it in action
script hasn't been pushed yet...
@s-cork tests pass 😄
lgtm - merge this and then create new prs for whatever comes next?
Yeah sounds good to me.
@s-cork all the visit stuff is done now analyse remains