[antlr-interest] Hex or Unicode char definition?
Andreas Volz
lists at brachttal.net
Sun Sep 13 14:38:12 PDT 2009
Hello,
how is it possible to define chars as hex or unicode chars. e.g.:
fragment ALPHA
: 'a'..'z' | 'A'..'Z' | '.' | ',' | ' ' | '@'
I have a syntax in rfc2234[1] format and there hex chars are defined.
How should I transfer this to ANTLR? e.g.:
CHAR = %x01-7F
; Any C0 Controls and Basic Latin, excluding NULL from
; Code Charts, pages 7-6 through 7-9 in [UNICODE]
regards
Andreas
[1] http://tools.ietf.org/html/rfc2234
More information about the antlr-interest
mailing list