[il-antlr-interest: 26277] Re: any language compiler(or interpreter)

2009-10-14 Thread lucky
Hi friends, Thanks for your help. I saw ANTLR Def Ref Guide. I don't have much time. I want a grammar file of any simple interpreter or compiler which is working to get quick idea Can anybody post it Thanks in advance Kiso On Oct 15, 12:07 am, Terence Parr wrote: > new lang impl book is what

[il-antlr-interest: 26276] Pamela Anderson

2009-10-14 Thread Pamela Anderson
Pamela Anderson in Amsterdam- +18 pics http://www.banatmsr.com/a7a Pamela Anderson in Amsterdam- +18 pics http://www.banatmsr.com/a7a Pamela Anderson in Amsterdam- +18 pics http://www.banatmsr.com/a7a Pamela Anderson in Amsterdam- +18 pics http://www.banatmsr.com/a7a --~--~-~--~~---

[il-antlr-interest: 26275] Re: [antlr-interest] ANTLR input and output

2009-10-14 Thread Evan Metheny
Tim, (Please reply to the mail group as well) - On Wed, Oct 14, 2009 at 4:17 PM, wrote: > Wow! Thank you for getting back with me so soon. To clear things up, let me > give you a for instance. This will also give you a glimps of a rule engine > (which I think will grow in

[il-antlr-interest: 26274] URGENT CLICK HERE

2009-10-14 Thread Said Bahri
URGENT CLICK HERE Hello all this for you its 100% free ALL FRAUDS http://fraud.comlu.com/ http://fraud.host22.com/ FITNESS GUIDE FOR YOU http://fitness.host56.com/ CREDIT CARD FOR YOU http://card.host22.com/ FOR BECOME AN ENTREPRENEUR FOLLOWED THIS GUIDE http://entrepreneur.host22.com/ CHOOSING

[il-antlr-interest: 26273] Re: [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread Gerald Rosenberg
At 03:46 PM 10/14/2009, Bill Andersen wrote: >On Oct 14, 2009, at 16:38 , John B. Brodie wrote: > > > Greetings! > > > > On Wed, 2009-10-14 at 16:15 -0400, Bill Andersen wrote: > >> FYI, all. The problem described does NOT occur without rewrite = > >> true > >> > > Isn't rewrite = true for Tree

[il-antlr-interest: 26272] Internet Based Video Customer Service Assistants Wanted

2009-10-14 Thread merrill kary
FAST, EASY AND PROFITABLE WORK,You'll earn $450.00 every day!Video Assistants are paid $30 for each video request they process.It is reasonable to earn $150 from 1 hour of work. http://alturl.com/meab --~--~-~--~~~---~--~~ You received this message because you are s

[il-antlr-interest: 26271] Re: [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread Bill Andersen
On Oct 14, 2009, at 16:38 , John B. Brodie wrote: > Greetings! > > On Wed, 2009-10-14 at 16:15 -0400, Bill Andersen wrote: >> FYI, all. The problem described does NOT occur without rewrite = >> true >> > Isn't rewrite = true for Tree grammars only? -- your rule below looks > like a Parser rul

[il-antlr-interest: 26270] Re: [antlr-interest] ANTLR input and output

2009-10-14 Thread Evan Metheny
Tim, Not exactly sure what you are trying to ask, but ill take a stab at it. Im not sure what Sun's JS94 Standard is? Im guessing it has to do with some sort of data traversal techniques. But I am unclear how ANTLR relates, except for the fact that antlr could probably be used to re-write this J

[il-antlr-interest: 26269] College Girls

2009-10-14 Thread College Girls
Indian College Girls Funking In hostel Wat men Real pictures , aunties http://www.banatmsr.com/a7a http://www.banatmsr.com/a7a http://www.banatmsr.com/a7a http://www.banatmsr.com/a7a pictures http://www.banatmsr.com/a7a http://www.banatmsr.com/a7a http://www.banatmsr.com/a7a http://www.banatmsr

[il-antlr-interest: 26268] Re: [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread John B. Brodie
Greetings! On Wed, 2009-10-14 at 16:15 -0400, Bill Andersen wrote: > FYI, all. The problem described does NOT occur without rewrite = true > Isn't rewrite = true for Tree grammars only? -- your rule below looks like a Parser rule to me - altho can't really tell for sure... > On Oct 14, 2009, a

[il-antlr-interest: 26267] Re: [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread Bill Andersen
FYI, all. The problem described does NOT occur without rewrite = true On Oct 14, 2009, at 11:20 , Bill Andersen wrote: > Hi folks > > I have this production > > assertion > : sentence -> ^(ASSERTION NAME["foo"] sentence) > ; > > in a tree grammar with rewrite = true. This is meant

[il-antlr-interest: 26266] [antlr-interest] ANTLR input and output

2009-10-14 Thread tmarcoe
Hello, I am a bit new to ANTLR (I love it by the way) so if this is an obvious question, forgive me in advance. I am in the process of writing a rule engine. I know that Sun came up with the JS94 standard but I have some ideas to enhance that standard. In order to do this, I'm using AN

[il-antlr-interest: 26265] Re: [antlr-interest] any language compiler(or interpreter)

2009-10-14 Thread Terence Parr
new lang impl book is what you want http://pragprog.com/titles/tpdsl/language-design-patterns also http://www.antlr.org/wiki/display/ANTLR3/Pie http://www.antlr.org/wiki/display/ANTLR3/LLVM http://www.antlr.org/wiki/display/ANTLR3/Toy+ST+implementation Ter On Oct 13, 2009, at 11:51 PM, Siva B

[il-antlr-interest: 26264] Re: [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread Kirby Bohling
I'm not sure what is going on there. I'd start by removing the NAME["foo"] from that rule and see what happens. You might also try including a simplified version of sentence that continues to have that problem. In my experience, the process of minimizing the test case to submit to the list iden

[il-antlr-interest: 26263] Re: [antlr-interest] How to do "not" in a syntactic predicate?

2009-10-14 Thread Indhu Bharathi
Here is the complete grammar: grammar Test; q : a ((b)=>NOWAY | /*nothing*/); a : 'asd'; b : 'qwe'; fragment NOWAY: ; 'q' will accept "asd" but not "asdqwe". Am I missing something?

[il-antlr-interest: 26262] Re: [antlr-interest] How to do "not" in a syntactic predicate?

2009-10-14 Thread Naveen Chawla
Yikes, that doesn't seem to work, it seems to give a normal positive predicate for me. (Or something). But not "if a not followed by b" => a. ? 2009/10/14 Indhu Bharathi > The other say I replied from my ipod and was not able to test it with > ANTLR. I checked it now and the code doesn’t work

[il-antlr-interest: 26261] Re: [antlr-interest] any language compiler(or interpreter)

2009-10-14 Thread Evan Metheny
On Wed, Oct 14, 2009 at 10:49 AM, Evan Metheny wrote: > Kiso, > > Look up the book "The Definitive ANTLR Reference" by Terence Parr for > complete information on ANTLR. > > Check out the website specifically the wiki: > http://www.antlr.org/wiki/display/ANTLR3/ANTLR+3+Wiki+Home > and > http://www

[il-antlr-interest: 26260] [antlr-interest] AST rewrite infinite loop

2009-10-14 Thread Bill Andersen
Hi folks I have this production assertion : sentence -> ^(ASSERTION NAME["foo"] sentence) ; in a tree grammar with rewrite = true. This is meant to tack a name onto the results of parsing a 'sentence'. Thing is when I parse a sample input I get an infinite tree that looks

[il-antlr-interest: 26259] Re: [antlr-interest] How to do "not" in a syntactic predicate?

2009-10-14 Thread Indhu Bharathi
The other say I replied from my ipod and was not able to test it with ANTLR. I checked it now and the code doesn't work for me too. However you can try a variant: q : a ((b)=>NOWAY | /*nothing*/) ; fragment NOWAY : ;

[il-antlr-interest: 26257] Re: [antlr-interest] Syntactic predicates in lexer

2009-10-14 Thread Indhu Bharathi
Doesn’t a simple approach like the one shown below work? r : ASSIGNMENTOP | KEYWORDMARKER ; ASSIGNMENTOP : ':=' ; KEYWORDMARKER : ':' ; I assume you wa

[il-antlr-interest: 26256] Re: [antlr-interest] How to do "not" in a syntactic predicate?

2009-10-14 Thread Naveen Chawla
Jim, being new to predicates I realised soon after this that you were talking about token lookaheads. And yes I do need a syntactic lookahead (but thas is negative). In beginner-speak, one of my "smaller" rules is "consuming" something that should belong to a "larger" rule. This would be correct if

[il-antlr-interest: 26255] [antlr-interest] Syntactic predicates in lexer

2009-10-14 Thread Loïc Quéran
Hi, This is probably a very simple question, but I can't get syntactic predicates to work in lexer rules: AssignmentOperatorOrKeywordMarker : ':=' => AssignmentOperator | ':' => KeywordMarker ; KeywordMarker :':' ; AssignmentOperator :':=' ; What I want to achieve is to

[il-antlr-interest: 26254] Re: [antlr-interest] Learning the basics of ANTLR

2009-10-14 Thread Graham Wideman
Hi Evan -- couple more points on your xml grammar directly relating to your questions. 1. On checking, as I suspected yesterday, the pattern: ('x'|'X') ('m'|'M') ('l'|'L') ... is not scoring a hit because the parser slurps up "xml" as a GENERIC_ID, not as a sequence of three single-character

[il-antlr-interest: 26253] Re: [antlr-interest] Learning the basics of ANTLR

2009-10-14 Thread Graham Wideman
Just a minor fixup for anyone who stumbles on this thread. Yesterday I wrote: >So far as I know, there is no impact of order in which the lexer and parser >rules appear in the .g file. ... I later realized this could be misleading. I meant order of lexer rules relative to parser rules. Ie: lex