Skip to content
0:00 / 0:00

#parsing#operatorprecedence#jai

Discussion with Casey Muratori about how easy precedence is...

Jonathan Blow

99K subscribers • 11 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Jonathan Blow, creator of Jai
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

111K views2 years ago2 recommendations

Programming languagesComputer scienceCompilers and interpretersAlgorithms

Jonathan Blow and Casey Muratori discuss a simple and intuitive approach to parsing binary operator precedence without complex traditional algorithms.

A discussion with Casey Muratori about how easy precedence is... -- Watch live at twitch.tv/j_blow

Why it's here

2 people recommend this

What people say. Recommended as an excellent and surprisingly simple explanation of how to approach binary operator precedence parsing.

Moments people linked to

u/KittenPowerLordin r/ProgrammingLanguages • Recommends

On “Best way to parse binary operations”

Jonathan Blow has an amazing video on this: link to this video It is kinda lengthy, but really helped me understand how to approach this problem, and the solution is surprisingly easy! I really recommend watching it

u/Artimuasin r/ProgrammingLanguages • Recommends

On “What is this parsing algorithm?”

I'm pretty sure Jonathan Blow did something similar for Jai Programming Language. I saw it in one of his streams. Not sure if it is the same thing, but I'll link it here: [video (It might be interesting to watch the entire video too!) He basically just generates a tree from the expression, and once the tree is constructed, he then modifies the tree according to operator precedence.
1View on Reddit

u/UltimatePeace05in r/Compilers • Mentions

Quick & dirty implementation of Jonathan Blow's binary operator precedence parsing algorithm I wrote this in odin-lang and I don't have time to rewrite it in C, but Odin seems quite similar to jai & go, so I'm sure whomever may want this can figure it out. pastebin link original showcase & explanation *You also get a FREE a visualization of the tree!*