1
0
Commit Graph

12 Commits

Author SHA1 Message Date
9a6a5b4b51 Function formatting will now automatically pull documentation from a lua file, if it knows where to look. 2017-06-24 20:06:36 +02:00
4a41111d1e analyse_structure is not automatically called, if no info regarding a table could be found. 2017-06-24 18:36:01 +02:00
8d88f6195d analyse_structure can now extend a previously used info table. 2017-06-24 17:59:55 +02:00
b37a02c850 Now avoids analysing tables deeper than max_depth. 2017-06-15 19:02:54 +02:00
1bfd4abb96 Added is_uniform predicate to analyse_structure.lua. 2017-06-10 23:17:30 +02:00
08e659fc4a Created temporary stopgap for when __index throws errors. 2017-06-09 15:49:15 +02:00
9050d53962 Removed unused functionallity, and associated tests. 2017-04-14 13:09:05 +02:00
87b12e15b2 Fixed issues with analýse_structure.lua
The most significant was a misclassification of tables with number
exclusive keys, with huge jumps between each one.
Example: { 1, [300] = 300 }

This was caused by logic faults in `get_table_info`, which has been fixed.

When solving above issue, a two new issues appeared:

1.	Due to a logic fault, the count of number of elements in a table was wrong,
	leading to issues with tables with boolean keys. This was fixed with simple
	logic changes.
2.	Some very small tables (1 element) would be classified as sets, and thus
	rendered wrongly. This was fixed by adding a MINIMUM_NUMBER_OF_SET_ELEMENTS
	constant.
2017-04-14 13:06:43 +02:00
5bee4a7378 Small holes in sequences will now be filled with nil, rather than triggering a reclassification to PURE_MAP. 2017-04-14 10:56:38 +02:00
0a79b830ba Moved some constants into their own file, more info is stored in l, and improved some marker stuff. 2017-04-03 11:24:51 +02:00
c75ee00f88 Added shortness info-gathering to analyze_structure 2017-01-19 14:23:34 +01:00
e2570ee780 Working on more extensive table info gathering. 2017-01-19 14:02:34 +01:00