I’m scheduled to give a talk called Writing an Arithmetic Parser in Elm on February 27th, but I’ve decided to throw in a plot twist and write the parser in Roc instead. :sweat_smile: My presentation will be a live webpage, and I’m wondering how difficult it would be to integrate the Roc REPL into that page. Specifically, I want to pre-feed it some context and then evaluate a few expressions. The pre-fed context would be different for each Roc REPL instance. Do you think that’s possible?
Also, I wanted to check if it would be okay to use the colors from your website in my presentation?
Hi @Kevin Hovsäter,
Sounds like an exciting project!
and I’m wondering how difficult it would be to integrate the Roc REPL into that page.
I think that's doable, if you grep the www folder in our repo for repl
you should get an idea of how things are hooked up. Also in case you didn't know, we have a standalone repl page at https://www.roc-lang.org/repl . That may be a good starting point for you.
I want to pre-feed it some context
The simplest way to do this may be through (vanilla) js, sending several roc expression through the text area after the page has loaded.
Also, I wanted to check if it would be okay to use the colors from your website in my presentation?
That should be fine
Thanks, @Anton. I’ll look into the www
folder and see what I come up with. :smile:
Last updated: Jul 06 2025 at 12:14 UTC