Skip to main content

An interpreter for 9608 pseudocode

Project description

An interpreter for 9608 pseudocode

Pseudo is an interpreter for 9608 pseudocode, a pseudocode syntax used in Cambridge International AS & A Level Computer Science.

Setup

pip install pseudo-9608

Usage

Shell: Running with a pseudocode file

$ pseudo myfile.pseudo

This will run the pseudocode interpreter on the file myfile.pseudo.

Python: Running with a pseudocode file

import pseudocode

pseudocode.runFile('myfile.pseudo')

This will run the pseudocode interpreter on the file myfile.pseudo.

Python: Running with a pseudocode string

import pseudocode

code = """
OUTPUT "Hello World!"
"""

pseudocode.run(code)

This will run the pseudocode interpreter on the string code.

Chapters

This project is also an attempt to write a programming book in a new style. Each chapter of this book is written as a pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pseudo-9608-0.4.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pseudo_9608-0.4.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file pseudo-9608-0.4.1.tar.gz.

File metadata

  • Download URL: pseudo-9608-0.4.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.13.0-1027-gcp

File hashes

Hashes for pseudo-9608-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9adc6bfad4efa6cb8f3c9a4265e55ccc0dab5f5634d5f2f429be827098b730a0
MD5 0df85c2a260944deea70f9c6ab9f2502
BLAKE2b-256 b65b7585e9236db93e5472860aa5cb87c2f79d9b1833da3c18fa2206e79ba6cd

See more details on using hashes here.

File details

Details for the file pseudo_9608-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pseudo_9608-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.13.0-1027-gcp

File hashes

Hashes for pseudo_9608-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0428709e13dff6635a4e8f6994c1014aaaae42793134bede28b69b44456aeae8
MD5 7b20736da3a5c9f4be8b1b4525a2d69e
BLAKE2b-256 ce37e78672a1781e0a0cf4903f93eb1dc7ad5de59c4cacfe5a904bb3a3f4314d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page