[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread luciano de souza
Fortunately, my case is the simplest one. There will not quotes inside quotes. Therefore, I believe TStringlists will sove the whole problem. It's really amasing what we can do with a TStringlist. Thank you for the precious tips! 2012/5/13, luciano de souza : > Hello all, > > I trying to build

Re: [fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread Jorge Aldo G. de F. Junior
I have a parser function somewhere around that can do more than that... let me find it... 2012/5/14 Lukasz Sokol : > On 14/05/2012 10:39, Lukasz Sokol wrote: >> On 13/05/2012 11:20, luciano de souza wrote: >>> Hello all, >>> >>> I trying to build a very small interpreter. I can type commands >>> l

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread Lukasz Sokol
On 14/05/2012 10:39, Lukasz Sokol wrote: > On 13/05/2012 11:20, luciano de souza wrote: >> Hello all, >> >> I trying to build a very small interpreter. I can type commands >> like: >> >> $ add "Luciano de Souza" >> luchya...@gmail.com >> >> Somewhere in my code, I can have something like: >> >> pro

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread Lukasz Sokol
On 13/05/2012 11:20, luciano de souza wrote: > Hello all, > > I trying to build a very small interpreter. I can type commands > like: > > $ add "Luciano de Souza" > luchya...@gmail.com > > Somewhere in my code, I can have something like: > > procedure parse(commandline: string; var params: arra

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread leledumbo
SScanf from SysUtils unit. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Parsing-parameters-inside-an-interpreter-tp5708067p5708704.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-