4 ms·
Loving it! It's so nice to see this kind of things around :)
by coppolaemilio 12y ago
Loving it! It's so nice to see this kind of things around :)
- ravi_thakare 12y agoYou can also check out http://javascript.crockford.com/tdop/tdop.html http://javascript.crockford.com/tdop/tdop.html The article is also in the book Beautiful Code (O'Reilly)
- breuleux 12y agoIndeed, that is a very good article. I highly recommend it. TDOP is the combination of recursive descent and Floyd's operator precedence grammars, the latter of which is the technique I used (I find it sufficient for my needs).
- barbudorojo 12y agoTDOP of Vaughan Pratt is also used in maxima (that is the way they use an infix language similar to python as a frontend to Lisp. In maxima you can define easily infix, prefix and postfix operator with a left and right binding force for your grammar. I couldn't find with grep the file I was looking for in the maxima source, but for examen Fateman paper "Syntax Extension as a Tool for Application Programming" is a good reference.