Shop OBEX P1 Docs P2 Docs Learn Events
Hash Code Command Interpeter — Parallax Forums

Hash Code Command Interpeter

Bill DrummondBill Drummond Posts: 54
edited 2009-04-04 11:05 in Propeller 1
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.

Comments

Sign In or Register to comment.