[il-antlr-interest: 24024] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread ugol
On Wed, Jun 3, 2009 at 8:30 PM, Terence Parr wrote: > Well, it had to happen sometime...the new book is finally available in > beta at pragmatic programmers website: got it! <... skimming trough > aaarghh!!! where is the llvm stuff?!?!? :) -- uL Pragmatist http://blog.ugolandini.com

[il-antlr-interest: 24023] Re: [antlr-interest] ocaml target?

2009-06-03 Thread Peter C. Chapin
On Tue, 2 Jun 2009, Sam Harwell wrote: > I pondered the idea of an F# target a while back, but I quickly realized > I was in over my head. For academic reasons I'd be very interested in > the result if you do build an ocaml target. :) I wonder if F# could use an OCaml target. I imagine with a l

[il-antlr-interest: 24022] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Terence Parr
DRM free. Ter On Jun 3, 2009, at 6:35 PM, Randall R Schulz wrote: > On Wednesday June 3 2009, Mark Volkmann wrote: >> ... >> >> I've read a few Pragmatic Programmer books on the Kindle. Dave Thomas >> has done a wonderful job with handling tables and code examples! >> Conversion from PDF to mobi

[il-antlr-interest: 24021] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Dennis Brothers
On Jun 3, 2009, at 8:57 PM, Randall R Schulz wrote: > On Wednesday June 3 2009, Dennis Brothers wrote: >> On Jun 3, 2009, at 8:25 PM, Randall R Schulz wrote: >>> On Wednesday June 3 2009, Dennis Brothers wrote: Your publisher's email beat you to the punch by a few hours - I pre- ordere

[il-antlr-interest: 24020] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Randall R Schulz
On Wednesday June 3 2009, Mark Volkmann wrote: > ... > > I've read a few Pragmatic Programmer books on the Kindle. Dave Thomas > has done a wonderful job with handling tables and code examples! > Conversion from PDF to mobi often doesn't work well, but Dave > implemented a custom conversion that p

[il-antlr-interest: 24019] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Michael Bedward
I got the pragprog email late last night (local time) and had the beta book about a minute later :-) I've been looking forward to this for months ! Michael List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-add

[il-antlr-interest: 24018] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Mark Volkmann
On Wed, Jun 3, 2009 at 7:18 PM, Dennis Brothers wrote: > > On Jun 3, 2009, at 8:05 PM, Terence Parr wrote: > >> >> On Jun 3, 2009, at 5:03 PM, Dennis Brothers wrote: >> >>> Your publisher's email beat you to the punch by a few hours - I pre- >>> ordered the book and bought the beta download befor

[il-antlr-interest: 24017] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Randall R Schulz
On Wednesday June 3 2009, Dennis Brothers wrote: > On Jun 3, 2009, at 8:25 PM, Randall R Schulz wrote: > > On Wednesday June 3 2009, Dennis Brothers wrote: > >> Your publisher's email beat you to the punch by a few hours - I > >> pre- ordered the book and bought the beta download before you > >> p

[il-antlr-interest: 24016] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Dennis Brothers
On Jun 3, 2009, at 8:25 PM, Randall R Schulz wrote: > On Wednesday June 3 2009, Dennis Brothers wrote: >> Your publisher's email beat you to the punch by a few hours - I pre- >> ordered the book and bought the beta download before you posted to >> the list. Reading it now on my Kindle. > > Do t

[il-antlr-interest: 24015] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Terence Parr
they have lots of different versions: Buy the eBook and get these DRM-free formats: • epub (for iPhone, Sony, etc) • mobi (for Kindle, etc) • PDF Plus of course the physical book when it's through production. Ter On Jun 3, 2009, at 5:25 PM, Randall R Schulz wrote: >

[il-antlr-interest: 24014] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Randall R Schulz
On Wednesday June 3 2009, Dennis Brothers wrote: > Your publisher's email beat you to the punch by a few hours - I pre- > ordered the book and bought the beta download before you posted to > the list. Reading it now on my Kindle. Do they publish a Kindle-specific version? Or can PDFs be read on

[il-antlr-interest: 24013] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Dennis Brothers
On Jun 3, 2009, at 8:05 PM, Terence Parr wrote: > > On Jun 3, 2009, at 5:03 PM, Dennis Brothers wrote: > >> Your publisher's email beat you to the punch by a few hours - I pre- >> ordered the book and bought the beta download before you posted to >> the >> list. Reading it now on my Kindle. >

[il-antlr-interest: 24012] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Terence Parr
On Jun 3, 2009, at 5:03 PM, Dennis Brothers wrote: > Your publisher's email beat you to the punch by a few hours - I pre- > ordered the book and bought the beta download before you posted to the > list. Reading it now on my Kindle. wow! Howz the kindle ebook version look? Ter List: http://ww

