parinfer

eraserhd 2018-03-11T00:55:51.000057Z

haha. No, it's a logarithmic function. 1.5, then 1.25, then 1.125...

eraserhd 2018-03-11T00:57:34.000004Z

I ended up missing some, restructuring some things for rust, and I still have one function left. But it's only used for paren mode. And since I still haven't run any of the code, I'm now going to write a little driver and or port the test driver, so that I can see whether it works

eraserhd 2018-03-11T17:55:32.000108Z

All indent mode tests produce the correct output text. (Not checking tab stops or anything else yet.)

dominicm 2018-03-11T18:51:53.000010Z

This is really cool. @eraserhd do you have smart mode?

eraserhd 2018-03-11T19:23:21.000163Z

Not yet. As of right now, indent mode is finished and passing 100% of tests.

eraserhd 2018-03-11T19:23:26.000119Z

Now on to paren mode!

eraserhd 2018-03-11T19:24:06.000047Z

(Most of the code for that path has been done, just to make the tests work.)

eraserhd 2018-03-11T19:26:28.000152Z

I think I'm going to keep it non-idiomatic rust so that it can be kept in sync with the JavaScript.

eraserhd 2018-03-11T20:24:26.000053Z

Paren mode tests passing!