I have been looking at how user-supplied code can report “semantic errors” in the input. For example, when pacc.pacc sees a purported character class such as [z-a] we want to test that in s_range2() and report it as an invalid range, along with the location of the error. Read More...
Unfortunately I've been incredibly busy recently, first moving home yet again (hopefully stable for a little bit now) and then dealing with a family bereavement. However, that's largely dealt with now, and 2013 promises to be a fantastic year for pacc! Read More...
I just implemented → 5 to go with → n. I had thought to make the braces optional around any sequence of non-space characters, but the need to pick out identifiers makes that unappealing: essentially we'd have to duplicate CodeAndNames but without any rules that match space. Even if you're using Unicode arrows, it's only one more character to include the braces! Read More...
Thanks again to Richard Smith for pointing out that character escapes in classes don't work. Here's a new test case inspired by his bug report; it's slightly more realistic than many of our test cases: Read More...
I am delighted to report that Richard Smith has been using pacc, giving me useful feedback, and asking awkward questions (which is great!). Read More...
It says here to “complete” (meaning finish) support for void, but that's a bit optimistic: at the moment, void is just a funny spelling for int. One item that I think falls under this heading, and I've been planning for quite a while, is to ensure that all paths through a rule include exactly one expr for non-void rules, and exactly none for void rules. Read More...
Finally the last missing bit of UTF-8 support is added, to the pacc_coords() function. Read More...