Feb. 20th, 2017 [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Mon 2017-02-20 20:09
My language design is bad and I should feel bad

Over the weekend, I realised, extremely belatedly, that the expression language I designed for my free-software project spigot has a grammar bug. Specifically, it's a context-dependency analogous to the C typedef bug: the same expression can parse differently depending on whether a given identifier is currently defined to be a function or a variable, which means that you need to do your scope analysis in sync with the parse, so that you can know what set of definitions is currently in scope for the subexpression you're currently looking at.

confessions, lamentations, and parser theory )
[xpost |http://simont.livejournal.com/244254.html]

Link7 comments | Reply
navigation
[ viewing | February 20th, 2017 ]
[ go | Previous Day|Next Day ]