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
On Wednesday June 3 2009, Mark Volkmann wrote:
> ...
>
> I've read a few Pragmatic Programmer books on the Kindle. Dave Thomas
> has done a wonderful job with handling tables and code examples!
> Conversion from PDF to mobi often doesn't work well, but Dave
> implemented a custom conversion that p
On Wednesday June 3 2009, Dennis Brothers wrote:
> On Jun 3, 2009, at 8:25 PM, Randall R Schulz wrote:
> > On Wednesday June 3 2009, Dennis Brothers wrote:
> >> Your publisher's email beat you to the punch by a few hours - I
> >> pre- ordered the book and bou
On Wednesday June 3 2009, Dennis Brothers wrote:
> Your publisher's email beat you to the punch by a few hours - I pre-
> ordered the book and bought the beta download before you posted to
> the list. Reading it now on my Kindle.
Do they publish a Kindle-specific version? Or can PDFs be read on
On Thursday May 7 2009, Edwards, Waverly wrote:
> Thank you very much for your insights regarding the benefits of
> primitive types as objects. At this time, I don't see the value
> but I am glad to have your perspective so I can think about it
> a little more.
>
>
> <<<
> Are you designing a lan
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
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,
On Wednesday 03 December 2008 16:21, Oliver Zeigermann wrote:
> Folks!
>
> I need your support as I want to figure out where parsers
> and/or compilers are practically used these days.
>
> Any input highly appreciated.
Wouldn't the list of where they're used
_impractically_ be a lot shorter?
>
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
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 tha
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 conventi
On Wednesday 12 November 2008 13:37, Johannes Luber wrote:
> ...
>
> AFAIK, there is a whitepaper on a tool named gdiff, which would be a
> specialized diff for grammars. It would ignore actions and focus only
> on the grammar structure. But I don't know how far the implementation
> has been reali
On Sunday 02 November 2008 15:40, me tk82c wrote:
> Hello Randal!
>
>I agree with you, but my problem is because this "new language"
> must run on our windows mobile and java micro edition apps.
>
>...
>
>ANTLR is a good way? There is any solution out of box that i can
> just get and u
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
On Tuesday 21 October 2008 11:52, Randall R Schulz wrote:
> On Tuesday 21 October 2008 11:44, Terence Parr wrote:
> > ...
> >
> > It's hard to see a code trace that could given an error (not
> > warning) that wouldn't be trapped here. Hmm...ok, let m
On Tuesday 21 October 2008 11:44, Terence Parr wrote:
> On Oct 21, 2008, at 11:41 AM, Randall R Schulz wrote:
> > On Tuesday 21 October 2008 11:36, Terence Parr wrote:
> >> Hi Randall, I see
> >>
> >>public static void main(String[] args) {
> >&g
On Tuesday 21 October 2008 11:36, Terence Parr wrote:
> Hi Randall, I see
>
> public static void main(String[] args) {
> ErrorManager.info("ANTLR Parser Generator Version " +
> VERSION); // + " (August 12,
> 2008) 1989-2008");
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.
B
On Friday 10 October 2008 14:59, Jim Idle wrote:
> On Fri, 2008-10-10 at 14:53 -0700, Randall R Schulz wrote:
> > 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: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 ANT
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
On Friday 10 October 2008 12:45, Gary Rosales wrote:
> Hi,
>
>
>
> I am a newbie with ANTLR but I have a question that it's been itching
> me to ask for a while. I am in a project where we are migrating a
> bunch of c code that has embedded SQL (E/SQL from Informix) to c code
> that has also embed
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 p
On Friday 10 October 2008 09:05, Torsten Curdt wrote:
> On Oct 10, 2008, at 17:39, Randall R Schulz wrote:
> > Hi,
> >
> > I really like the Doxygen HTML files on the ANTLR Web site.
>
> Hm ...I was lately thinking the exact opposite :)
Well, I wasn't necessarily
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: http://www.antlr.org:8080
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
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
On Thursday 09 October 2008 00:30, Ronghui Yu wrote:
> On Thu, Oct 9, 2008 at 3:12 PM, Gavin Lambert <[EMAIL PROTECTED]>
wrote:
> > At 19:59 9/10/2008, Ronghui Yu wrote:
> >> As I mentioned before, I use the same lexer and parser object for
> >> parsing different SQL statements.
> >
> > Is there
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) are:
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
defaults
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
> &g
On Monday 06 October 2008 08:54, Jim Idle wrote:
> ...
>
> These are not the defaults, they are the settings I use for this:
>
> http://www.temporal-wave.com/comp/twcsc.php
I doesn't seem to work if I just press the "Parse to AST" button with
the existing C# code. No AST graph is ever drawn.
>
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 re
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
>
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 to resources that
would be me a head start on coming up with good incantations of the dot
command?
Thanks.
Hi,
I just discovered that in parser rules with both a rewrite clause _and_
an action block, the action block must _precede_ the rewrite clause or
the generated Java code is malformed and will not compile.
This is OK:
setOption
: Set LParen plainName RParen Period
{
if ($plai
Hi,
I'd like to return an array from a parser rule (in a tree grammar, if it
matters):
application
returns [ String appliedName, Term[] args ]
: ^(plainName argTerms?)
{
...
}
;
Unfortunately, the Java array declaration syntax, [], appears to be
interfering with ANT
On Friday 03 October 2008 09:03, Peter C. Chapin wrote:
> 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
On Friday 03 October 2008 03:02, Gavin Lambert wrote:
> At 11:04 3/10/2008, Randall R Schulz wrote:
> >op790FormulaFlat
> >
> >: (op780FormulaFlat -> op780FormulaFlat)
> >
> >(
> >( Or rDisjuncts = op790FormulaFlat) + )
>
Hi,
Sorry for shouting, but I really would like a definitive answer to this
question. ("Steamroller" referring to creating a flat AST.)
If one is to parse an infix operator notation, exemplified by this
input:
1 OP 2 OP 3 OP 4 OP 5
and produce from it this AST:
(OP 1 2 3 4 5)
On Thursday 02 October 2008 17:54, you wrote:
> Mr. Schulz :-
I'm sorry. My father isn't here right now...
> Sorry for this disconnected reply to your last message to me.
It's OK. I hope you don't mind my sending the reply back to the list.
I'm surprised this seems so difficult (not yet conce
Hi,
I've noticed that if I've reduced the scale of parse tree or AST
depiction using the the scale / zoom slider and export an image, it is
improperly clipped. Specifically, the bounding box of the exported
image is too small and portions at the lower and right edge are lost.
It doesn't happe
On Thursday 02 October 2008 16:15, you wrote:
> ...
>
> yes the second (non-recursion form) acts as you report
>
>
> however the former, recursive, form generates (for me)
>
> (Or p (Or q (Or r s)))
>
> for your input string. I can't remember anymore, is that what you
> wanted?
Nope. I can get th
On Thursday 02 October 2008 15:23, Jim Idle wrote:
> On Thu, 2008-10-02 at 15:01 -0700, Randall R Schulz wrote:
> > On Thursday 02 October 2008 14:29, Jim Idle wrote:
> > > Have you tried:
> > >
> > >
> > > o : v1=nextrule
> > > (
On Thursday 02 October 2008 14:29, Jim Idle wrote:
> On Thu, 2008-10-02 at 14:23 -0700, Randall R Schulz wrote:
> > Hi,
> >
> > Next question.
> >
> > (I've been spoiled by working mostly with strictly prefix languages
> > in the past...)
> >
On Thursday 02 October 2008 15:01, Randall R Schulz wrote:
> ...
>
> Whether you include an empty alternative (as you showed) or make the
> entire sub-rule optional, as I'd tried earlier:
>
> op790FormulaFlat
> : (op780FormulaFlat -> op780FormulaFl
On Thursday 02 October 2008 14:33, Jim Idle wrote:
> ...
>
> I should add that this won't be as useful a tree for processing
> unless this is a translator and you want to spit this stuff out in
> that kind of arrangement.
>
> Jim
Well, in fact I am just writing a transliterator, and since AND and
Hi,
Next question.
(I've been spoiled by working mostly with strictly prefix languages in
the past...)
How might I alter a rule such as this one:
op790Formula
: (op780Formula -> op780Formula)
(
Or rDisjunct = op790Formula
-> ^(Or $op790Formula $rDisjunct)
On Thursday 02 October 2008 12:31, Jim Idle wrote:
> On Thu, 2008-10-02 at 12:24 -0700, Randall R Schulz wrote:
> > Hi,
> >
> > I have a couple of productions that use a prefix operator that may
> > be repeated arbitrarily. One of them (negation) just has the
> >
Hi,
I have a couple of productions that use a prefix operator that may be
repeated arbitrarily. One of them (negation) just has the operator
symbol. The other has a keyword (two different keywords, actually)
followed by an identifier.
For example, with the negation operator, this:
---p
On Thursday 02 October 2008 10:06, Randall R Schulz wrote:
> 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 Oc
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:
> >
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, yesterday and then to
> 3.1.1, later yesterday...). Anyway, I was wondering if t
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, yesterday and then to
3.1.1, later yesterday...). Anyway, I was wondering if the ANTLR
command-line interface (org.antlr.Tool#main(), i.e.) gives a non-zero
exit code when
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.
>
> T
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: http:/
On Tuesday 23 September 2008 15:06, Jack Spencer wrote:
> I'm trying to get antlr-3.1 to run on OS X 10.5.4.
> I d/l-ed the antlr-3.1.tar.gz file from the main antlr download page,
> have the antlr-3.1.jar in my CLASSPATH.
> The CLASSPATH only contains that specific jar. No other antlr
> versions
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 semicol
On Saturday 20 September 2008 22:00, Yet ANOTHER Test Runner wrote:
> Sorry for my poor English :(
>
> Many computer languages like TTCN3, allows near '}' token or at the
> last statement inside block statement omit ';' token correctly, like
> this:
>
> if(xx){
>
> const integer i:=1;//err
59 matches
Mail list logo