... Only if you subclass the _generated_ lexer. Monty...
4845
mzukowski@...
montyzukowski
Jan 7, 2002 2:41 pm
Are you using literals? What does your ID rule look like where you have the testLiterals=true option on? Sounds to me like you have a hard coded lexer rule...
4844
etoffi2
Jan 7, 2002 1:21 pm
hello all, is there a way to make antlr match the longest token? i have a language parser which is returning keywords instead of idents: TOK_INTEGER instead of...
4843
Christian Ernst
ernst_chr
Jan 7, 2002 11:44 am
Hy Terence ! ... We did all the needed checks by using Visual Age for Java, which seems to be a very good Tool for finding these kind of relations between...
4842
Christian Ernst
ernst_chr
Jan 7, 2002 11:40 am
Hy Terence ! Sorry was OOO for Christmas and New Year ... I can only judge about the parser/lexer we where developing which parse a Java Like Language. This is...
4841
stdiobe
Jan 7, 2002 10:31 am
Terence, thank you for your response to my email! ... Any chance of ever getting this feature back? Stdiobe....
4840
Ric Klaren
izniegoed
Jan 6, 2002 6:47 pm
... I integrated the ones you sent in last week... Ric -- ... 'And this 'rebooting39; business? Give it a good kicking, do you?' 'Oh, no, of course, we ... that...
4839
Terence Parr
parrt2000
Jan 6, 2002 1:41 am
... Oh right... Ric, what changes did you make? I saw some cpp changes come across? Thanks, Ter -- Chief Scientist & Co-founder, http://www.jguru.com Creator,...
4838
David Scott Page
scott_page@...
Jan 6, 2002 1:24 am
... Makefile updates? -- Scott Page...
4837
Terence Parr
parrt2000
Jan 5, 2002 11:36 pm
A couple of nasty bugs that took a long time to track and evaluate/fix. My remaining items for 2.7.2 final looks like: o check char io stream exceptions are...
4836
Terence Parr
parrt2000
Jan 5, 2002 11:35 pm
... This is an option I have considered. It is only an optimization as ANTLR automatically determines the min lookahead to use (I think JavaCC *forces* you to...
4835
etoyshop7@...
etoyshop7
Jan 5, 2002 7:44 am
MyJobStreet - MY's salary contest...
4834
isabellemus
Jan 4, 2002 9:24 pm
Hi, Concerning stl in dll builds : in MSVC, template classes should completely be defined in headers (i.e. everything inline). This is what stl does. So the...
4833
treyspiva
Jan 4, 2002 3:08 pm
I have modified the C++ code to emit the starting stream position of a token. I found the stream position very usiful. I was wondering if I can get this into...
4832
treyspiva
Jan 4, 2002 3:03 pm
I have noticed that Antlr will produce token sets that can be when recovering from errors. I will like to add my own error handling however, I would like to...
4831
Ric Klaren
izniegoed
Jan 4, 2002 1:01 pm
... Fixed in repository. Here's a diff: ==== //depot/code/org.antlr/main/main/lib/cpp/antlr/config.hpp#9 (ktext) ==== @@ -223,10 +223,15 @@ # define...
4830
stdiobe
Jan 4, 2002 7:50 am
... Bob, you're right, but having only one lexer definition to maintain is easier than having to maintain two lexer definitions (and we have to maintain...
4829
bob mcwhirter
werken42
Jan 4, 2002 5:30 am
... You can subclass the generated lexer and override nextToken() yourself, calling super.nextToken() to pass along the love. -bob...
4828
Terence Parr
parrt2000
Jan 3, 2002 11:06 pm
Folks, Moving hardware around here at jGuru and might have to interrupt antlr.org site for a bit over next day or so. Ter -- Chief Scientist & Co-founder,...
4827
mzukowski@...
montyzukowski
Jan 3, 2002 7:02 pm
... This bug should be fixed in the alpha release. Monty...
4826
Ric Klaren
izniegoed
Jan 3, 2002 6:43 pm
Hi, ... You went the path with configure and make install ? If so you should have a antlr script in <prefix>/bin/ that runs the tool and takes care of setting ...
4825
Benjamin Reschke
benjamin.reschke@...
Jan 3, 2002 6:33 pm
Yeap you are right I just set my CLASSPATH to the ANTLR class files directory and bingo it works :) Thanks Ben ... From: "Terence Parr" <parrt@...> To:...
4824
Ric Klaren
izniegoed
Jan 3, 2002 6:31 pm
Hi, ... Ack! I'll try with 2.95.3 and those flags here on solaris. Probably some trivial stuff. ... I dropped a lot of those things since they didn't work 100%...
4823
stdiobe
Jan 3, 2002 6:12 pm
Hi Ter, in a message on jguru.com you asked for suggestions for 2.7.2. Well .... here are my suggestions (hope you don't mind I use yahoo instead of jguru; I...
4822
Ric Klaren
izniegoed
Jan 3, 2002 6:03 pm
Hi, ... The DLL export stuff is already in antlr-2.7.2a1. It's only called ANTLR_API now (used a different patch than the one in contrib). ... Hmmm strange I...
4821
manfredlotz
Jan 2, 2002 7:12 pm
... does. ... Hi Monty, Your suggestion was great. That did the trick. Now the lexer is able to scan a ".a.b" as well as ".a.a". I read the docs. My...
4820
mzukowski@...
montyzukowski
Jan 2, 2002 3:03 pm
Yes try something like this: ( ".a" | (".a.a")=>".a.a" | ".b" | 'a' | 'c' ) Read the docs and look at the generated code to understand what it does. Monty ... ...
4819
Terence Parr
parrt2000
Jan 1, 2002 8:06 pm
... Can anybody summarize the changes to the FAQ I should make? http://www.jguru.com/faq/view.jsp?EID=203548 Ter -- Chief Scientist & Co-founder,...
4818
kemmerzehl
Jan 1, 2002 6:02 pm
The problem I had was actually incredibly simple, and I do feel a little silly now. The project files JSRS posted were using the single thread runtime...
4817
isabellemus
Jan 1, 2002 2:20 pm
The import/export declaration isn't that hard (see below) #if defined(WIN32) && defined(_MSC_VER) #if defined(BUILD_ANTLR_DLL) #define DllImpExp...