Simple database: Difference between revisions

Added COBOL solution with sample session. Re-formatted Forth section.
(Added COBOL solution with sample session.)
(Added COBOL solution with sample session. Re-formatted Forth section.)
Line 1,075:
Simple in-memory database. Load/dump database from/to a file.
 
{{works with|GNU Forth|Gforth|0.7}}
Works in GNU Forth 0.7.0 shell. Example file `'test.sdb':
 
<pre>
+: betty 1974.03.03;coworker;reading;
 
Line 1,086 ⟶ 1,087:
 
+: gammaQ3.14 3045.09.09;friend;watch movies, star walking;
</pre>
 
Example usage:
 
<pre>
Example usage:
$ gforth sdb.fs
 
Line 1,143 ⟶ 1,145:
+: theea 1979.04.05;coworker;astronomy;
 
$
</pre>
 
Code:
<lang forth>\ sdb.fs Simple database. Gforth 0.7.0 specific
' noop is bootmessage
Anonymous user