Re: Procedures and Parameters
Ferlin:
You actually want capture the whole line.
Then break the line into tokens ( words )
You are really writing an interpeter.
If look(token) followed by end of the line.
then do look
elsif look(token) followed by at(token) followed by end of the line.
then do look at
elsif look(token) followed by up(token)followed by end of the line.
then look up
elsif etc
then etc
else
Did not understand command
end if
Because you will have a lot of commands you should build a tree
and follow the tree as you get the tokens.
Bernie
|
Not Categorized, Please Help
|
|