[il-antlr-interest: 19262] Re: [antlr-interest] Can't re coginze a file start with HIDDENlexersince 3.1b1

2008-08-29 Thread Ronghui Yu
I tried L-factoring and syntax predicate, but I couldn't remove all errors yet. One of the parsers has almost 1000 rules, does it reach ANTLR limit? Anyway, I think I need to follow the method to deal with rules one by one. Thanks From: Johannes Luber [mailto:[EM

[il-antlr-interest: 19261] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread Terence Parr
On Aug 29, 2008, at 2:56 PM, Gavin Lambert wrote: > At 08:11 30/08/2008, Terence Parr wrote: > >i just Meant that it's not worth all of the coding hassle in the > >compiler to remove a=a :) > > It'll be less hassle once ANTLR v3 is self-hosted, and ANTLRMorph is > out, though, right? Right?

[il-antlr-interest: 19260] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread Gavin Lambert
At 08:11 30/08/2008, Terence Parr wrote: >i just Meant that it's not worth all of the coding hassle in the >compiler to remove a=a :) It'll be less hassle once ANTLR v3 is self-hosted, and ANTLRMorph is out, though, right? Right? :) List: http://www.antlr.org:8080/mailman/listinfo/antlr-i

[il-antlr-interest: 19258] Re: [antlr-interest] Problems in upgrading to ANTLR v3.1

2008-08-29 Thread David Goldberg
Thanks, making sure I had and was generating code with the latest version of ANTLR and the C# libraries seems to have done the trick. David -Original Message- From: Johannes Luber [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 6:44 PM To: David Goldberg Cc: [EMAIL PROTECTED]

[il-antlr-interest: 19257] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread Terence Parr
On Aug 29, 2008, at 12:56 PM, James Mansion wrote: > Terence Parr wrote: >> nope... how can I be sure you do not want those elided constructs? >> >> foo -> foo >> >> I suppose I could get rid of, but two compilers really get rid of >> a=a;? > OK I mis-wrote, I meant just dropping the productio

[il-antlr-interest: 19256] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread James Mansion
Terence Parr wrote: > nope... how can I be sure you do not want those elided constructs? > > foo -> foo > > I suppose I could get rid of, but two compilers really get rid of a=a;? OK I mis-wrote, I meant just dropping the production side. You seemed to imply that its presence slows things up. An

[il-antlr-interest: 19255] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread Terence Parr
On Aug 29, 2008, at 12:40 PM, James Mansion wrote: > Terence Parr wrote: >> This one is much more efficient but I am not sure it will show up >> unless you have a huge input. >> > Isn't the optimisation of: > >foo -> foo > > to > > foo > > something that antlr could do fairly easily?

[il-antlr-interest: 19254] Re: [antlr-interest] Faster expression parsing

2008-08-29 Thread James Mansion
Terence Parr wrote: > This one is much more efficient but I am not sure it will show up > unless you have a huge input. > Isn't the optimisation of: foo -> foo to foo something that antlr could do fairly easily? List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest

[il-antlr-interest: 19253] Re: [antlr-interest] C# targe t: .NET Frameworkbug causing NullReferenceException, mus t use this workaround

2008-08-29 Thread Johannes Luber
Sam Harwell schrieb: > If you change the condition of the existing ternary expression from > (mtne.Node!=null) to (mtne.Node!=null && mtne.Node.ToString()!=null), it > fixes the problem. > > Sam Added this, so I have not created a new binary yet. Johannes > > -Original Message- > Fro

[il-antlr-interest: 19252] Re: [antlr-interest] finally stumbled on a solution but i still dont grok it !

2008-08-29 Thread Ymo
If anyone can comment on this i would really appreciate. Matt i am hoping you missed this ! On Wed, Aug 27, 2008 at 12:25 AM, Ymo <[EMAIL PROTECTED]> wrote: > Hi All. > > I was trying to match block of delimited text. the token CODE was always > taking precedence and matching all tokens that cam

[il-antlr-interest: 19251] Re: [antlr-interest] Can't re coginze a file start with HIDDENlexersince 3.1b1

2008-08-29 Thread Johannes Luber
Ronghui Yu schrieb: > Hi, Jim, > > Thanks very much for your help > > I tried to turn backtrack off before, but failed to build the grammar > with a lot of errors, so I have to turn it on Did you look at

[il-antlr-interest: 19250] Re: [antlr-interest] Can't recoginze a file start with HIDDENlexersince 3.1b1

2008-08-29 Thread Ronghui Yu
Hi, Jim, Thanks very much for your help I tried to turn backtrack off before, but failed to build the grammar with a lot of errors, so I have to turn it on == Regards, Ronghui Yu Sierra Atlantic - Original Message - From: Jim Idle To: Ronghui Yu