Can I join the "new version of <peg parser generator>" party? :-)
A few days ago I released pacc-0.2 which is by far the best version yet, with new features and several significant bug fixes since the previous release, as well as improved documentation. Pacc is a parser generator. It reads a PEG grammar written in a carefully designed dialect based on Ford's pappy. It writes a packrat parser in C. One unique (I believe) feature of pacc is that it supports interactive use. There is a flag which causes pacc to write two parsers: the usual one which evaluates complete valid sentences of the target language, and a second parser which recognises (but does not evaluate) prefixes of sentences. It is easy to combine these two parsers with a wrapper program that can read a line from the user, and if necessary prompt for further input. Here's a sample session with the trivial pacc-built calculator described by this grammar[1]. Each complete input is terminated with "=". The initial prompt is "$ ", and the continuation prompt is "> ". $ 5 + 4 = 9 $ 5 + > 4 = 9 $ 5 + + 1:5: expected Sum $ Pacc's website is http://paccrat.org/ Pacc is also on github at https://github.com/TobyGoodwin/pacc I will be delighted to answer any questions you may have by private email, or on github, or here on the list if they are of wider interest to the PEG community. Toby. [1] https://github.com/TobyGoodwin/pacc/blob/master/test/icalc/icalc.pacc _______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg