mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove list
from Zeek grammar
Using it would make Zeek segfault (at least in locals). It has been an error for 15 years.
This commit is contained in:
parent
a22837536d
commit
826ed4cef5
2 changed files with 1 additions and 18 deletions
18
src/parse.y
18
src/parse.y
|
@ -13,7 +13,7 @@
|
|||
%token TOK_CONSTANT TOK_COPY TOK_COUNT TOK_DEFAULT TOK_DELETE
|
||||
%token TOK_DOUBLE TOK_ELSE TOK_ENUM TOK_EVENT TOK_EXPORT TOK_FALLTHROUGH
|
||||
%token TOK_FILE TOK_FOR TOK_FUNCTION TOK_GLOBAL TOK_HOOK TOK_ID TOK_IF TOK_INT
|
||||
%token TOK_INTERVAL TOK_LIST TOK_MODULE
|
||||
%token TOK_INTERVAL TOK_MODULE
|
||||
%token TOK_LOCAL TOK_WHEN_LOCAL
|
||||
%token TOK_NEXT TOK_OF TOK_OPAQUE TOK_PATTERN TOK_PATTERN_END TOK_PATTERN_TEXT
|
||||
%token TOK_PORT TOK_PRINT TOK_RECORD TOK_REDEF
|
||||
|
@ -1210,22 +1210,6 @@ simple_type:
|
|||
$$ = $4;
|
||||
}
|
||||
|
||||
| TOK_LIST
|
||||
{
|
||||
set_location(@1);
|
||||
// $$ = new TypeList();
|
||||
reporter->Error("list type not implemented");
|
||||
$$ = 0;
|
||||
}
|
||||
|
||||
| TOK_LIST TOK_OF type
|
||||
{
|
||||
set_location(@1);
|
||||
// $$ = new TypeList($3);
|
||||
reporter->Error("list type not implemented");
|
||||
$$ = 0;
|
||||
}
|
||||
|
||||
| TOK_VECTOR TOK_OF type
|
||||
{
|
||||
set_location(@1, @3);
|
||||
|
|
|
@ -347,7 +347,6 @@ in return TOK_IN;
|
|||
int return TOK_INT;
|
||||
interval return TOK_INTERVAL;
|
||||
is return TOK_IS;
|
||||
list return TOK_LIST;
|
||||
local return in_when_cond ? TOK_WHEN_LOCAL : TOK_LOCAL;
|
||||
module return TOK_MODULE;
|
||||
next return TOK_NEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue