It is currently Sat Aug 15, 2026 2:13 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Parsing a text string with mathematical parser
PostPosted: Sat Apr 02, 2016 1:39 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 19, 2015
Posts: 46
Hi, I haven't posted in a while but I am working on something new.

What I would like to do is read a text box string into the Mathematical Parser (MP) and then to examine it piece-by-piece to do its work. The problem is, how do I do that?

My text box variables will contain a command (single letter probably) and a list of delimited numbers. I've found that I can't delimit by space or comma as each of those causes problems but I guess I can live with some other character between each value I guess. Bur even with this I don't see any obvious tools inside the MP to slice and dice the text string.

The only thing I have thought of is to parse the text outside using the various -str* functions and build a one dimensional image that can be read element-by-element inside the MP. Before I take this approach any further, does anyone else have any other ideas of how to work with strings inside the MP?

Souphead.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group