[antlr-interest] Changing the bracket delimiters in StringTemplate3
Bernardo Elayda
belayda at gmail.com
Sat Jul 7 15:37:28 PDT 2007
>Howdy. Try \< and see if that works.
>Ter
That did not work. Here's a short and simplified version of my
tempalte and the problem:
group Format;
toplevel(upperwords,lowerwords) ::= ::= <<
static const u16_t upperdata[]= {
<upperwords:{a|0x<a>}; wrap, separator=", ">
};
c = d << 3;
e = f >> 8;
static const u16_t lowerdata[]= {
<lowerwords:{b|0x<b>;wrap, separator=", ">
};
>>
I tried:
c = d \<< 3;
e = f \>> 8;
and
c = d \<<< 3;
e =f \<>> 8;
neither of these worked.
In the real code, the "<<" and ">>" are in multiple places.
Perhpas I misunderstood the suggestion?
-Bernardo Elayda
More information about the antlr-interest
mailing list