[il-antlr-interest: 24068] Re: [antlr-interest] Language design patterns book available in beta

2009-06-05 Thread Randall R Schulz
On Friday June 5 2009, Terence Parr wrote: On Jun 5, 2009, at 2:29 PM, Steve Cooper wrote: First, thanks for writing this book. I'm a good way through already and have written my first LL(2) recursive descent parser today. I'm very happy with the book. great! If I have to skimp to

[il-antlr-interest: 23576] Re: [antlr-interest] language design

2009-05-07 Thread Randall R Schulz
On Thursday May 7 2009, Edwards, Waverly wrote: This question is not directly aimed at ANTLR but towards language design. If someone wouldn't mind responding or directing me towards the answer to why would I want a primitive type to be treated as an object. In Java and C#, primitive types

[il-antlr-interest: 21454] Re: [antlr-interest] ANTLR v3.1.1 released

2009-01-20 Thread Randall R Schulz
On Tuesday January 20 2009, you wrote: interesting...so this should be a warning then? I'm not sure which is correct. It is most likely an error; I wouldn't rely on which it chooses. But it explicitly said that it chose the enclosing rule. If that's not what it's (reliably) going to do, at

[il-antlr-interest: 20704] Re: [antlr-interest] token definitions can never be matched because prior tokens match the same input

2008-11-28 Thread Randall R Schulz
On Friday 28 November 2008 15:05, Ilya Sterin wrote: Based on the grammar you provided it doesn't seem you've defined it correctly. First, I'd define some of your patterns as lexer tokens. Try this... I think it's important to make clear the fact that ANTLR encodes a fixed naming convention

[il-antlr-interest: 20705] Re: [antlr-interest] token definitions can never be matched because prior tokens match the same input

2008-11-28 Thread Randall R Schulz
On Friday 28 November 2008 15:15, Randall R Schulz wrote: ... The next less will be to understand that the scanner / lexer fully processes the input (breaking it into a sequence of tokens) and completes its work before the parser begins executing. D'Oh! Make that The next _lesson_

[il-antlr-interest: 20707] Re: [antlr-interest] outputting whole source line on error

2008-11-28 Thread Randall R Schulz
On Friday 28 November 2008 04:30, micha wrote: Hi, maybe I'm not seeing the obvious, but how can I output the whole source line, when an error occurs (while parsing) ? Well, the lexer counts newlines (or CR+LF pairs) so as to provide a line count associated with each token it emits, but

[il-antlr-interest: 20254] Re: [antlr-interest] Java Grammar and how to use it to create a script language to my app

2008-10-30 Thread Randall R Schulz
On Thursday 30 October 2008 18:25, me tk82c wrote: Hello Everybody! I'm trying to create a new language to allow my users to write small scripts in our web app. There is any short way to do that? Something like, download the existent java grammar from ANTLR and implement the specific

[il-antlr-interest: 19913] [antlr-interest] ANTLR Doxygen Config?

2008-10-10 Thread Randall R Schulz
Hi, I really like the Doxygen HTML files on the ANTLR Web site. Once upon a time, I tried using Doxygen, and I don't recall ever getting it to make such nice output. Is the Doxygen config file used to generate them available somewhere? Thanks. Randall Schulz List:

[il-antlr-interest: 19918] Re: [antlr-interest] ANTLR Doxygen Config?

2008-10-10 Thread Randall R Schulz
On Friday 10 October 2008 10:33, Torsten Curdt wrote: ... Since the source is available, it's pretty easy to create your own. Yeah ... one can do that. But it's inconvenient. Well, I just configure it into my Ant build.xml. It's set and forget, really. Pretty much very java project on

[il-antlr-interest: 19930] Re: [antlr-interest] ANTLR Doxygen Config?

2008-10-10 Thread Randall R Schulz
On Friday 10 October 2008 14:22, Terence Parr wrote: On Oct 10, 2008, at 2:08 PM, Andy Tripp wrote: The Javadoc is missing from the ANTLR website. We use doxygen in lieu; the doc isn't missing per se http://www.antlr.org/api/Java/index.html Any chance of getting my original question

[il-antlr-interest: 19933] Re: [antlr-interest] ANTLR Doxygen Config?

2008-10-10 Thread Randall R Schulz
On Friday 10 October 2008 14:33, Jim Idle wrote: On Fri, 2008-10-10 at 14:29 -0700, Randall R Schulz wrote: On Friday 10 October 2008 14:22, Terence Parr wrote: On Oct 10, 2008, at 2:08 PM, Andy Tripp wrote: The Javadoc is missing from the ANTLR website. We use doxygen in lieu

[il-antlr-interest: 19938] Re: [antlr-interest] ANTLR Doxygen Config?

2008-10-10 Thread Randall R Schulz
On Friday 10 October 2008 15:18, Jim Idle wrote: ... But you won't get very far without the insights given to you on this group it seems, given that you post about 5 times as many questions as anyone else. You might want to turn down the levels on your righteous indignation buttons. But it

