[il-antlr-interest: 24652] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
Changing the quotes on the println statement worked. Thanks a bunch Tom. Bryan From: Tom Nurkkala [mailto:tnurkk...@cse.taylor.edu] Sent: Tuesday, July 14, 2009 16:00 To: Bryan S Follins Cc: antlr-inter...@antlr.org Subject: Re: [antlr-interest] Simple code with a simple problem

[il-antlr-interest: 24651] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Tom Nurkkala
On Tue/14-Jul, at 5:17 PM, Bryan S Follins wrote: > Tom, > I tried that, I went to Debug. As a matter of fact I tried > highlighting both the “text” and “file” radio buttons while using > start rule “r” and it gave me an error “Compiler failed with result > code 1.” You need to change th

[il-antlr-interest: 24650] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
I have to go out for about 90 minutes, so if I don't answer, I'm not ignoring anyone. I'm appreciating all the help I'm getting. Thanks. From: Tom Nurkkala [mailto:tnurkk...@cse.taylor.edu] Sent: Tuesday, July 14, 2009 15:09 To: Bryan S Follins Cc: antlr-inter...@antlr.org Subject: Re: [an

[il-antlr-interest: 24649] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
Pasted below is the error description I get when I look at the console after getting "Compiler failed with result code 1." C:\Documents and Settings\Owner\My Documents\5135\Summer5135\output\TParser.java:84: unclosed character literal [15:23:22] System.out.println('invoke '+(ID1!=

[il-antlr-interest: 24648] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
Tom, I tried that, I went to Debug. As a matter of fact I tried highlighting both the "text" and "file" radio buttons while using start rule "r" and it gave me an error "Compiler failed with result code 1." From: Tom Nurkkala [mailto:tnurkk...@cse.taylor.edu] Sent: Tuesday, July 14, 2009 1

[il-antlr-interest: 24647] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Tom Nurkkala
On Tue/14-Jul, at 5:00 PM, Bryan S Follins wrote:Found my generation error.  I was using () instead of {} for the java code.  Generation is good. However, it still does not debug the code.  When I run the debugger I get: “Compiler failed with result code 1.”   Does anyone know that means?I copied y

[il-antlr-interest: 24646] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Terence Parr
are you sure that the file name is called T.g in AW? T On Jul 14, 2009, at 3:00 PM, Bryan S Follins wrote: > Found my generation error. I was using () instead of {} for the > java code. Generation is good. However, it still does not debug the > code. > > When I run the debugger I get: “Co

[il-antlr-interest: 24645] Re: [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
Found my generation error. I was using () instead of {} for the java code. Generation is good. However, it still does not debug the code. When I run the debugger I get: "Compiler failed with result code 1." Does anyone know that means? From: antlr-interest-boun...@antlr.org [mailto:

[il-antlr-interest: 24644] [antlr-interest] Simple code with a simple problem

2009-07-14 Thread Bryan S Follins
I tried creating a simple grammar in ANTLR Works as follows: grammar T; r : 'call' ID ';' (System.out.println('invoke '+$ID.text);); ID: 'a'..'z'+; WS : (' ' | '\n' | '\r')+ ($channel=HIDDEN;); I got

[il-antlr-interest: 24642] Re: [antlr-interest] Parsing HAML - significant and insignificant whitespaces

2009-07-14 Thread Nick Vlassopoulos
Sorry for reposting, but I copied the wrong link, http://www.antlr.org/grammar/1078018002577/python.tar.gz Nikos On Tue, Jul 14, 2009 at 5:57 PM, Nick Vlassopoulos wrote: > Hi Dmitiry, > > I am not sure if this is what you are looking for, but you might want to > have a look > on how the pyth

[il-antlr-interest: 24641] Re: [antlr-interest] Parsing HAML - significant and insignificant whitespaces

2009-07-14 Thread Nick Vlassopoulos
Hi Dmitiry, I am not sure if this is what you are looking for, but you might want to have a look on how the python grammar handles identation. See for example: http://www.antlr.org/grammar/1200715779785/Python.g Best Regards, Nikos On Tue, Jul 14, 2009 at 5:43 PM, Dmitiry Nagirnyak wrote: >

[il-antlr-interest: 24640] [antlr-interest] Parsing HAML - significant and insignificant whitespaces

2009-07-14 Thread Dmitiry Nagirnyak
Hi, I am researching possibility to parse HAML syntax to port it to .NET. There is project call NHAML but uses Regular Expressions instead of regular parser. While it is working great it has certain limitations. So people start thinking about a real parser. And years ago I did some wotks with ANT