Just about the last thing left on the list. Of course, for the most part pacc already supports UTF-8: its own grammar uses characters like ← and ε with no problems. So long as they occur in literal strings, they work just fine (and on the assumption that all the world's UTF-8). Read More...
Just a few blockers left to knock down. Completing the command-line interface is one of them. I think we need the following additions. Read More...
There's a near-OO interface in pacc.tmpl, but it's currently actually hidden from the user with names that start _pacc_. The wrapper function parse() is all right, but we need to offer more control, and perhaps a variety of different wrappers. Read More...
So I think the cook() function, that produces the secondary grammar, is pretty much there. Now comes the tricky part. Somehow, I have to arrange for these two grammars to co-exist in a single file (shouldn't be too hard; that was part of the point of the _pacc object), with different boilerplate that calls each of them... Read More...
So, it's time I tackled feeding. This is, I believe, a unique feature of pacc, and makes it possible to use packrat parsing on the command line. I'm a bit hesitant to dive into this one: I had a proof-of-concept for peg / leg a couple of years ago, but I actually don't have that to hand at the moment. The concept isn't a tricky one. But the details will inevitably be tedious. Read More...
So the next "blocker" I want to tackle on the list is to tidy up the union so it contains only one instance of each type--it would be nice to support void at this point, but we'll see. Read More...
So what about implementing #line directives? First thing is that we need to get line numbers into the AST. And I'm afraid to say that I really suspect the easiest (and possibly best) way to do this is to make an expr node hold a value like 6:"yes" which will eventually turn into: Read More...