ErosOlmi
15-11-2007, 00:08
For those that followed previous thread about UDT here (http://community.thinbasic.com/index.php?topic=814.0), this is the continuation thread (previous one was too long and all topic covered there are already present in current thinBasic preview version 1.5.0.1).
Ok, here we are again with something new in UDT parsing.
Please find here attached an UNDER DEVELOPMENT version of thinCore.dll plus a test script that show current state of the art UDT parsing in thinBasic. I was able to add parsing of arrays of UDT and arrays inside UDT structures. There are not logical limits to how arrays of UDTs and arrays inside UDTs can be arranged. Parsing will recursively tokenize structures comparing with TYPE declaration.
This is a test version, so do not use for real scripts for the moment. I've made a lot of tests but as you know, testing is never enough so I expect you will find some uncovered cases.
Let me know.
Ciao
Eros
UPDATED:
2007.11.20
VARPTR now working with UDT inside UDT or any UDT element at any level. See included example.
SizeOf is now able to determine correct size of any element and sub element of any UDT or nested UDT. See included examples
attached file removed. All features present in current thinBasic version
Ok, here we are again with something new in UDT parsing.
Please find here attached an UNDER DEVELOPMENT version of thinCore.dll plus a test script that show current state of the art UDT parsing in thinBasic. I was able to add parsing of arrays of UDT and arrays inside UDT structures. There are not logical limits to how arrays of UDTs and arrays inside UDTs can be arranged. Parsing will recursively tokenize structures comparing with TYPE declaration.
This is a test version, so do not use for real scripts for the moment. I've made a lot of tests but as you know, testing is never enough so I expect you will find some uncovered cases.
Let me know.
Ciao
Eros
UPDATED:
2007.11.20
VARPTR now working with UDT inside UDT or any UDT element at any level. See included example.
SizeOf is now able to determine correct size of any element and sub element of any UDT or nested UDT. See included examples
attached file removed. All features present in current thinBasic version