Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Oberon > Linked list of ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 454 of 476
Post > Topic >>

Linked list of binary trees plus what ?

by problems@[EMAIL PROTECTED] Dec 8, 2007 at 10:13 AM

ETH oberon has a nice utility called EditKeys which effectively
allows defining 'hot-keys'.  Macro definitions of user chosen 
strings are activated by the <insert> key.
 
 In order to understand certain parts of the manual/Tool  Eg.:
  "Text stretches are pushed on a parameter stack when processed.
	Built-in functions may pop parameter(s) from that stack.

	^0	pops a parameter and causes textual insertion.
	^1	pops a parameter and inserts the corresponding ascii character.
....etc.",   I looked at the source code.

But the data-structures confuse me.     Here are some:--

		SequenceDesc = RECORD
			next: Sequence;   <-- linked list
			sym: INTEGER;
			cmd: CHAR;
			def: Definition;
			stretch: Texts.Buffer
		END;
		
		DefinitionDesc = RECORD
			left, right: Definition;  <-- binary tree
			in: BOOLEAN;
			trig: Ident;  <-- ARRAY IdentLen OF CHAR
			seq: Sequence
		END;

It seems to me that 'Sequence' is a linked list of Definitions
with nodes: sym, cmd, stretch.
And that Definition is a binary tree.
But the confusing/un-natural thing is that Definition's nodes
have also further Sequence-linkedLists !

Q - is this correct ?

I'm guessing that the data structures employed are those 
which naturally occur for macro/compilers/?? 

Can anybody give me a clue of how to better understand 
this application ?  It originates from 1992 and the full use of
it's features may be very usefull.

== Chris Glur.
 




 2 Posts in Topic:
Linked list of binary trees plus what ?
problems@[EMAIL PROTECTED  2007-12-08 10:13:49 
Re: Linked list of binary trees plus what ?
comp.lang.oberon@[EMAIL P  2007-12-08 18:00:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 0:19:58 CDT 2008.