Skip to content
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

Rewrite REPL mode #27

Closed
MasonProtter opened this issue Aug 13, 2018 · 3 comments
Closed

Rewrite REPL mode #27

MasonProtter opened this issue Aug 13, 2018 · 3 comments
Labels
feature New feature or request

Comments

@MasonProtter
Copy link
Contributor

Something that should be thought about is creating a REPL mode for Rewrite so that one doesn't have to stick @term everywhere and to make certain other interfaces nicer. I have a framework for making such a mode here: https://github.com/MasonProtter/ReplMaker.jl so maybe I'll try my hand at cooking up at Rewrite repl mode.

@HarrisonGrodin HarrisonGrodin added the feature New feature or request label Aug 13, 2018
@HarrisonGrodin
Copy link
Owner

Having a custom REPL mode would be fantastic! I meant to add an issue for it. If you put together a PR, that'd be incredible.

A few features that we should probably include:

  • Normalization under the default rules (e.g. normalize(@term diff(sin(x), x)))
  • Normalization under a specific set of rules (e.g. normalize(@term(diff(sin(x), x)), :CALCULUS))
  • Normalization under a custom set of rules (e.g. normalize(@term(x + 0), @term RULES [x + 0 => x]))
  • Completion, given custom axioms and a reduction order

The first is the most important for the short-term, since set_context! could be used in the standard mode to deal with custom rules. The others would be nice to have at some point, but could be split into separate issues.

@MasonProtter
Copy link
Contributor Author

I'm putting together a basic REPL mode that covers the first point. We can talk strategy for the later points once I submit that.

@HarrisonGrodin
Copy link
Owner

Closing (see #42).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants