Abbreviations, simple: Difference between revisions

Content added Content deleted
Line 2,396: Line 2,396:


=={{header|M2000 Interpreter}}==
=={{header|M2000 Interpreter}}==
Object Queue is a list (using a hash table) which can hold same keys (strings or numbers or mix of them). Always the Exist(aQueuePointer, "word") set the internal index to the last key with name "word" if return true. We read the item in that index using Eval$(aQueuePointer) for string value, or Eval(aQueuePointer) for aritmetic value. We can't delete keys from anywhere, but only from the last entries using Drop statement to drop a number of keys. Here we didn't use drop, we have only a table of words.

<lang M2000 Interpreter>
<lang M2000 Interpreter>
Module Abbreviations_Simple {
Module Abbreviations_Simple {