Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.65 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.65 KB

specter

SimPlE CompuTER - A Little Man Computer written in Python 3

Usage

Command Line

  • ./specter.py -c
  • Type in filename (or use -f command line flag)
  • Have fun!

GUI

  • ./specter.py
  • Select file
  • Press Run
  • Press Run to Halt
  • Have fun!
  • When the input field is "selected", type in a integer value between -500 and 499 and press Submit or press Enter.

Examples

Included examples (in the examples folder), sorted by relative complexity into three catagories:

  • Easy
    • add.lmc - Add two numbers
    • echo.lmc - Echos user input until the input == 0
    • infinite.lmc - Prints 1 for ever
    • sub.lmc - Subtract two numbers
  • Medium
    • counter.lmc - Counts down from the users input
    • divide.lmc - Divide two numbers
    • multiply.lmc - Multiply two numbers
    • square.lmc - Squares input until input == 0
  • Hard
    • fib.lmc - Little man's Fibonacci, a traditional challenge
    • test.lmc - A self-test

Advanced Usage

See the wiki for documentation, issues for bug reporting / feature requests and pull requests for contributing code.

Licence

GPL 3 or later

More Information