[il-antlr-interest: 32768] [antlr-interest] rulecatch

2011-06-13 Thread jie lu
Hi, I have a problem that if input token did not match correct token, but it did not throw a exception? If throw a exception, i can trap it in "rulecatch" code segment, but if there is no exception throw, how can i got the error information which output in console? can i write a "finally" segment

[il-antlr-interest: 32766] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
Yes, some very interesting info, Thank you kindly. Waverly -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr.org] On Behalf Of The Researcher Sent: Monday, June 13, 2011 12:29 PM To: antlr-interest@antlr.org Subject: Re: [antlr-interest] obj

[il-antlr-interest: 32765] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
I'll start looking in depth tomorrow. Thank you for your help, Waverly -Original Message- From: Mark Wright [mailto:markwri...@internode.on.net] Sent: Monday, June 13, 2011 10:34 AM To: Edwards, Waverly; antlr Subject: Re: [antlr-interest] object oriented compiler implementation >>

[il-antlr-interest: 32764] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread The Researcher
Another place worth searching is http://lambda-the-ultimate.org/ Searching for "design" turns up some interesting info. Eric List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this mess

[il-antlr-interest: 32760] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Mark Wright
On Fri, 10 Jun 2011 17:43:49 -0500, "Edwards, Waverly" wrote: > This is not directly ANTLR related but have any of you come across a guide, > tutorial or book (preferably) for implementing an compiler for an object > oriented language. I don't mean the compiler is created using an object > orien

[il-antlr-interest: 32759] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
I'll start looking for it. I haven't been able to find a preview for it. One of the best things Amazon did is enable previews on books. It makes life so much easier. I also looked for it on Google Books. I haven't found it yet but someone has a preview. Thanks a bunch, Waverly -Or

[il-antlr-interest: 32758] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
I will look into it right away. Thank you, Waverly -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr.org] On Behalf Of Jean-Christophe Le Lann Sent: Sunday, June 12, 2011 8:36 AM To: antlr-interest@antlr.org Subject: Re: [antlr-interest] o

[il-antlr-interest: 32757] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
I've been having a hard time distinguishing what should be part of the runtime and what it solely part of the language. Because that is all that I've been taught, I've been working on what the language should look and feel like. I haven't had to think about the runtime. I'll sleep easier once

[il-antlr-interest: 32756] Re: [antlr-interest] object oriented compiler implementation

2011-06-13 Thread Edwards, Waverly
I thank you for anything that leaps :-) Waverly -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr.org] On Behalf Of Ron Burk Sent: Friday, June 10, 2011 7:59 PM To: Edwards, Waverly Cc: antlr Subject: Re: [antlr-interest] object oriented co

[il-antlr-interest: 32755] [antlr-interest] ANTLR tree construction - list

2011-06-13 Thread Bill Andersen
Folks, Ought to be a pretty simple question. I have the following production in a combined grammar with tree output collection returns [CommonTree name] @init { List rest = new LinkedList(); } : OPEN { $name = pushName(newName()); } ( term { rest.add($term.rest); })+ CLOSE { pop