[stringtemplate-interest] line wrap results for antlr v3

Terence Parr parrt at cs.usfca.edu
Mon May 29 14:56:37 PDT 2006


ok, so it doesn't work so well:

             else if ( LA1_0==-1||LA1_0==SEMI||LA1_0==107|| 
(LA1_0>=117 && LA
                                                                         
     1
             _0<=129)||LA1_0==131 ) {
                 alt1=2;

note that the LA1_0 var is LA<decision>_<k> and ST breaks it like  
mad.  Perhaps we should only allow it to break in the middle of a  
multi-valued attribute?  I don't want to have to group all the stuff  
that should not break.  Maybe we say what *can* be broken with multi- 
valued attributes being wrappable by default.  Maybe

<values; wrap=true>

to allow wrapping?

Damn!  Just when I thought I had it!
Ter


More information about the stringtemplate-interest mailing list