[Mono-list] Using the mono jay parser
Sun, 10 Oct 2004 13:04:24 -0400
At 05:06 PM 10/10/2004 +0200, Francis Bosnan Blasquez wrote:
>El dom, 10-10-2004 a las 15:02, Rodrigo B. de Oliveira escribi=81E
>> I assume you have already considered antlr  ?
>No, I didn't heard anything about antlr before. I've been seen its
>project web page and I'm ashamed about not know anything about antlr
>> I've been using it for years and it works amazingly well.
>Great, I need some time to read about antlr. Let's see how it works.
Just thought I'd let you know that over August-September this year, I
ported the latest version of Java CUP to C#. Both the tool and its output
are now C# code. I have successfully used it to make a parser for a
superset of C# with some extensions (I'm writing a translating compiler).
The latest version of my code is at the following URL:
I extended the code to give a sequence of tokens leading up to conflicts,
which greatly aids debugging. However, there seems to be a bug in the code
I wrote which computes this sequence; sometimes, it doesn't make sense (but
the conflict is still real! :-). The rest of the GUI works fine, though.
This code is particularly nice because it emits C# '#line' directives;
thus, you can, at least with VS.NET, place breakpoints right inside the
grammar specification file.
If you want a scanner, I have also ported JFLex; it is available at the
Good luck with your project :-)