mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Allow named set constructors. Addresses #983.
This commit is contained in:
parent
a0ad87b4c2
commit
b256642f27
7 changed files with 86 additions and 5 deletions
|
@ -546,6 +546,15 @@ expr:
|
|||
$$ = new RecordConstructorExpr($4, ctor_type);
|
||||
break;
|
||||
case TYPE_TABLE:
|
||||
if ( ctor_type->IsTable() )
|
||||
{
|
||||
$1->Error("constructor type not implemented");
|
||||
YYERROR;
|
||||
}
|
||||
else
|
||||
$$ = new SetConstructorExpr($4, 0, ctor_type);
|
||||
|
||||
break;
|
||||
case TYPE_VECTOR:
|
||||
default:
|
||||
$1->Error("constructor type not implemented");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue