... Ho ho, you used YACC long enough then. I'll let you in on a secret: There *is* no hang to YACC. It's great for making YACC manual examples (which all seem...
326
Daniel Berlin
DanielB@xxxxxxxxxx.xx...
Apr 11, 1999 4:28 am
Sure, if you like. Evangelism *is* part of my job. PS. sorry for the late response, i've been in Seattle. Well, i've spent more time on various tarmacs in...
325
Sinan Karasu
sinan.karasu@xxxxxx.x...
Apr 8, 1999 2:38 pm
... [...] ... Only way I know is TEST { int dx=0,dy=0,xs=0,xy=0; } ... ) { 9f(dx!=1&&dy!=1&&xs!=1&&ys!=1)panic(); } ; Cases like this , parse a larger language...
324
Jesper Jonasson
jejo@...
Apr 8, 1999 1:36 pm
Is there a shorthand for expressing permutation of tokens so that one doesn't have to explicitly write down all possible combinations? For example, I need to...
323
Sinan Karasu
sinan.karasu@xxxxxx.x...
Apr 7, 1999 5:27 pm
... I have been thinking about this. I have a couple problems with this approach however. What I have been puting in these interpreters are quite a bit of ...
322
mzukowski@...
Apr 7, 1999 3:26 pm
I don't think there's any other way to unwind the stack in Java other than returning and exception throwing. Seems like what you really want is to be able to...
321
Peter Williams
pete.williams@xxx.xxx...
Apr 6, 1999 10:46 pm
... I wouldn't have been able to do what I've done without this tool. Having the flexibility to target either C++ or Java is a very large benefit for my team....
320
Terence Parr
parrt@xxxxxxxx.xxxx
Apr 6, 1999 10:43 pm
... Now *that* is what I call an endorsement! Can I use all that on the website? THanks, Ter...
319
Sinan Karasu
sinan.karasu@xxxxxx.x...
Apr 6, 1999 10:34 pm
Daniel Berlin wrote: [....] ... Ok here is a question since another person touched this subject. I have written a couple of interpreters by using antlr 2.5.0 ...
318
Daniel Berlin
DanielB@xxxxxxxxxx.xx...
Apr 6, 1999 10:08 pm
... Of course people are making use of it. ANTLR is simply an amazing tool. I use it in every CS project i have to do a parser, lexer, or treeparser for, and...
317
Terence Parr
parrt@xxxxxxxx.xxxx
Apr 6, 1999 9:07 pm
I'll be releasing the great new improvements by Pete Wells with 2.6.0...my break is raging out of control, but I expect to return to the living soon. Ter ... I...
316
Bergmann, Rich
rich.bergmann@xxxxxxx...
Apr 6, 1999 8:44 pm
Pete, While you're getting the C++ generator in sync with the Java generator, how about implementing the filter= option in the lexer? I didn't find this issue...
315
pete@xxxxxx.xxxxx.xx....
pete@xxxxxx.xxxxx.xx....
Apr 6, 1999 8:24 pm
Hi ... I've checked this, and these changes will be in 2.6.0. I've been through a round of catching up with the Java code generator recently, so this time the...
314
Ed Howland
Ed@xxxx.xxxx
Apr 6, 1999 4:35 pm
... Thanks Monty, I did know that. But the default is "public final void sr()" Although you make a point that you could modify the signature of the start rule...
313
mzukowski@...
Apr 6, 1999 1:42 pm
... Just so you know, it is possible to specify arguments for rules and also return types. Monty...
312
Doug Erickson
Doug.Erickson@xxxx.xxxx
Apr 6, 1999 12:52 am
Sounds cool! By the way, yes, you can call any rule in your parser... the parser has no notion of what is the "start" rule, and you can define what you call...
311
Ed Howland
Ed@...
Apr 6, 1999 12:28 am
The problem grew an order of magnitude when I tried to dynamically load a parser from a String name. (See previous msg about the problems with calling a...
310
Peter Williams
pete.williams@xxx.xxx...
Apr 2, 1999 6:57 pm
This is in regards to bug #87,which I confirmed is fixed for the Java code generator, but has not been resolved for the C++ code generator. The following diff...
309
Chris Daly
cdaly@xxxxxxxx.xxxx
Apr 2, 1999 4:16 am
Hello Everybody, I am trying to use antlr to process some C header files. I am doing this to generate bindings to the C libraries in another language (Ada). I...
308
Ed Howland
Ed@xxxx.xxxx
Apr 2, 1999 12:41 am
Ok, Doug's solution works for the InputStream problem. But now I have to create a version of Lexer (actually antlr.CharScanner) that takes a default ...
307
Peter Williams
pete.williams@xxx.xxx...
Apr 1, 1999 11:51 pm
... That would certainly be consistent with what I've found. I guess that means I should generate the java version and compare notes, eh? It'll look pretty ...
306
Terence Parr
parrt@xxxxxxxx.xxxx
Apr 1, 1999 11:55 pm
... I'm not sure the C++ code generator was updated for 2.5.0 re that bug.... Ter...
305
Peter Williams
pete.williams@xxx.xxx...
Apr 1, 1999 11:17 pm
Hmmm. Funny that a bunch of people just happened to comment on the speed of an ANTLR lexer (C++ even). I have been looking at generated code for a while...
304
Doug Erickson
Doug.Erickson@xxxx.xxxx
Apr 1, 1999 7:52 pm
How about subclassing FilterInputStream and exposing the underlying stream? I.e., class MyStream extends java.io.FilterStream { MyStream() { super(null); } ...
303
mzukowski@xxx.xxx
Apr 1, 1999 7:49 pm
nextToken() calls resetText() every time it is called, to clear the accumulated text buffer. If you don't use nextToken() then you will probably want to do...
302
Ed Howland
Ed@xxxx.xxxx
Apr 1, 1999 7:38 pm
I'm trying to use a pseudo-Factory Pattern to create a lexer+parser combination on the fly. I need to call the lexer's default constructor. But I can't...
301
Paul Erion
erion@xxxxxx.xxxx
Apr 1, 1999 7:08 pm
What I'm working on involves converting an email message into an XML document. Since I need access to the text that is being matched by a rule all of the...
300
Doug Erickson
Doug.Erickson@xxxx.xxxx
Apr 1, 1999 6:49 pm
Well, if you know your token syntax, why not use a parser? I mean, I could see some performance arguments, but if that's not important, an ANTLR parser is...
299
Paul Erion
erion@xxxxxx.xxxx
Apr 1, 1999 6:29 pm
It appears that everything I need to do can be done via an Antlr lexer [no need for the parser]. Looking at the "linkChecker" example the lexer is invoked via...
298
Geoff Leyland
geoff.leyland@xxxx.xxx
Apr 1, 1999 8:44 am
Another kiwi! Or maybe you just live in NZ, and I just come from NZ. ... To what extent is it possible to speed up the lexer by fiddling with the CharBuffer?...