The PEG grammar I wrote (using C++ and PEGTL) already distinguishes unary prefix...
πΊπ¦ haxadecimal π«π @brouhaha@mastodon.social
The PEG grammar I wrote (using C++ and PEGTL) already distinguishes unary prefix operators from binary operators, so I only need to implement operator precedence for a sequence of binary operators. I'm thinking about using a very simple precedence-climbing algorithm. The full algorithm (or TDOP/Pratt parsing) is more powerful, and not that much more complex, but I don't need it.
#CPlusPlus