aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/grammar.lemon
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-11 21:20:52 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-11 21:20:52 +0000
commitb9b4a23834e80e36c180857bf3cb7065407bd9e0 (patch)
treecade820d9fbe87bc2e2078779e17f8518573ad57 /epan/dfilter/grammar.lemon
parent87e20f806752c0d1e60d54bb7e51f5b4677693b4 (diff)
Make an existence test of an arbitrary entity syntactically valid, but
check, in the semantics-checking phase, that we're testing a field, so that we can give a better message than, for example, "Unexpected end of filter string." for an existence test with a misspelled field name. svn path=/trunk/; revision=10043
Diffstat (limited to 'epan/dfilter/grammar.lemon')
-rw-r--r--epan/dfilter/grammar.lemon6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dfilter/grammar.lemon b/epan/dfilter/grammar.lemon
index 8a7e280796..8b11bc393a 100644
--- a/epan/dfilter/grammar.lemon
+++ b/epan/dfilter/grammar.lemon
@@ -1,4 +1,4 @@
-/* $Id: grammar.lemon,v 1.7 2003/12/06 16:35:19 gram Exp $ */
+/* $Id: grammar.lemon,v 1.8 2004/02/11 21:20:52 guy Exp $ */
%include {
#ifdef HAVE_CONFIG_H
@@ -143,10 +143,10 @@ logical_test(T) ::= TEST_NOT expr(E).
sttype_test_set1(T, TEST_OP_NOT, E);
}
-logical_test(T) ::= FIELD(F).
+logical_test(T) ::= entity(E).
{
T = stnode_new(STTYPE_TEST, NULL);
- sttype_test_set1(T, TEST_OP_EXISTS, F);
+ sttype_test_set1(T, TEST_OP_EXISTS, E);
}