[il-antlr-interest: 24011] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Dennis Brothers
Your publisher's email beat you to the punch by a few hours - I pre- ordered the book and bought the beta download before you posted to the list. Reading it now on my Kindle. - Dennis Brothers On Jun 3, 2009, at 6:49 PM, Terence Parr wrote: > > On Jun 3, 2009, at 3:47 PM, J. Stephen Ri

[il-antlr-interest: 24010] Re: [antlr-interest] Whats wrong with this?

2009-06-03 Thread John B. Brodie
Greetings! On Wednesday 03 June 2009 06:14:26 pm Mats Ekberg wrote: > I cant figure out why this grammar dont work (I have left out some > not relevant stuff). > This expression works:[ LOOKUP( A1234567890, 9TN ) ] 93 > This dont:[ LOOKUP( A1234567890, ATN ) ] 93 > Why? Your lexer rules f

[il-antlr-interest: 24009] Re: [antlr-interest] Whats wrong with this?

2009-06-03 Thread Micha
On Thursday 04 June 2009 00:14:26 Mats Ekberg wrote: > > Hi! > > > > I cant figure out why this grammar dont work (I have left out some > > not relevant stuff). > > This expression works:[ LOOKUP( A1234567890, 9TN ) ] 93 I think the lexer sees for "9TN" a UNIT here > > This dont:[ LOOK

[il-antlr-interest: 24008] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Terence Parr
On Jun 3, 2009, at 3:47 PM, J. Stephen Riley Silber wrote: > Whoo! I just downloaded my beta! (Don't spend all that royalty > money in one place!) I'm very excited about this book. > Congratulations, Ter, and thanks! Well, let's see if you're still excited after you read what I have so

[il-antlr-interest: 24007] Re: [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread J. Stephen Riley Silber
Whoo!  I just downloaded my beta!  (Don't spend all that royalty money in one place!)  I'm very excited about this book.  Congratulations, Ter, and thanks! --S --- On Wed, 6/3/09, Terence Parr wrote: From: Terence Parr Subject: [antlr-interest] "Language design patterns" book available in bet

[il-antlr-interest: 24006] [antlr-interest] Whats wrong with this?

2009-06-03 Thread Mats Ekberg
> Hi! > > I cant figure out why this grammar dont work (I have left out some > not relevant stuff). > This expression works:[ LOOKUP( A1234567890, 9TN ) ] 93 > This dont:[ LOOKUP( A1234567890, ATN ) ] 93 > Why? > > > > prog returns [NationalDutyExprHelper value] : > item (i

[il-antlr-interest: 24005] Re: [antlr-interest] Reverse Iterate over String Template

2009-06-03 Thread Graham Wideman
Hi Christian: > Is there a way to iterate over a string template in reverse order? Until Ter implements list reverse, you might try something like this to apply a template to a list in reverse order: -- maintemplate(arg1) ::= << >> rev(argR) ::= << >> use

[il-antlr-interest: 24004] Re: [antlr-interest] What are the limits?

2009-06-03 Thread Prabhakaran, Asha
From: Prabhakaran, Asha Sent: Wednesday, June 03, 2009 3:35 PM To: 'antlr-inter...@antlr.org' Subject: What are the limits? Hello, I would like to know what the limits are with regard to parsing a file with a large number of entries (say 10,000) in one level and deep level of nesting. -Asha --

[il-antlr-interest: 24003] Re: [antlr-interest] Reverse Iterate over String Template

2009-06-03 Thread Terence Parr
I could have sworn there was a reverse...crap. not there. adding to list for new version. Ter On Jun 3, 2009, at 8:53 AM, Dave Dutcher wrote: > I am new to string template too, but I don't think there is anyway > to apply a template to a multi valued attribute in reverse. Its > easy to wo

[il-antlr-interest: 24002] [antlr-interest] "Language design patterns" book available in beta

2009-06-03 Thread Terence Parr
Well, it had to happen sometime...the new book is finally available in beta at pragmatic programmers website: http://pragprog.com/titles/tpdsl/language-design-patterns There are some excerpts you can take a look at to see what you get. Personally, I think the book is great! ;) The basic dea

[il-antlr-interest: 24001] Re: [antlr-interest] Reverse Iterate over String Template

2009-06-03 Thread Dave Dutcher
I am new to string template too, but I don't think there is anyway to apply a template to a multi valued attribute in reverse. Its easy to work around though, just reverse your data before you add it to the string template object. You can use Array.Reverse() for arrays and lists have a Reverse()

[il-antlr-interest: 24000] Re: [antlr-interest] Inconsistent Parse Results

2009-06-03 Thread Glen Miller
Thanks! that was it. Glen On Wed, 2009-06-03 at 20:43 +0530, Indhu Bharathi wrote: > That is an expected behavior. Seeing ' C' the lexer decides to go for 'CORP' > token instead of OTHER(space) and WORD. You need to do some left factoring > there. Or you can modify your grammar to avoid such pro

[il-antlr-interest: 23999] Re: [antlr-interest] [C Targe t][3.1.3] Parser crashes when looking up a scoped attribute ou tside of a scope context.

2009-06-03 Thread Jim Idle
register wrote: I noticed that the parser crashes whenever a scoped attribute is referenced outside of a scope context. This kind of situation arises when a rule B that is referencing a scoped attribute defined in a rule A may match on its own without requiring a previous match to A.  

[il-antlr-interest: 23998] Re: [antlr-interest] Inconsistent Parse Results

2009-06-03 Thread Indhu Bharathi
That is an expected behavior. Seeing ' C' the lexer decides to go for 'CORP' token instead of OTHER(space) and WORD. You need to do some left factoring there. Or you can modify your grammar to avoid such problems. Here is a suggested correction: grammar Test ; test1 : NUMBER CORP data {System.ou

[il-antlr-interest: 23997] [antlr-interest] [C Target][3.1.3] Parser crashes when looking up a scoped attribute outside of a scope context.

2009-06-03 Thread register
I noticed that the parser crashes whenever a scoped attribute is referenced outside of a scope context. This kind of situation arises when a rule B that is referencing a scoped attribute defined in a rule A may match on its own without requiring a previous match to A. In my specific case the crash

[il-antlr-interest: 23996] Re: [antlr-interest] ocaml target?

2009-06-03 Thread Michael
Am Wednesday 03 June 2009 16:32:00 schrieb Ian Eyberg: > hrm... I guess I can take a look at it this weekend > the instructions here, > http://www.antlr.org/wiki/display/ANTLR3/How+to+build+an+ANTLR+code+generat >ion+target > > make it seem simple to get _started_ > > if I come up with anything I'

[il-antlr-interest: 23995] Re: [antlr-interest] ocaml target?

2009-06-03 Thread Ian Eyberg
hrm... I guess I can take a look at it this weekend the instructions here, http://www.antlr.org/wiki/display/ANTLR3/How+to+build+an+ANTLR+code+generation+target make it seem simple to get _started_ if I come up with anything I'll be sure to let the list know -Ian On 16:22 Tue 02 Jun , J. S

[il-antlr-interest: 23994] [antlr-interest] Inconsistent Parse Results

2009-06-03 Thread Glen Miller
When parsing the following data "2 CORP The Church of Jesus Christ of Latter-day Saints" The parser is choking on Ch? and striping it out. line 1:12 mismatched character 'h' expecting 'O' line 1:28 mismatched character 'h' expecting 'O' Data: Theurch of Jesusrist of Latter-day Saints I am new

[il-antlr-interest: 23993] [antlr-interest] Dot Grammar

2009-06-03 Thread Edgar Espina
H, Can someone provide me grammar for Dot? http://www.graphviz.org/doc/info/lang.html Thanks, -- edgar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email

[il-antlr-interest: 23992] [antlr-interest] Re : Grammer file queries...

2009-06-03 Thread ajit vilasrao shinde
Hello,Thanks for replay. Could you please suggest me some links where I can have some example on this particularly extending existing grammar file. ThanksOn 3 Jun 2009 08:40:18 - "ajit vilasrao shinde" wrote Hello Everyone1. I am new to ANLTR and I have tried out some example available on

[il-antlr-interest: 23991] Re: [antlr-interest] Regarding lexer rules return values

2009-06-03 Thread Raghavendra Anjana (RBEI/EMT2)
Hello Dave, I have used the parser rule with some modifications and started working Thanks a lot for your suggestion.. Regards Raghavendra From: Dave Dutcher [mailto:d...@tridecap.com] Sent: Tuesday, 2. June 2009 8:10 PM To: Raghavendra Anjana (RBEI/EMT2); a

[il-antlr-interest: 23990] Re: [antlr-interest] Grammer file queries...

2009-06-03 Thread Indhu Bharathi
For your second and third question, solution is to use 'composite grammar'. You'll be able to extend the existing grammar file. You can also form a grammar by combining multiple .g files. One file might contain the lexer and the parser itself could be spread across multiple grammar files. There is

[il-antlr-interest: 23989] [antlr-interest] Grammer file queries...

2009-06-03 Thread ajit vilasrao shinde
Hello Everyone1. I am new to ANLTR and I have tried out some example available on site. I have some questions regarding grammer file.2. Is there any way to extend the existing grammer file?3. Is there any way to combine multiple grammer files while lexer/parser code generation. Is it possib

[il-antlr-interest: 23988] [antlr-interest] Some queries regarding grammer file

2009-06-03 Thread ajit vilasrao shinde
Hello Everyone,   I am new to ANLTR and I have tried out some example available on site. I have some questions regarding grammer file.  1> Is there any way to extend the existing grammer file?  2> Is there any way to combine multiple grammer files while lexer/parser code generation