Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,700 of 2,753    |
|    Archana Deshmukh to All    |
|    Retrieving data from multiple lists from    |
|    21 Jul 23 04:25:44    |
      From: desharchana19@gmail.com              Hello,              I have a pattern I which contains two list items. I am able to parse list.       However, as there are two lists in one pattern, data related to only 2nd list       is stores.              pattern: (padding=[1,2,3,4],data = 1, size=[1,2]);              The data related to first list gets overwritten.              Can I use some context like if token is padding store data to one array and if       token is size save data to another array.              However, any suggestion is welcome.              Best Regards,       Archana Deshmukh       [There are lots of ways to do this. You could set a flag when you see the       padding or size       token to say where to store the list. Or you could allocate space dynamically;       put each list in a fixed static place as you parse it, then make a copy when       you see       the ] and return it. -John]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca