[il-antlr-interest: 34532] Re: [antlr-interest] suggestion for the static initializer too big in java

2011-10-24 Thread Bart Kiers
On Mon, Oct 24, 2011 at 10:26 AM, Patrick Ericx patrick.er...@gmail.comwrote: ... PS: is that mailing list available online? how can I access it ? receiving all these mails in my mailbox becomes a little overhead for me. Yes, here it is: http://antlr.markmail.org Regards, Bart. List:

[il-antlr-interest: 34533] [antlr-interest] Rule precedence works differently when using a predicate?

2011-10-24 Thread Bart Kiers
Hi all, As I understand it, ANTLR's lexer matches rules from top to bottom in the .g grammar file and when two rules match the same number of characters, the one that is defined first has precedence over the later one(s). However, take the following grammar: grammar T; @lexer::members {

[il-antlr-interest: 34534] [antlr-interest] Compiling C runtime linking

2011-10-24 Thread Yves Weißig
Hi list, I successfully compiled the C runtime for ANTLR with VS 2010. Now I want to compile the generated code (Lexer and Parser) with this command: g++ -Iantlrinclude -static -L. -lantlr3c RtfLexer.c RtfParser.c as you may notice, antlr.h and all includefiles are in antlrinclude and the

[il-antlr-interest: 34535] [antlr-interest] show decision DFA

2011-10-24 Thread Rampon Jerome
Hi, I am running antlr-3.4 and antlrworks-1.3.4 under ubuntu 10.04 64bits but also 32bits on a different computer. I made also experiments under windows 7 (64 bits)  (dual boot) It sends an operation in progress window when selecting a DFA (after highlighting DFA tag on) and calling show

[il-antlr-interest: 34538] [antlr-interest] ANTLR v3.4 generates compiler errors (that v3.3 doesn't generate)

2011-10-24 Thread Dieter Habelitz
Hi folks, When feeding ANTLR 3.4 with my Java grammars it doesn't generate valid Java sources (26 compiler errors) - with v3.3 everything is okay. Here's a snipped of the grammar that raises one of the problems: statement : block | assertStatement | ifStatement |

[il-antlr-interest: 34539] Re: [antlr-interest] False error 208?

2011-10-24 Thread Jim Idle
parse:IF* EOF; Jim -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- boun...@antlr.org] On Behalf Of Bood Qian Sent: Monday, October 24, 2011 1:29 AM To: antlr-interest@antlr.org Subject: [antlr-interest] False error 208? I don't

[il-antlr-interest: 34540] Re: [antlr-interest] Compiling C runtime linking

2011-10-24 Thread Yves Weißig
Hi again, this seems to be a problem with Windows (still the same error), but I tried the same under Linux and everything went fine. Compiled with ./configure, then make make install. After that: g++ -I/usr/local/include -shared -oRtfToolkit.lib -static -L/usr/local/lib -lantlr3c RtfLexer.c

[il-antlr-interest: 34541] Re: [antlr-interest] Compiling C runtime linking

2011-10-24 Thread Jim Idle
You need to send the output of the library build and your session. Here you say you are building with VS2010 and trying to compile with GNU C++, which makes no sense. What operating system? What compiler? Which version of ANTLR? Jim -Original Message- From:

[il-antlr-interest: 34545] Re: [antlr-interest] Compiling C runtime linking

2011-10-24 Thread Yves Weißig
I compile under Windows with VS2010: U:\libantlr3c-3.4-beta4DEVENV C.sln /Build Release Microsoft (R) Visual Studio Version 10.0.30319.1. Copyright (C) Microsoft Corp. Alle Rechte vorbehalten. 1-- Erstellen gestartet: Projekt: C, Konfiguration: Release Win32 -- 1Der Buildvorgang wurde am

[il-antlr-interest: 34546] Re: [antlr-interest] False error 208?

2011-10-24 Thread Jim Idle
Oh – I did not see it was a lexer error. Reorder the rules: IF :'if'; ID :('A'..'Z'|'a'..'z')+; RAW:({rawAhead()}?= . )+; However IF and ID will always be produced like this. If they should not be, then you want: IF :{!rawAhead()}?='if'; ID :

[il-antlr-interest: 34547] Re: [antlr-interest] False error 208?

2011-10-24 Thread Bart Kiers
On Mon, Oct 24, 2011 at 5:26 PM, Jim Idle j...@temporal-wave.com wrote: Oh – I did not see it was a lexer error. Reorder the rules: IF :'if'; ID :('A'..'Z'|'a'..'z')+; RAW:({rawAhead()}?= . )+; Yeah, that is what I thought as well, but the above will cause

[il-antlr-interest: 34548] Re: [antlr-interest] False error 208?

2011-10-24 Thread Bart Kiers
On Mon, Oct 24, 2011 at 5:33 PM, Bart Kiers bki...@gmail.com wrote: ... where I (and Boon) ... Sorry, Bood, not Boon... List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this

[il-antlr-interest: 34552] Re: [antlr-interest] Jim Idle: C-Runtime, position of elements

2011-10-24 Thread Udo Weik
Hello Jim, Look at the interface for CommonToken you can see that there is the ability to get the line number (it assumes \n is the delimiter unless you change that. yep, there is an ANTLR3_COMMON_TOKEN_struct. But I need additional infos - e. g. where is that struct populated the first time.

[il-antlr-interest: 34555] Re: [antlr-interest] ANTLR v3.4 generates compiler errors (that v3.3 doesn't generate)

2011-10-24 Thread Eric
On Mon, Oct 24, 2011 at 10:41 AM, Dieter Habelitz dieter.habel...@habelitz.com wrote: Hi folks, When feeding ANTLR 3.4 with my Java grammars it doesn't generate valid Java sources (26 compiler errors) - with v3.3 everything is okay. Here's a snipped of the grammar that raises one of the

[il-antlr-interest: 34556] [antlr-interest] Refactor grammar without semantic predicates

2011-10-24 Thread Brian Geffon
Hi, I'm working on a grammar and I can't figure out how to refactor it without using semantic predicates. Essentially, what I'm trying to do with RAW_TEXT is a catch all if none of the tags match, the only way I could make it work was by using Semantic Predicates, does anyone have ideas? Thanks

[il-antlr-interest: 34558] Re: [antlr-interest] Should I contribute working example code for CSharp3 target?

2011-10-24 Thread Voelkel, Andy
I just sent Terence 3 examples from his book, converted to the C# target. If you’d like, I can send you the same zip file - Andy From: 李志鹏 [mailto:lizhip...@gmail.com] Sent: Saturday, October 22, 2011 9:53 AM To: Terence Parr Cc: Voelkel, Andy; antlr-interest Interest Subject: Re:

[il-antlr-interest: 34559] Re: [antlr-interest] ANTLR v3.4 generates compiler errors (that v3.3 doesn't generate)

2011-10-24 Thread Ashutosh Chauhan
Ter is aware of it but is holding off on fixing the bugs for org.antlr.Tool 3.4. Is there any timeline on when will be the next release. I will be eager to try it out as we want to upgrade, which we can't because of the issue I reported on a different thread. On Mon, Oct 24, 2011 at 12:24, Eric

[il-antlr-interest: 34560] [antlr-interest] Resolving Member-References

2011-10-24 Thread Jan Gräfen
Hey guys, I have a quick question. memberReference : (start='this' | start='parent') ('.' member+=(methodCall | Identifier))* ; I have this simplified rule above and I want to save all methodCalls and Identifiers into $members. This doesn't seem to work since methodCall is a rule