Dynamic Strings, Heap Manager, Formatted Output
Phil Pilgrim (PhiPi)
Posts: 23,514
In another thread there was a question about string functions. Awhile back I wrote an object for strings that some may find useful. It's probably not tested sufficiently to include in the object library yet, but perhaps some brave souls may wish to try it out anyway.
Attached is an archive containing a dynamic strings object, a heap manager object, and a C-like formatted output object. The top-level program uses these objects to generate nonsense English sentences derived from a context-free grammar.
For the next week or so, I'm swamped, so won't be able to offer much in the way of support. But leave any questions you may have in this thread, and I'll attempt to answer them when I get the chance.
Cheers!
Phil
Attached is an archive containing a dynamic strings object, a heap manager object, and a C-like formatted output object. The top-level program uses these objects to generate nonsense English sentences derived from a context-free grammar.
For the next week or so, I'm swamped, so won't be able to offer much in the way of support. But leave any questions you may have in this thread, and I'll attempt to answer them when I get the chance.
Cheers!
Phil
Comments
This is really needed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··
Thanks Phil!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
Sorry for this reply on such old thread, but can i use the strings.spin file to split a string into segments?
like: string = "Hello World, how are you doing?"
after a split i need
Hello
World,
how
...
...
Here's something I came up with:
Works like i wanted it