[il-antlr-interest: 24023] Re: [antlr-interest] ocaml target?

2009-06-03 Thread Peter C. Chapin
On Tue, 2 Jun 2009, Sam Harwell wrote: > I pondered the idea of an F# target a while back, but I quickly realized > I was in over my head. For academic reasons I'd be very interested in > the result if you do build an ocaml target. :) I wonder if F# could use an OCaml target. I imagine with a l

[il-antlr-interest: 23786] Re: [antlr-interest] cast problem with C runtime

2009-05-19 Thread Peter C. Chapin
On Tue, 19 May 2009, Dragos Tarcatu wrote: > I'm using antlr-3.1.3 with the C runtime (libantlr3c-3.1.3). I'm > compiling the generated antlr code for my parser using g++. The thing is > that for a rule like: > > I'm getting a void* conversion error in the generated code: > > SVParser.c:1895: er

[il-antlr-interest: 22998] Re: [antlr-interest] How to throw an exception for all parsing errors?

2009-04-03 Thread Peter C. Chapin
On Fri, 3 Apr 2009, Paul Bouché wrote: > Seems like you forgot to override a method. If you want an exception > upon first error you must make sure that the recovery mechanism does not > start. In ANTLR v3.1.x the mismatch() method was renamed to > recoverFromMismatchedToken() - imo that should

[il-antlr-interest: 22986] Re: [antlr-interest] How to throw an exception for all parsing errors?

2009-04-03 Thread Peter C. Chapin
On Fri, 3 Apr 2009, Johannes Luber wrote: > This seems to be a bug in ANTLR as such behavior doesn't fit my > expectations, too. But it seems to be more likely that this is a general > target bug and not specific to the C# target. Without the grammar in > question neither Ter nor me can be sure.

[il-antlr-interest: 22973] [antlr-interest] How to throw an exception for all parsing errors?

2009-04-02 Thread Peter C. Chapin
Hello! I'm working with the C# target. I'm writing test cases for my parser. I try to parse a collection of input files to verify that they all parse as expected (later I'll probably also verify that erronous input fails to parse, but that's for another day). I'm trying to use NUnit to manage th

[il-antlr-interest: 22803] Re: [antlr-interest] ANTLR website vs Firefox

2009-03-27 Thread Peter C. Chapin
On Wed, 25 Mar 2009, Pedro Assis @ City of Porto wrote: > Firefox 3.0.7 & www.antlr.org works fine for me (windows and linux boxes). The problem seems to be local to my machine. However, for some reason it only affects Firefox and Chrome, but not IE. Anyway, it does not seem to be a matter for

[il-antlr-interest: 22747] Re: [antlr-interest] ANTLR website vs Firefox

