3 ms·
There's more than a few ways to do it. Ohm [0] is a good place to start. It's a parser generator. If you can understand the math example [1], you can probabl
by arh68 8y ago
There's more than a few ways to do it.
Ohm [0] is a good place to start. It's a parser generator. If you can understand the math example [1], you can probably realize how things get built upwards. Then you can focus on what you want your language to do, how you'll interpret it, what problems it would express, &c.
[0] https://ohmlang.github.io/ https://ohmlang.github.io/
[1] https://github.com/harc/ohm/blob/master/examples/math/index.html https://github.com/harc/ohm/blob/master/examples/math/index....
Also consider reading about OMeta, if Ohm isn't your thing.