aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter-grammar.y
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-08-20 21:19:28 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-08-20 21:19:28 +0000
commitb85bb70925f642507fb4a292fe60a751bd5f6617 (patch)
tree81ed19d098908e97cd496e0a47560ce90313bac4 /dfilter-grammar.y
parent0a25d2df5b7af97ab60ee9599c2e52c2ace73f60 (diff)
Changed some symbols inside parser, fixed default error message in
dfilter_compile, and removed debug printf that I left in match_selected. svn path=/trunk/; revision=532
Diffstat (limited to 'dfilter-grammar.y')
-rw-r--r--dfilter-grammar.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/dfilter-grammar.y b/dfilter-grammar.y
index 74171c2e80..c8ab1c54b8 100644
--- a/dfilter-grammar.y
+++ b/dfilter-grammar.y
@@ -3,7 +3,7 @@
/* dfilter-grammar.y
* Parser for display filters
*
- * $Id: dfilter-grammar.y,v 1.13 1999/08/20 20:45:14 guy Exp $
+ * $Id: dfilter-grammar.y,v 1.14 1999/08/20 21:19:27 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -139,6 +139,7 @@ dfilter *global_df = NULL;;
%token <string> T_VAL_UNQUOTED_STRING
%token <string> T_VAL_BYTE_STRING
+%token <string> T_VAL_NUMBER_STRING
%token <byte_range> T_VAL_BYTE_RANGE
%token <operand> TOK_AND TOK_OR TOK_NOT TOK_XOR
@@ -226,7 +227,7 @@ relation: numeric_variable numeric_relation numeric_value
;
-numeric_value: T_VAL_UNQUOTED_STRING
+numeric_value: T_VAL_NUMBER_STRING
{
$$ = dfilter_mknode_numeric_value(string_to_value($1));
g_free($1);
@@ -243,7 +244,7 @@ ether_value: T_VAL_BYTE_STRING
}
;
-ipxnet_value: T_VAL_UNQUOTED_STRING
+ipxnet_value: T_VAL_NUMBER_STRING
{
$$ = dfilter_mknode_ipxnet_value(string_to_value($1));
g_free($1);