[il-antlr-interest: 19901] [antlr-interest] Java *_return Access Level

2008-10-09 Thread Randall R Schulz
Hi, Is there any reason the many *_return classes generated when a grammar uses the returns [ ... ] construct (under Java) cannot be declared private (or, at least, protected)? This would have the salutary effect of excluding them from the external JavaDoc HTML typically generated from

[il-antlr-interest: 19903] Re: [antlr-interest] Java *_return Access Level

2008-10-09 Thread Randall R Schulz
On Thursday 09 October 2008 17:32, Terence Parr wrote: On Oct 9, 2008, at 5:29 PM, Randall R Schulz wrote: Hi, Is there any reason the many *_return classes generated when a grammar uses the returns [ ... ] construct (under Java) cannot be declared private (or, at least, protected

[il-antlr-interest: 19865] [antlr-interest] Dynamic Grammars

2008-10-07 Thread Randall R Schulz
Hi, I recently had to write a parser for a language that, like Prolog, allows definition of new operators and redefinition of the precedence, arity and associativity of existing operators. (I did use ANTLR and was forced to simply fix the default operator structure to that language's

[il-antlr-interest: 19872] [antlr-interest] ANTLR 3.0 - 3.1.1 Broke Working Parser

2008-10-07 Thread Randall R Schulz
Hi, I've just discovered that an ANTLR parser created using version 3.0 that I'd been using successfully for over a year is broken now that I rebuilt it using ANTLR 3.1.1. The rules in question (hopefully this tiny excerpt is sufficient for someone to recognize a change between 3.0 and 3.1)

[il-antlr-interest: 19840] Re: [antlr-interest] Good dot Invocation Options for Visualizing ASTs?

2008-10-06 Thread Randall R Schulz
On Monday 06 October 2008 08:36, you wrote: On Mon, 2008-10-06 at 07:00 -0700, Randall R Schulz wrote: Hi, Has anybody come up with good recipes for using the GraphViz package's dot command for rendering the graphs of ASTs produced by ANTLR 3 (.1.1)? If so, could you share? Or point me

[il-antlr-interest: 19841] Re: [antlr-interest] Good dot Invocation Options for Visualizing ASTs?

2008-10-06 Thread Randall R Schulz
On Monday 06 October 2008 07:00, Randall R Schulz wrote: Hi, Has anybody come up with good recipes for using the GraphViz package's dot command for rendering the graphs of ASTs produced by ANTLR 3 (.1.1)? Actually, what I'd really like is to recreate the layouts that ANTLRWorks produces

[il-antlr-interest: 19844] Re: [antlr-interest] Good dot Invocation Options for Visualizing ASTs?

2008-10-06 Thread Randall R Schulz
On Monday 06 October 2008 08:56, Jim Idle wrote: On Mon, 2008-10-06 at 08:50 -0700, Randall R Schulz wrote: On Monday 06 October 2008 07:00, Randall R Schulz wrote: Hi, Has anybody come up with good recipes for using the GraphViz package's dot command for rendering the graphs

[il-antlr-interest: 19785] Re: [antlr-interest] ANTLR v3.1.1 released

2008-10-02 Thread Randall R Schulz
On Thursday 02 October 2008 09:57, Terence Parr wrote: On Oct 2, 2008, at 7:08 AM, Randall R Schulz wrote: On Thursday 02 October 2008 06:48, Randall R Schulz wrote: On Wednesday 01 October 2008 14:36, Terence Parr wrote: 3.1.1 released: I'm starting a new parser and upgraded (to 3.1

[il-antlr-interest: 19773] Re: [antlr-interest] ANTLR v3.1.1 released

2008-10-01 Thread Randall R Schulz
On Wednesday 01 October 2008 14:36, Terence Parr wrote: 3.1.1 released: I'm getting a huge pile of compile errors, now. Is there a list of breaking API changes somewhere? It's kind of hard to diff the 3.1 and 3.1.1 Doxygen or JavaDoc output to figure them out... Randall Schulz List:

[il-antlr-interest: 19776] Re: [antlr-interest] ANTLR v3.1.1 released

2008-10-01 Thread Randall R Schulz
On Wednesday 01 October 2008 15:59, Jim Idle wrote: On Wed, 2008-10-01 at 15:44 -0700, Randall R Schulz wrote: On Wednesday 01 October 2008 14:36, Terence Parr wrote: 3.1.1 released: I'm getting a huge pile of compile errors, now. The runtime library names has changed, To be clear

[il-antlr-interest: 19643] Re: [antlr-interest] How can I insert a Token in the token stream?

2008-09-21 Thread Randall R Schulz
On Sunday 21 September 2008 14:44, Randall R Schulz wrote: On Saturday 20 September 2008 22:00, Yet ANOTHER Test Runner wrote: ... How can I insert a token ';' in the TokenStream if it is omitted. Why conceptualize it as inserting a semicolon? Why not conceptualize it as the semicolon