3 ms·
Pratt parsing (as described in https://matklad.github.io//2020/04/13/simple-but-powerful-pratt-parsing.html https://matklad.github.io//2020/04/13/simple-but-pow
by kryptiskt 4y ago
Pratt parsing (as described in https://matklad.github.io//2020/04/13/simple-but-powerful-pratt-parsing.html https://matklad.github.io//2020/04/13/simple-but-powerful-pr...), handles operator precedence and different operator types (prefix, infix, postfix and mixfix) in a very neat manner, and it's easy enough to stuff user-defined operators in there.