Hash Code Command Interpeter
Bill Drummond
Posts: 54
Hash Code Command Interpeter by Bill Drummond
This program is a demonstration of using hash codes to parse keyboard input into commands.
Using hash codes makes the case statment easy to use and to my eye code that's easier to follow than 'if else' code.
The Windows Program HashPrj.exe will output the Constants to a text file that you can cut and paste for the commands
you wish to use.
I've included code for 0 to 2 argument strings.
This is my first effort at writing Spin code.
This program is a demonstration of using hash codes to parse keyboard input into commands.
Using hash codes makes the case statment easy to use and to my eye code that's easier to follow than 'if else' code.
The Windows Program HashPrj.exe will output the Constants to a text file that you can cut and paste for the commands
you wish to use.
I've included code for 0 to 2 argument strings.
This is my first effort at writing Spin code.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
Post Edited (jazzed) : 4/4/2009 6:38:21 AM GMT
Congratulations and welcome to the club, Bill...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH