source: git/machine_learning/extract.lib @ 05dbb13

spielwiese
Last change on this file since 05dbb13 was 05dbb13, checked in by Murray Heymann <heymann.murray@…>, 5 years ago
Fix some errors, alphabetise keyword list
  • Property mode set to 100644
File size: 375 bytes
Line 
1LIB "all.lib";
2
3list l = names();
4list k = reservedNameList();
5int i;
6
7// combine lists, leaving out the first entry of l, which is "l"
8list combined = delete(l, 1) + k;
9
10// create file, overwrite if exists
11write(":w keywords.txt", combined[1]);
12
13
14// write remaining entries to file
15for (i = 2; i < size(combined) + 1; i++) {
16        write(":a keywords.txt", combined[i]);
17}
18
19exit;
Note: See TracBrowser for help on using the repository browser.