I need to write a simple parser to a sort of Domain Specific Language.
It needs to have basic arithmatics with proper operators evaluation order and a syntax to call functions of the underlying environment which can be overloaded.
What is the simplest way to write such a parser? Is there something I can adapt or use out of the box? I'm writing in C++.
Asked
Active
Viewed 8,650 times
12

shoosh
- 76,898
- 55
- 205
- 325
4 Answers
3
See MetaII parser technology. This tutorial walks you through everything:

Ira Baxter
- 93,541
- 22
- 172
- 341