# record

**URL:** <https://community.zeek.org/t/record/490>\
**Category:** Zeek\
**Created:** [April 9, 2004, 12:51am UTC](https://community.zeek.org/t/record/490 "2004-04-09T00:51:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dul](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dul](https://community.zeek.org/u/dul)\
**Post date:** [April 9, 2004, 12:51am UTC](https://community.zeek.org/t/record/490/1 "2004-04-09T00:51:11Z")

</div>

> > Vern,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I find that in parse.y,you write like this  
"decl:  
&nbsp;&nbsp;&nbsp;&nbsp;¡­¡­  
&nbsp;&nbsp;\> TOK\_TYPE global\_id ':' refined\_type opt\_attr opt\_attr\_attr';'  
"  
"refined\_type:  
&nbsp;&nbsp;&nbsp;&nbsp;type\_list '{' type\_decl\_list '}'  
"

Why is there a 'type\_list' here but a type???

Because in the manual,we define a record like this  
"type conn\_id : record{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orig\_h : addr ; # Address of originating host.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Orig\_p: port; # Port used by originator.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resp\_h: addr; # Address of responding host.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resp\_p : port; # Port used by responder.  
&nbsp;&nbsp;&nbsp;&nbsp;};  
"  
There is only one record here ???

Please help me!  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
Tad

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:36pm UTC](https://community.zeek.org/t/record/490/2 "2022-05-06T15:36:59Z")

</div>


