wireshark/epan/dfilter
João Valverde db18865e55 dfilter: Save token value to syntax tree
When parsing we save the token value to the syntax tree. This is
useful for better error reporting. Use it to report an invalid
entity for the slice operation. Before only the memory location
was reported, which is not a good error message.

Before:
  % dftest '"01:02:03:04"[0:3] == foo'
  Filter: ""01:02:03:04"[0:3] == foo"
  dftest: Range is not supported for entity <0x7f6c84017740> of type STRING

After:
  % dftest '"01:02:03:04"[0:3] == foo'
  Filter: ""01:02:03:04"[0:3] == foo"
  dftest: Range is not supported for entity 01:02:03:04 of type STRING

When creating a new node from an old one we need to copy the token
value. Simple tokens such as RBRACKET, COMMA and COLON are
not part of the AST and don't have an associated semantic value.
2021-10-01 16:04:37 +00:00
..
.editorconfig HTTPS In Even More Places, update some links. 2019-07-28 04:21:18 +00:00
CMakeLists.txt CMake: Use CheckAPI's abort/termoutput with dissectors only 2021-03-01 20:59:39 +00:00
dfilter-int.h dfilter: Clean up handling of "deprecated" tokens 2021-09-30 17:26:19 +01:00
dfilter-macro.c dfilter: Fix handling of escaped quotes in macros 2021-05-28 10:36:41 +00:00
dfilter-macro.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
dfilter.c dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00
dfilter.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
dfunctions.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
dfunctions.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
dfvm.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
dfvm.h dfilter, ftypes: get rid of FT_PCRE. 2021-03-21 03:27:44 -07:00
drange.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
drange.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
gencode.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
gencode.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
grammar.lemon dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00
scanner.l dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00
semcheck.c dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00
semcheck.h dfilter: Clean up handling of "deprecated" tokens 2021-09-30 17:26:19 +01:00
sttype-function.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-function.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
sttype-integer.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-pointer.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-range.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-range.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
sttype-set.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-set.h dfilter: add range support to set membership operator ("f in {x .. y}") 2018-04-18 03:47:02 +00:00
sttype-string.c dfilter: Display syntax tree for debugging 2021-09-30 16:29:11 +01:00
sttype-test.c dfilter: Fixup syntax tree node display 2021-09-30 19:11:17 +01:00
sttype-test.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
syntax-tree.c dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00
syntax-tree.h dfilter: Save token value to syntax tree 2021-10-01 16:04:37 +00:00