6 ms·
I find myself wanting to edit the textual version of the AST itself, as the tree interface seems too cryptic edit: I'm guessing its probably a bug that is conf
by RubyPinch 10y ago
I find myself wanting to edit the textual version of the AST itself, as the tree interface seems too cryptic
edit: I'm guessing its probably a bug that is confusing me the most, as I'm getting both a inline tree and a indented tree at the same time for a node
- jiyinyiyong 10y agoAuthor here. Try http://text.cirru.org http://text.cirru.org see if it fits your mind. I guess people always hate news things that breaking others. Me too....
- RubyPinch 10y agoThat does feel a lot clearer I guess my main thing is I don't know if I should trust my understanding of the tree display or not Perhaps, as a sort-of training assistant, have the resulting "code" optionally appear beside the editor? e.g. https://i.imgur.com/92stVmi.png https://i.imgur.com/92stVmi.png (I also noticed that you are looking for TCO for python, In some cases Coconut can do TCO, and can compile to python, but its somewhat of an unweildly tool to use http://coconut.readthedocs.io/en/v1.2.2/DOCS.html#function-definition http://coconut.readthedocs.io/en/v1.2.2/DOCS.html#function-d... )
- jiyinyiyong 10y agoI agree. I'm just too lazy to add that. Actually on http://cirru.org/ http://cirru.org/ there's a button named "Show me data". By clicking at the button you get the data in vectors, which is almost the thing you shown in the png. Personally I'm already familiar enough to read AST from the UI with nothing like assistant. I think reading by a JavaScript programmer, TCO is "Tail Call Optimization".