[stringtemplate-interest] Two-Character-Bracket.templateLexer

Dreyer Ulf (CR/APA3) Ulf.Dreyer at de.bosch.com
Fri Mar 9 02:28:53 PST 2007


Hi Everyone,


 I think I need to write my own TemplateLexer because neither "$" nor "</>" are
 acceptable.
 My first try was to substitute the occurrences  of '<' and '>' in angle.bracket.template.g  (c#-edition)
 with ACTIONBEGIN and ACTIONEND respectively.
 This does not work because subrules cannot be inverted.
 
 Has anybody written a custom templateLexer which uses a two-character delimiter?
 
 I'd like to try for <$ ...$>  as it is not used in my target language AND it is possible to
 differentiate begin- and end-delimiters.


 Ulf

-- 
Dipl. Inf. Ulf Dreyer 
Robert Bosch GmbH 
Zentralbereich Forschung und Vorausentwicklung 
Software und Systemengineering in der Fertigungsautomatisierung CR/APA3 
Postfach 30 02 40 D-70442 Stuttgart 
Tel.: 0711/811- 34365 
Fax: 0711/811-518 34365 
eMail: ulf . dreyer at de . bosch . com 
Robert Bosch GmbH, Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 14000 Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, Siegfried Dais; Bernd Bohr, Wolfgang Chur, Rudolf Colm, Gerhard Kümmel, Wolfgang Malchow, Peter Marks; Volkmar Denner, Peter Tyroller.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20070309/4429cc46/attachment.html 


More information about the stringtemplate-interest mailing list