This is probably not the best way, but it works. I added a semantic predicate to the IDENTIFIER rule: IDENTIFIER ... ; -Matt ... ...
9151
Fan Yang
yhhf_dy
Aug 1, 2003 7:34 pm
Hi, In order to be familiar with AST construction, I did some small tests by usning ANTLR 2.7.2. I realized that ANTLR 2.7.2 can't generate code (in CPP or...
9152
Andrew Deren
andrewd666
Aug 1, 2003 7:58 pm
Has anyone been able to write C# grammar for antlr? I think it should be fairly easy to convert java one, but I was hoping someone has done it already. Thanks....
9153
Adrian Sandor
aditsu
Aug 2, 2003 8:38 am
How can I keep a lexer and a parser in one file, and a tree parser in another file? If I put them all in one grammar file, then it works, but when I move the...
9154
Terence Parr
parrt2000
Aug 2, 2003 3:33 pm
you need to importVocab. See the examples. :) Terence ... -- Professor Comp. Sci., University of San Francisco Creator, ANTLR Parser Generator,...
9155
antlrlist
Aug 3, 2003 12:59 pm
Ok, due to popular aclamation, antlraux license is now BSD (in oposition to the previous GPL). Since I could not simply change the original sources, I've...
9156
Adrian Sandor
aditsu
Aug 3, 2003 5:12 pm
thank you, it worked :) I saw that option before, but I thought it referred to the characters in the vocabulary.. I was pretty close: it actually refers to...
9157
Rodrigo B. de Oliveira
rodrigobamboo
Aug 3, 2003 8:37 pm
In the C# library. I need my tokens to remember the filename but I've just noticed that Token.getFilename and Token.setFilename are not virtual. And even if...
9158
antlrlist
Aug 4, 2003 12:09 am
(answer below) ... Token.getFilename and Token.setFilename are not virtual. And even if they were, Token.setFilename is never called ... changes to? I'd rather...
9159
antlrlist
Aug 4, 2003 12:13 am
Hi, I'd like to know if there's any antlr logo out there. You know, for making a graphical link to www.antlr.org. Thanks! Enrique....
9160
Rodrigo B. de Oliveira
rodrigobamboo
Aug 4, 2003 12:28 am
... Funny. And why both the lexer and the parser hold a filename then? Just because it's called filename I hope it doesn't mean I'm not allowed to set it to ...
9161
Matthew Ford
Matthew.Ford@...
Aug 4, 2003 12:46 am
Great Enrique, I look forward to using it. matthew ... From: "antlrlist" <antlrlist@...> To: <antlr-interest@yahoogroups.com> Sent: Sunday, August 03,...
9162
alexandra_uoft5
Aug 4, 2003 8:42 am
Ever thought about joining or even visiting an Adult Nudist Community? We would imagine you have but some it is just not their style and that is ok but if you...
9163
Ric Klaren
izniegoed
Aug 4, 2003 11:06 am
... ^- this is the culprit. ... Due to the '!' on EOF no AST return is generated (the tmp1_AST) if you remove the !-operator the rule will work. It will also...
9164
Ric Klaren
izniegoed
Aug 4, 2003 2:47 pm
... Hmm a tab crept in the bit before the ^. To be clear it's the !-operator on the EOF that's the problem. For the rest see previous reply. Another thing I...
9165
mzukowski@...
montyzukowski
Aug 4, 2003 4:12 pm
That looks good to me. Monty ... From: Matt Benson [mailto:gudnabrsam@...] Sent: Friday, August 01, 2003 10:21 AM To: antlr-interest@yahoogroups.com ...
9166
Serge Bakkal
sergebakkal
Aug 4, 2003 6:10 pm
Hi , returnAST appears both in class Parser and its generated derivated class : can we safely have this and the associated access method removed from output ? ...
9167
mzukowski@...
montyzukowski
Aug 4, 2003 11:14 pm
A client of mine was asking for examples of well written error messages to use as a guide to writing clear error messages for his expression parser. I don't...
9168
Terence Parr
parrt2000
Aug 5, 2003 3:12 am
Here ya go :) Check out bottom of license page (wasn't sure where to stick this). http://www.antlr.org/license.html Terence ... -- Professor Comp. Sci.,...
9169
julius_siska
Aug 5, 2003 7:35 am
Hi, I have following problem. I have grammar file with tokens AK, KI, EC and ZD. One of parsing rules is: (AK)? (KI)? EC (ZD)? Parsed input stream contains...
9170
daria_delish
Aug 5, 2003 8:19 am
I'm really self-conscious about having sex. I gush and goop-out everywhere. Is this normal? I really freaks out the guys I've been with. I would like to find a...
9171
antlrlist
Aug 5, 2003 8:33 am
Ok, thanks! I'd anyway recommend this other html code for making the link: <a href="http://www.antlr.org"> <img...
9172
antlrlist
Aug 5, 2003 8:53 am
Hi julius. In my opinion you have two options. The first one consists on turning off default exception handling. This way your exceptions will make your parser...
9173
Matt Benson
gudnabrsam
Aug 5, 2003 2:04 pm
Yay! Sorry, couldn't resist... ... __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software ...
9174
mzukowski@...
montyzukowski
Aug 5, 2003 2:56 pm
Turn off the default error handling by using options{ defaultErrorHandler=false;} Monty ... From: julius_siska [mailto:julius_siska@...] Sent: Tuesday,...
9175
micheal_jor
Aug 5, 2003 3:35 pm
Hi, Has anyone written a source-level expression optimizer with ANTLR?. Even a basic one that optimizes boolean expressions only would be fine. The real...
9176
Terence Parr
parrt2000
Aug 5, 2003 5:15 pm
fixed. thanks! Ter ... -- Professor Comp. Sci., University of San Francisco Creator, ANTLR Parser Generator, http://www.antlr.org Co-founder,...
9177
Serge Bakkal
sergebakkal
Aug 5, 2003 5:27 pm
Hi , Im investigating c++ grammar enhancements to handle preprocessor #define directives everything works well when the define directive has no parameter...
9178
Serge Bakkal
sergebakkal
Aug 5, 2003 5:30 pm
BTW : I can read rules , but still hardly can write them that's why I'm posting this . Serge Bakkal...
9179
Terence Parr
parrt2000
Aug 5, 2003 5:48 pm
Hi Gang, I want to increase the number of available grammars at antlr.org. who can add to this list? http://www.antlr.org/grammar/list Just click on the "add...