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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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