Is it possible to generate a rule (Parser) that negate the following Token ? The Problem is all the rules I tried cannot resolve the ambiguity between the...
5973
Ric Klaren
izniegoed
Jul 16, 2002 1:22 pm
Hi, ... Which ANTLR version? How did you setup lexer and parser? Maybe you upgraded and did an incomplete rebuild? Cheers, Ric -- ... Wo das Chaos auf die...
5974
John Lam
drjflam
Jul 16, 2002 6:53 pm
Thanks so much for sending this link along. That chapter rocks (I loved the maze metaphor). For the time being, I'm going to stick with using "any" as a token...
5975
Kpako
Jul 17, 2002 3:22 am
The following rule in my lexer EQUAL: "=" { #if DEBUG Console.WriteLine("EQUAL:{0} seen", $getText); #endif } ; generates if DEBUG Console.WriteLine("EQUAL:{0}...
5976
John Lambert
johnl_jbase
Jul 17, 2002 6:45 pm
I am trying to resolve an issue on IBM Z series with an antlr lexer/parser in C++. It is mostly working with the exception of the bitsets for the lexer. ...
5977
mzukowski@...
montyzukowski
Jul 17, 2002 7:05 pm
That sounds like a good idea to me and shouldn't be too difficult. Monty www.codetransform.com ... http://docs.yahoo.com/info/terms/...
5978
Sinan
sinankarasu
Jul 17, 2002 7:29 pm
... try startRule : "hello" EOF ;...
5979
Kpako
Jul 18, 2002 2:25 am
The following Lexer rule IDENT_OR_RULE_BEGIN ... ; generates if ( synPredMatched30 ) { mRULE_BEGIN(false); if (0==inputState.guessing) { _ttype = RULE_BEGIN; }...
5980
Micheal J
micheal_jor
Jul 18, 2002 4:39 am
... Thank you for the feedback on the C# code generator. This is actually a documented (?) feature. ;-) You need to prefix the token name with the TokenTypes...
5981
Micheal J
micheal_jor
Jul 18, 2002 4:39 am
... Thanks for the feedback report. I will look into this. I haven't tested the code generator's handling of C# preprocessing directives embedded in code ...
5982
Dare Obasanjo
Kpako
Jul 18, 2002 4:46 am
... Thanks for the clarification, I kinda figured this out but wanted to make sure it wasn't a bug before going on. ===== THINGS TO DO IF I BECOME AN EVIL...
5983
Dare Obasanjo
Kpako
Jul 18, 2002 4:48 am
... Thanks for looking into it. I also had a problem with lexer rules like protected STRING returns [String s] ... ; because it complained about s being an...
5984
micheal_jor
Jul 18, 2002 5:05 am
... I have noticed this too. It is an artifact of C#'s rules for variable definition and usage really (admittedly triggered by ANTLR code generation style). ...
5985
Ric Klaren
izniegoed
Jul 18, 2002 8:54 am
... Look at the action.g of the C++ codegenerator it contains lots of fixes for handling of '#' in preprocessor stuff. Ric -- ... Wo das Chaos auf die Ordnung...
5986
micheal_jor
Jul 18, 2002 8:18 pm
... fixes for ... Thanks for the pointer Ric. Micheal...
5987
avsinh
Jul 18, 2002 10:05 pm
I am trying to get ANTLR compiled on VC++ 6.0. And I am using the project defined in contrib/MSCV6-dll. Any idea why I would be getting the following errors?...
5988
Ric Klaren
izniegoed
Jul 19, 2002 8:41 am
Hi, ... The project files may be a bit out of date depending on the distribution you are using. Just add all the cpp and hpp files to your project and you ...
5989
lawchangyen1978
Jul 20, 2002 12:16 am
May i know what does the below expression means in the lexer code that is generated? Thanks for all advice. (_tokenSet_1.member(LA(1)) ...
5990
mrosgood
Jul 22, 2002 4:33 am
Hi Guys- Have you guys seen Jedit (www.jedit.org)? It's a text editor that has syntax highlighting and "folding". Has anyone done something similar using an...
5991
Brian Smith
brian-l-smith@...
Jul 22, 2002 4:41 am
The NetBeans people have a "lexer" module that they are building. Appartently it will be able to both ANTLR and JavaCC _lexers_, but it doesn't use them for...
5992
Bogdan Mitu
bogdan_mt
Jul 22, 2002 7:26 am
Hi Jason, If you want to use an existing ANTLR grammar for syntax highlighting, take care that you don't have { $setType( Token.SKIP); } actions inside. You...
5993
Torsten Juergeleit
tjuergeleit
Jul 22, 2002 11:48 am
Hi Bogdan, ... I have the same problem with the outline view in my ANTLR grammar editor (http://sourceforge.net/projects/antlreclipse/ ). While a user is...
5994
Bogdan Mitu
bogdan_mt
Jul 22, 2002 12:56 pm
... For the lexer, I modified the JavaCodeGenerator so that generated lexers return an INVALID token istead of throwing an exception. For the Parser, I don't...
5995
mzukowski@...
montyzukowski
Jul 22, 2002 2:53 pm
Token sets hold a bitset representation of a set of characters or tokens. Unfortunately you antlr doesn't comment what goes into the token set. You can either...
5996
mrosgood
Jul 22, 2002 10:49 pm
Hi Brian Smith, Bogdan Mitu, Torsten Juergeleit-- Thanks for the replies! I checked out the lexer.netbeans.org subproject, spearheaded by Miloslav Metelka....
5997
micheal_jor
Jul 23, 2002 4:20 am
Hi, If you have or know of any [open-source & substantial] projects developed with ANTLR and C++ please post a link and/or comments. I am particularly...
5998
Andreas Rueckert
a_rueckert
Jul 23, 2002 3:42 pm
Hi! Maybe I'm missing something obvious or I should read the manual again, but I have a question. I'm trying to scan a 'here' document in PHP. For those who ...
5999
Khalid Khidhir
hkhidhir@...
Jul 23, 2002 4:02 pm
Hi all I joined this group about 3 years ago, and now that it moved to yahoo I dont seem to be able to remobe myself from the distribution list. I dont have a...
6000
Bogdan Mitu
bogdan_mt
Jul 23, 2002 5:58 pm
Hi all, I put on this group's File section a zip archive with a package for interactive editing with ANTLR (I called the package Syntax Aware Text Components):...
6001
mzukowski@...
montyzukowski
Jul 23, 2002 6:02 pm
Can you say that the delimiter is limited to valid IDs? If so then you can dynamically add that as a literal to your literals table (in a lexer rule.) If not...