Inspiration
A lot of official website for programming language have some "try it online" functionality, so I decided to do the same thing for my little language.
What it does
It launches the Embedded interpreter in the browser and we can input command in it.
How I built it
The EmbeddedML language is a C++ repository that I am working on. I compiled it into webassembly and wrote a frontend in ReasonML.
Challenges I ran into
The error message of reasonml, the Programming language I used to hack front-end, is not great. A lot of the times it only provides a "syntax error" message with a line number.
What I learned
I learned how to hook native application into web assembly. And I also learned a little bit of ReasonML.
What's next for Embedded ML
The Repl is still very primitive now. It does not have history, auto-completion, and a lot of other good functionalities. However, I will focus on the language implementation instead of the Repl frontend in the near future. I plan to add branching, scope and local values, and a standard library with persistent data structures soon.
Built With
- c++
- reasonml
- webasm
Log in or sign up for Devpost to join the conversation.