so, how do you solve operator precedence? do you encode it in the grammar? do you use Pratt parsing? hell no

@trickster How should they have used Pratt parsing? This was before Chris Pratt was even born!

@Dee a forbidden technique so powerful it was never used again

@halcy to be fair, this is a has a huge feature to complexity ratio, I'm guessing it doesn't correctly encode the power operator as right-associative

@operand introduction to compilers professors are FURIOUS. solve precedence with this ONE WEIRD TRICK

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!