-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to use "fstar --indent" #84
Comments
I'd love to add that feature to fstar-mode :) And I'd be happy to look at a PR together. I think we can simplify the code a bit, too. |
I had originally considered If that feature is added into fstar sometime soon, then I'd be happy to write code to use that feature; alternatively, I will take another look at this code itself and make a PR soon. Thanks :) |
Let's fix that, then. F* should be more tolerant on what it accepts :)
That'll be inconvenient for anyone whose not using the IDE, and it might even be inconvenient for IDE users as well (the --ide interface is synchronous, so you wouldn't be able to indent a function while another one is verifying). I think the ideal interface on the F* side would be for --indent to read from stdin, write to stdout, and not complain when |
Sounds good and makes sense :) Having essentially a I'll look into the F* side for being more tolerant when I get some time (haven't looked into that side of F* before, but should be interesting nevertheless :)) |
Let me know if you need help with this :) |
I haven't had a chance to look at this yet. Sometime soon though. Thanks for pinging :) |
I have implemented some code that introduces the
C-c <tab>
keybinding that calls out tofstar --indent
for the region of code that the cursor is in (i.e., asubp
).It also exposes
fstar-indent-region
,fstar-indent-buffer
andfstar-indent-subp
as interactive commands that can be executed viaM-x
.I have not made this as a PR since I didn't want to mess with
fstar-mode.el
yet. If you believe that I should add this code intofstar-mode.el
and make a PR instead, please do let me know, and I will do so.fstar-indent.el
: https://gist.github.com/jaybosamiya/e8ffadf521803a96ee4f3c30a61ec67dThe text was updated successfully, but these errors were encountered: