Re: Procedures and Parameters

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu