[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. ___

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

2012-05-14 Thread Mark Morgan Lloyd
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: array of string); In this case, the

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 el.es...@gmail.com: 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

[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 luchya...@gmail.com: Hello all, I