Discussion:
[ast-developers] C ode example how to enumerate fields of a compound variable?
Tina Harriott
2014-11-03 08:41:03 UTC
Permalink
I'm looking for a C code example how to enumerate the fields in a
compound variable.

Like:
compound ex=( field0=aaa field1=bbb field710=AUA context=0xff0a )

Now I need a C loop which returns these values:
key='field0' value='aaa'
key='field1' value='bbb'
key='field710' value='AUA'
key='context' value='0xff0a'

Tina
--
Tina Harriott - Women in Mathematics
Contact: ***@gmail.com
Loading...