Hi
I've used lapg in two projects this year, one in C++ and one in CS, and found it to be brilliant. Thanks.
I found one problem with the CS template templ_cs, which is that
the auto-generated case statements didn't include a break statement.
I'd like to suggest an alternative CS template (attached), which takes advantage of the partial class feature of C#. This allows the auto generated code from lapg to be maintained in a separate file from the manually written components of the parsing class.
I've also changed the visibility of all the lapg generated code to be private. The parse function can then be exposed to whatever level is necessary by referencing it from another function in the class.
I built a version of lapg which had this template as another language (cs2), since it won't work with early version of C#.
Once again many thanks for such a handy tool.
Chris Crook
Alternative C# template