Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Alex Lopez
I think they ment DSL as in Domain Specific Language Em 14-03-2011 14:06, Brian Thompson escreveu: On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton wrote: On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: But for the future I am writing an app where the user can upload a file of data and spec

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton wrote: > On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: > > But for the future I am writing an app where the user can upload a file > of > > data and specify the input using that printf/scanf pattern description, > and > > output the same data into

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: > But for the future I am writing an app where the user can upload a file of > data and specify the input using that printf/scanf pattern description, and > output the same data into new file with a new format according to a secocnd > pattern. It's

Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
Martin Gainty on 14/03/11 11:25, wrote: this is a bit OT but it's the weekend and I have a question which I am desperate to answer and my googling skills are no match for it. Does anyone know where I can get a Java implementation of scanf? Does java.text.MessageFormat.parse() perhaps meet at le

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
A micro-DSL ? I should know this stuff, I think my brain is going. What's DSL in this context? Re: needing all of scanf: not right now I don't need it. I actually need anything like last week already - spent too long staring at tv scenes of exploding nuclear reactors and wasteland where towns

RE: Just a stab in the dark

2011-03-14 Thread Martin Gainty
MG>Matt and Adam > Subject: Re: Just a stab in the dark > > Matt Meola on 14/03/11 00:04, wrote: > > On 03/12/2011 05:57 AM, Adam Hardy wrote: > >> Hi List > >> > >> this is a bit OT but it's the weekend and I have a question which I am >

[OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
Do you really need all of scanf's functionality? If I were approaching this I'd probably consider writing some sort of transform between scanf functionality and an underlying implementation; a micro-DSL, more or less. Dave On Mon, Mar 14, 2011 at 7:15 AM, Adam Hardy wrote: > Matt Meola on 14/03

Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
Matt Meola on 14/03/11 00:04, wrote: On 03/12/2011 05:57 AM, Adam Hardy wrote: Hi List this is a bit OT but it's the weekend and I have a question which I am desperate to answer and my googling skills are no match for it. Does anyone know where I can get a Java implementation of scanf? Does

RE: Just a stab in the dark

2011-03-13 Thread Martin Gainty
> Subject: Re: Just a stab in the dark > > Oh I see. No problem. > > re scanf vs scanner: scanf takes a pattern, an input string of values in > format > of pattern, and an array of reference variables. It parses the input string > according to the pattern (usin

Re: Just a stab in the dark

2011-03-13 Thread Matt Meola
On 03/12/2011 05:57 AM, Adam Hardy wrote: > Hi List > > this is a bit OT but it's the weekend and I have a question which I am > desperate to answer and my googling skills are no match for it. > > Does anyone know where I can get a Java implementation of scanf? Does java.text.MessageFormat.parse()

Re: RE: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
er way to implement scanf method..go ahead ...and code the method and display the code to the dev list so the rest of us so we can *learn* the implementation. Martin __ Verzicht und Vertraulichkeitanmerkung/Note ... > Date: Sun, 13 Mar 2011 19:00:25 +010

RE: Just a stab in the dark

2011-03-13 Thread Martin Gainty
aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 13 Mar 2011 19:00:25 +0100 > Subject: Re: Just a stab in the dark

Re: Just a stab in the dark

2011-03-13 Thread Adam Hardy
zio can you put a scanf method in StringTools that uses scanner to replicate scanf functionality and send it to d...@struts.apache.org? thanks, Martin Date: Sat, 12 Mar 2011 17:16:44 +0100 Subject: Re: RE: Just a stab in the dark From: maurizio.cucchi...@gmail.com To: user@struts.apache.org Why

Re: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
gt;>> >>> Maurizio can you put a scanf method in StringTools that uses scanner to >> >> replicate scanf functionality and send it to d...@struts.apache.org? >>> >>> thanks, >>> Martin >>> >>> >>>> Date: Sat, 12 Mar 2011 17:16:44

Re: Just a stab in the dark

2011-03-13 Thread Adam Hardy
@struts.apache.org? thanks, Martin Date: Sat, 12 Mar 2011 17:16:44 +0100 Subject: Re: RE: Just a stab in the dark From: maurizio.cucchi...@gmail.com To: user@struts.apache.org Why do you prefer scanf to scanner class? I could be wrong, but I don't believe it is possible cause of the immutabil

Re: RE: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
ue pour satisfaire >> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie >> de ceci est interdite. Ce message sert à l'information seulement et n'aura >> pas n'importe quel effet légalement obligatoire. Étant donné qu

RE: Just a stab in the dark

2011-03-12 Thread Martin Gainty
...@struts.apache.org? thanks, Martin > Date: Sat, 12 Mar 2011 17:16:44 +0100 > Subject: Re: RE: Just a stab in the dark > From: maurizio.cucchi...@gmail.com > To: user@struts.apache.org > > Why do you prefer scanf to scanner class? > I could be wrong, but I don't be

Re: RE: Just a stab in the dark

2011-03-12 Thread Maurizio Cucchiara
. > Date: Sat, 12 Mar 2011 12:57:17 + > From: ahardy.str...@cyberspaceroad.com > To: user@struts.apache.org > Subject: Just a stab in the dark > > Hi List > > this is a bit OT but it's the weekend and I have a question which I am > desperat...

RE: Just a stab in the dark

2011-03-12 Thread Martin Gainty
bilité pour le contenu fourni. > Date: Sat, 12 Mar 2011 12:57:17 + > From: ahardy.str...@cyberspaceroad.com > To: user@struts.apache.org > Subject: Just a stab in the dark > > Hi List > > this is a bit OT but it's the weekend and I have a question which I am >

Just a stab in the dark

2011-03-12 Thread Adam Hardy
Hi List this is a bit OT but it's the weekend and I have a question which I am desperate to answer and my googling skills are no match for it. Does anyone know where I can get a Java implementation of scanf? I want to do C-style scanf and read a string into a list of parameters - the exact