Skip to main content

Minimal BASIC interpreter for running MININEC

Project description

This is a BASIC interpreter for an old dialect of the language used in early IBM PCs. It is written in Python. I wrote this over a weekend to be able to run old MININEC code (the linked version of MININEC contains some small fixes). It has almost no error checking (it relies on the code being correct not trying to aid you in writing a new program in BASIC, I think the world does not need new code in BASIC). If you’re looking for a working BASIC interpreter, look at the pcbasic implementation, it is also in Python but faithfully reproduces the memory limitations of the machines at the time. And it seems to use single-precision floating point numbers. This is why I wrote my own interpreter: I needed to compare computations in double precision and I could not fit some examples into the limited memory of pcbasic.

I’m probably not going to put much work into improving this code, it has achieved the purpose: Running (and debugging in Python) old MININEC code to allow me to compare the computations in BASIC to my re-implementation of MININEC in Python, pymininec.

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

yabasi-0.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

yabasi-0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file yabasi-0.2.tar.gz.

File metadata

  • Download URL: yabasi-0.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for yabasi-0.2.tar.gz
Algorithm Hash digest
SHA256 471ea8089f7b3df98190fb90ba7fc0278e1e9838e456272a8f09a522cf436c97
MD5 5119567294114b69627f6015d49f9319
BLAKE2b-256 3ddb2c5cd3ddf59470d311af1ab59ca89a3b084aadee99e4220ab03089d7f521

See more details on using hashes here.

File details

Details for the file yabasi-0.2-py3-none-any.whl.

File metadata

  • Download URL: yabasi-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for yabasi-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4335e1f7c8ca4b5b18a917819a01a992345fe3396772e063e0f4fc6b316e4a42
MD5 007185ea248cb89bdc4209a8d81881f8
BLAKE2b-256 c4dd8d9fd2b67e3ba96eafefb8f032703c8b3a5c76ceebc9441eb4d0961debd9

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