gram 2003/07/24 22:44:04 CDT
Modified files:
epan/ftypes ftype-bytes.c ftype-double.c
ftype-integer.c ftype-ipv4.c ftype-none.c
ftype-string.c ftype-time.c
ftype-tvbuff.c ftypes-int.h ftypes.c
ftypes.h
Log:
Add to the fundamental types passed between the scanner and the parser.
Besides "STRING", there is now "UNPARSED_STRING", where the distinction
is that "STRING" was a double-quoted string and "UNPARSED_STRING" is just
a sequence of characters that the scanner didn't know how to scan/parse,
so it's up to the Ftype to parse it.
This gives us more flexibility and prepares the dfilter parsing engine
for the upcoming addition of the "contains" operator.
In the process of doing this, I also re-did the double-quoted string
support in the scanner, so that instead of the naively-simple support we
used to have, double-quoted strings now can have embedded dobule-quotes,
embedded octal sequences, and embedded hexadecimal sequences:
"\"" embedded double-quote
"\110" embedded octal
"\x48" embedded hex
Enhance the dfilter unit test script to be able to run a single collection
of tests instead of having to run all of them all the time.
Revision Changes Path
1.16 +19 -13 ethereal/epan/ftypes/ftype-bytes.c
1.9 +6 -4 ethereal/epan/ftypes/ftype-double.c
1.14 +26 -15 ethereal/epan/ftypes/ftype-integer.c
1.11 +6 -4 ethereal/epan/ftypes/ftype-ipv4.c
1.6 +2 -1 ethereal/epan/ftypes/ftype-none.c
1.10 +6 -3 ethereal/epan/ftypes/ftype-string.c
1.19 +6 -4 ethereal/epan/ftypes/ftype-time.c
1.9 +3 -2 ethereal/epan/ftypes/ftype-tvbuff.c
1.9 +3 -1 ethereal/epan/ftypes/ftypes-int.h
1.10 +18 -1 ethereal/epan/ftypes/ftypes.c
1.18 +5 -1 ethereal/epan/ftypes/ftypes.h