286N/AS" FICL_WANT_OOP" ENVIRONMENT? drop [if]
286N/A\ Classes to model ficl data structures in objects
286N/A\ John Sadler 14 Sep 1998
286N/A : get-name ( inst class -- c-addr u )
286N/A my=[ .pName get-ptr ] -rot
286N/A : next ( inst class -- link-inst class )
286N/A 2dup --> get-name type cr
286N/A\ ** C - W O R D L I S T
286N/A\ get-current c-wordlist --> ref current
286N/A\ current --> .hash --> ?
286N/A\ current --> .hash --> next --> ?
286N/Aobject subclass c-wordlist
286N/A c-wordlist ref: .parent
286N/A c-word ref: .hash ( first entry in hash table )
286N/A --> get-name ." ficl wordlist " type cr ;
286N/A : set-current drop set-current ;
286N/A : get-name drop wid-get-name ;
286N/A this my=[ .size get ] 0 do
286N/A i this my=[ .hash index ] ( 2list-head )
286N/A 2dup --> get-name type space
286N/A\ : named-wid wordlist postpone c-wordlist metaclass => ref ;
286N/A\ ** C - F I C L S T A C K
object subclass c-ficlstack
--> .sp --> .addr --> prev --> get ;