PDA

View Full Version : Hash Code Command Interpeter



Bill Drummond
04-04-2009, 11:35 AM
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.

jazzed
04-04-2009, 01:31 PM
Nice code Bill.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve


Propalyzer: Propeller PC Logic Analyzer (http://www.brouhaha.com/~sdenson/Propalyzer)
http://forums.parallax.com/showthread.php?p=788230 (http://forums.parallax.com/showthread.php?p=788230)

Post Edited (jazzed) : 4/4/2009 6:38:21 AM GMT

Mike Huselton
04-04-2009, 06:05 PM
Nice program structure and comments.

Congratulations and welcome to the club, Bill...

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH