Up to [local] / OpenXM_contrib2 / asir2000 / parse
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: RELEASE_1_1_3
Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 22 06:36:43 2000 UTC (23 years, 11 months ago) by noro
Branch: MAIN
CVS Tags: maekawa-ipv6,
STABLE_1_1_3,
RELEASE_1_1_3
Changes since 1.6: +7 -7
lines
Diff to previous 1.6 (unified)
One can use indices for specifying a member of structure. example: [5] struct afo {a,b,c}; <--- definition of structure 'afo' 0 [6] A=newstruct(afo); <--- construction of an 'afo' {0,0,0} [7] A->a = newvect(3); <--- a vector is assigned to A->a [ 0 0 0 ] [8] A->a[1]=2; <--- 2 is assigned to A->a[1] 2 [9] A; {[ 0 2 0 ],0,0} [10] A->b = newstruct(afo); <--- another 'afo' is assigned to A->b. {0,0,0} [11] A; {[ 0 2 0 ],{0,0,0},0} [12] A->b->c=newvect(3); <--- a vector is assigned to A->b->c [ 0 0 0 ] [13] A->b->c[0] = newstruct(afo); <--- another 'afo' is assigned to A->b->c[0] {0,0,0} [14] A; {[ 0 2 0 ],{0,0,[ {0,0,0} 0 0 ]},0} [15] A->b->c[0]->a = newvect(2); <--- another 'afo' is assigned to A->b->... [ 0 0 ] [16] A->b->c[0]->a[1]=x; <--- 'x' is assigned to A->b->c[0]->a[1] x [17] A; <--- The current A {[ 0 2 0 ],{0,0,[ {[ 0 x ],0,0} 0 0 ]},0} [18]