Parsing

Joel joelcnz at gmail.com
Mon Mar 31 12:36:23 PDT 2014


Oops, the 'c"Won!"' shouldn't be there, I forgot to use it.

On Monday, 31 March 2014 at 19:23:17 UTC, Joel wrote:
> On Monday, 31 March 2014 at 17:25:58 UTC, Marco Leise wrote:
>> Am Mon, 31 Mar 2014 04:06:38 +0000
>> schrieb "Joel" <joelcnz at gmail.com>:
>>
>>> I've got a program that uses user input, but I'm having 
>>> trouble with it.
>>> 
>>> Here's an example, the unenclosed numbers (1 2 3 in example) 
>>> add entries:
>>> 
>>> 0 Achievement
>>> 1 2 3 c"Won!" st"4 5 6" <- user input
>>> 
>>> (create 3 entries all with st"4 5 6")
>>> 
>>> 0 Achievement
>>> 1 house [4, 5, 6]
>>> 2 rock [4, 5, 6]
>>> 3 mouse [4, 5, 6]
>>> 
>>> c"mud" <- user input
>>> 
>>> 0 Achievement
>>> 1 house [4, 5, 6] mud
>>> 2 rock [4, 5, 6] mud
>>> 3 mouse [4, 5, 6] mud
>>> 
>>> So add the entries and while they are still hot, you can edit 
>>> them.
>>> 
>>> I don't know if this an impossible ask for help, but I though 
>>> I might get some help. I'll keep going over my code to work 
>>> it out.
>>> 
>>> Thanks.
>>
>> So what is the question?
>
> Oh, how do I parse the example? So that entries are added and 
> values are set. I'm not sure how to explain it.



More information about the Digitalmars-d-learn mailing list