2009-03-25 Thread Peter C. Chapin
On Wed, 25 Mar 2009, Jim Idle wrote: > Peter C. Chapin wrote: > > I've noticed that, for some reason, the ANTRL web site seems to misbehave > > in my Firefox (v3.0.7). Specifically many of the images don't download (I > > get "Waiting for www.antlr.org"

[il-antlr-interest: 22734] [antlr-interest] ANTLR website vs Firefox

2009-03-25 Thread Peter C. Chapin
I've noticed that, for some reason, the ANTRL web site seems to misbehave in my Firefox (v3.0.7). Specifically many of the images don't download (I get "Waiting for www.antlr.org" indefinitely) and I've also had similar problems downloading some files. When this occurs, I load the same pages in I

[il-antlr-interest: 22732] [antlr-interest] Ada 2005 grammar?

2009-03-25 Thread Peter C. Chapin
I see that there is an Ada 95 grammar by Oliver Kellog on the ANTLR web site. I'm wondering if anyone happens to know of an Ada 2005 ANTLR grammar that would be legally unencumbered enough for me to use in a research project. I'm considering a few extensions to the Ada language and my goal is to

[il-antlr-interest: 22582] Re: [antlr-interest] Case insensitive reserved words.

2009-03-20 Thread Peter C. Chapin
On Fri, 20 Mar 2009, Sam Harwell wrote: > Performance will suffer in a big way. Use a class like the following for > your input... Thanks... performance is a good reason to do things the "right" way. Peter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.ant

[il-antlr-interest: 22577] [antlr-interest] Case insensitive reserved words.

2009-03-20 Thread Peter C. Chapin
Hi again... My new project entails building a parser for a language with case insensitive reserved words. I see the page here: http://www.antlr.org/wiki/pages/viewpage.action?pageId=1782 describing how to write a custom look-ahead to deal with this. However, David Haubenstricker commented on t

[il-antlr-interest: 22576] Re: [antlr-interest] C# runtime for ANTLR 3.1.3

2009-03-20 Thread Peter C. Chapin
On Fri, 20 Mar 2009, Sam Harwell wrote: > You should compile the CSharp runtime in Visual Studio 2005 or 2008. > That's the one used by the CSharp2 target. The "target" refers to what > you put in the grammar's options section - if you use CSharp2 then the > generated code will make use of some

[il-antlr-interest: 22571] [antlr-interest] C# runtime for ANTLR 3.1.3

2009-03-20 Thread Peter C. Chapin
I see that ANTLR 3.1.3 is available on the web site. I'm about to start a new ANTLR project so I figured I might as well start with the latest version. My project is in C#, however I notice that there is no C# runtime posted (yet) for 3.1.3. "No problem," I thought, "I'll compile from source." I

[il-antlr-interest: 21280] Re: [antlr-interest] Passing user defined exceptions through theparser.

2009-01-14 Thread Peter C. Chapin
keep my eye on it. Peter > -Original Message- > From: antlr-interest-boun...@antlr.org > [mailto:antlr-interest-boun...@antlr.org] On Behalf Of Sam Harwell > Sent: Tuesday, January 13, 2009 10:06 AM > To: Peter C. Chapin > Cc: antlr-interest > Subject: Re: [antlr-int

[il-antlr-interest: 21253] Re: [antlr-interest] Passing user defined exceptions through the parser.

2009-01-13 Thread Peter C. Chapin
Laurent Caillette wrote: > This should work if you make OperationCanceledException a subclass of > RecognitionException, which is a checked exception thrown by parser's > methods. Then the catch clause does its job. > Okay, thanks. That's a little unsatisfying because the exception in questio

[il-antlr-interest: 21239] Re: [antlr-interest] Passing user defined exceptions through the parser.

2009-01-12 Thread Peter C. Chapin
Sam Harwell wrote: > Here's what I do. This is with the C# target so there are probably a few > differences, but you'll get the idea. > > try > { > MyLexer lexer = new MyLexer( new ANTLRStringStream( text ) ); > CommonTokenStream tokens = new CommonTokenStream( lexer ); > MyParser par

[il-antlr-interest: 21224] [antlr-interest] Passing user defined exceptions through the parser.

2009-01-11 Thread Peter C. Chapin
Hello! I'm fairly new to ANTLR so forgive me if this seems like a simple question. I'm using ANTLR to generate a Java parser. I would like to raise an exception of my own inside a method called as part of a rule action. In particular, if I discover that the input contains a language feature I'm n

[il-antlr-interest: 19817] Re: [antlr-interest] ANTLRworks 1.2.1?

2008-10-03 Thread Peter C. Chapin
Randall R Schulz wrote: > The links on the main ANTLR download page have not been updated, yet. > > Terence posted the link to the page with the ANTLRWorks 1.2.1 download: > > > Great! Thanks. Peter List: http://www.antlr.org:8080/mailman/listinf

[il-antlr-interest: 19815] [antlr-interest] ANTLRworks 1.2.1?

2008-10-03 Thread Peter C. Chapin
I saw in a recent message that ANTLRworks 1.2.1 was out (incorporating ANTLR 3.1.1). However, I don't see it on the web site. Am I just missing it or has the web site perhaps not yet been updated? In any case... what was that download URL again? :-) Peter List: http://www.antlr.org:8080/mailman

[il-antlr-interest: 19657] [antlr-interest] Mulit-pass language processing.

2008-09-22 Thread Peter C. Chapin
I have an application where I need to process and rewrite a collection of source files. I have come to the conclusion that I'll need to use two passes over the source files. During the first pass I will parse the files and gather certain bits of information about them. During the second pass I wil