Hi! I'd like to translate expressions from https://github.com/Mikolaj/horde-ad to RISE, simplify them and translate them back.
- 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?
- 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?
- Would you have any other tips and tricks for the translation?
- How to call a RISE parser and type-checker on the text of the translated code?
- For a start, is there a default optimization strategy I can use before I start writing my own?
- Is toExpr the right way to pretty-print an optimized program so that I can parse it back into my library?
- Any tips for running RISE just as a tool (without an IDE)?
Thank you in advance!