[il-antlr-interest: 25553] Re: [antlr-interest] Using Antlr v3 with JDK 1.4

2009-08-31 Thread Steve Ebersole
; 260 King Street East, Toronto, Ontario M5A 4L5, Canada > > Voice: (416) 933-5046 | Fax: (416) 933-5001 > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- Steve Ebe

[il-antlr-interest: 23755] Re: [antlr-interest] Modifying tree based on semantic content

2009-05-17 Thread Steve Ebersole
just caused ANTLR to complain that > comparisonOperator was an unexpected token. I also tried inserting a > third predicate in the bottom group that would test whether $rhs was > null and just put out the $lhs in that case but that didn't work either. > > Can somebody please put me out of m

[il-antlr-interest: 23726] Re: [antlr-interest] Modifying tree based on semantic content

2009-05-15 Thread Steve Ebersole
t needs to evaluate to a boolean value. I believe these are called rewrite predicates(?). And yes, just like regular predicates you can list multiples and the first match will "win". > Is that correct? > > D > > > On May 15, 2009, at 7:26 AM, Steve

[il-antlr-interest: 23724] Re: [antlr-interest] Modifying tree based on semantic content

2009-05-15 Thread Steve Ebersole
ules (for example)? Or do I have to > construct my own trees? > > > Thanks, > D > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- Steve Ebersole Hibernat

[il-antlr-interest: 23658] Re: [antlr-interest] ToStringTree

2009-05-11 Thread Steve Ebersole
http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- Steve Ebersole Hibernate.org List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~~~---~--~---

[il-antlr-interest: 23504] Re: [antlr-interest] "explosion" rewrite

2009-05-04 Thread Steve Ebersole
Key collationSpecification? orderingSpecification? )+ ; (I can remove the collationSpecification and orderingSpecification subrules if need be later, just wanted to try as is and see what happened). On Fri, 2009-05-01 at 17:08 -0700, Terence Parr wrote: > On May 1, 2009, at 5:03 PM, Steve Ebersole

[il-antlr-interest: 23482] Re: [antlr-interest] "explosion" rewrite

2009-05-01 Thread Steve Ebersole
something like VECTOR_EXPR = VECTOR_EXPR) ;) On Fri, 2009-05-01 at 17:08 -0700, Terence Parr wrote: > On May 1, 2009, at 5:03 PM, Steve Ebersole wrote: > > > Lets say sortKey comes back as > > ^( VECTOR_EXPR > >^( COLUMN > >ALIAS_REF[&quo

[il-antlr-interest: 23481] Re: [antlr-interest] "explosion" rewrite

2009-05-01 Thread Steve Ebersole
le property might map to multiple columns; in that case buildPropertyColumns() returns the VECTOR_EXPR On Fri, 2009-05-01 at 13:50 -0700, Jim Idle wrote: > Steve Ebersole wrote: > > Is there a syntax to "explode" a subrule result (sorry don't know a > > better term

[il-antlr-interest: 23479] Re: [antlr-interest] "explosion" rewrite

2009-05-01 Thread Steve Ebersole
Steve, what's the tree you need rather than the output? > Thanks, > T > On May 1, 2009, at 1:14 PM, Steve Ebersole wrote: > > > Is there a syntax to "explode" a subrule result (sorry don't know a > > better term). > > > > I have a

[il-antlr-interest: 23474] [antlr-interest] "explosion" rewrite

2009-05-01 Thread Steve Ebersole
need to have happen is "sort_key1 asc, sort_key2 asc". I started down the path of trying an @after in the sortSpecification and calling out to some java code to mutate the tree manually. But I'd prefer to keep this in the grammar if at all possible. -- Steve Ebersole Hibernate.o

[il-antlr-interest: 23460] Re: [antlr-interest] Flumoxed by Javascript Target

2009-04-30 Thread Steve Ebersole
not in there! I will try to fix all that up today as > it renders the sources jars useless. The pom.xml files can be downloaded > separately from hudson in the same place as the sources jar, but that > isn't quite satisfactory. > > Jim > > List: http://www.antlr.org/mailm

[il-antlr-interest: 23457] Re: [antlr-interest] template rewrites

2009-04-30 Thread Steve Ebersole
Ok, now that my email is supposedly yet again fixed I'll try sending this again :) On Wed, 2009-04-29 at 18:43 -0500, Steve Ebersole wrote: > I am trying to develop a grammar which uses StringTemplate for its > rendering. But I find something rather annoying and wanted to see if

[il-antlr-interest: 23456] Re: [antlr-interest] template rewrites

2009-04-30 Thread Steve Ebersole
And... On Wed, 2009-04-29 at 18:49 -0500, Steve Ebersole wrote: > Also, for "simple token" matches I end up with stuff like: > > numeric_literal > : INTEGER_LITERAL -> template(id={$INTEGER_LITERAL.text}) "" > | DECIMAL_LITERAL

[il-antlr-interest: 23432] Re: [antlr-interest] template rewrites

2009-04-29 Thread Steve Ebersole
OATING_POINT_LITERAL -> template(id={$FLOATING_POINT_LITERAL.text}) "" ; Is the a better pattern which can be applied here? On Wed, 2009-04-29 at 18:43 -0500, Steve Ebersole wrote: > I am trying to develop a grammar which uses StringTemplate for its > rendering. But I find something r

[il-antlr-interest: 23431] [antlr-interest] template rewrites

2009-04-29 Thread Steve Ebersole
ndant to me. Is there something I am missing? -- Steve Ebersole Hibernate.org List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~~~---~--~~ You received this mes