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
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
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
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
>
> 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 commandline has the forma
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 commandl
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-