From 6a823008b73b1d8937d9bd4d50ef4ab18cde50f2 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Thu, 5 Aug 1999 16:42:31 +0000 Subject: Logical operands needed to set the yylval as well as return the token to the yacc parser. svn path=/trunk/; revision=446 --- dfilter-scanner.l | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'dfilter-scanner.l') diff --git a/dfilter-scanner.l b/dfilter-scanner.l index d5ffc56252..6a679b63ca 100644 --- a/dfilter-scanner.l +++ b/dfilter-scanner.l @@ -3,7 +3,7 @@ /* dfilter-scanner.l * Scanner for display filters * - * $Id: dfilter-scanner.l,v 1.2 1999/08/03 15:04:25 gram Exp $ + * $Id: dfilter-scanner.l,v 1.3 1999/08/05 16:42:31 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -98,16 +98,16 @@ hexsep [-:.] [\t\n ]+ /* ignore whitespace */ -and|\&\& { return TOK_AND; } -or|\|\| { return TOK_OR; } -not|\! { return TOK_NOT; } -xor|\^\^ { return TOK_XOR; } -eq|\=\= { return TOK_EQ; } -ne|\!\= { return TOK_NE; } -gt|\> { return TOK_GT; } -ge|\>\= { return TOK_GE; } -lt|\< { return TOK_LT; } -le|\<\= { return TOK_LE; } +and|\&\& { yylval.operand = TOK_AND; return TOK_AND; } +or|\|\| { yylval.operand = TOK_OR; return TOK_OR; } +not|\! { yylval.operand = TOK_NOT; return TOK_NOT; } +xor|\^\^ { yylval.operand = TOK_XOR; return TOK_XOR; } +eq|\=\= { yylval.operand = TOK_EQ; return TOK_EQ; } +ne|\!\= { yylval.operand = TOK_NE; return TOK_NE; } +gt|\> { yylval.operand = TOK_GT; return TOK_GT; } +ge|\>\= { yylval.operand = TOK_GE; return TOK_GE; } +lt|\< { yylval.operand = TOK_LT; return TOK_LT; } +le|\<\= { yylval.operand = TOK_LE; return TOK_LE; } true { yylval.operand = TOK_TRUE; return TOK_TRUE; } false { yylval.operand = TOK_FALSE; return TOK_FALSE; } -- cgit v1.2.3