Page 1 of 1

Whats a parser?

Posted: Sat Oct 16, 2004 12:35 pm
by {Nathan}
I know this sounds REALLY stupid, but please, kindly and politly tell me what a parser is. No, i am not a noob. Thanks all.

Posted: Sat Oct 16, 2004 1:53 pm
by Stormy
To split an string in parts.....

For example: "MY_Command Parameter1 Parameter2"

to an array:

token$(0) = "MY_Command"
token$(1) = "Parameter1"
token$(2) = "Parameter2"

Posted: Wed Oct 20, 2004 4:14 am
by Anonymous
That is a specific kind of parser called a "tokenizer".

A parser is just a piece of code which can analyze an inputted string or data and converts it to information comprehendable for your program. ;)