4 ms·
Nowadays, you code your grammar directly in the source language, and your parser library generates a parser at compile time as part of the normal build cycle.
by ncmncm 4y ago
Nowadays, you code your grammar directly in the source language, and your parser library generates a parser at compile time as part of the normal build cycle.
Of course this works best in a language that supports operator overloading and compile-time operations.
In the old days, in C++, this would have been done with template metaprogramming, which cost various annoyances. Now no such workarounds are needed.