Douglas Crockford also has a good article on how to implement Pratt parsing in JavaScript:
https://crockford.com/javascript/tdop/tdop.html
I referenced it often when I implemented THT. (https://tht.help)
https://crockford.com/javascript/tdop/tdop.html
I referenced it often when I implemented THT. (https://tht.help)
Index of posts about expression parsing: http://www.oilshell.org/blog/2017/03/31.html