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

[FEATURE REQUEST] Grammar for the "internal representation" and other tips and tricks for targetting RISE #239

Open
Mikolaj opened this issue Mar 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Mikolaj
Copy link

Mikolaj commented Mar 13, 2024

Hi! I'd like to translate expressions from https://github.com/Mikolaj/horde-ad to RISE, simplify them and translate them back.

  1. Is it a good idea to translate to a text representation of the "internal representation of the high-level program" from the https://rise-lang.org/doc/tutorial?
  2. If so, is there a grammar for the language, e.g., is Fig 3 and 4 from https://michel.steuwer.info/files/publications/2017/arXiv-2017.pdf close enough?
  3. Would you have any other tips and tricks for the translation?
  4. How to call a RISE parser and type-checker on the text of the translated code?
  5. For a start, is there a default optimization strategy I can use before I start writing my own?
  6. Is toExpr the right way to pretty-print an optimized program so that I can parse it back into my library?
  7. Any tips for running RISE just as a tool (without an IDE)?

Thank you in advance!

@Mikolaj Mikolaj added the enhancement New feature or request label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant