Skip to main content

stdio-c (v2.1.0)

A custom Python library that allows you to run or view compiler design lab programs directly from your terminal using:

py -m pip install stdio-c
py -m stdio <program_number>

Available Programs (1 to 10)

Program Number Program Name Description
1 Basic Lexical Analyzer Tokenizer classifying keywords, identifiers, constants, operators
2 Symbol Table Lookup Symbol table lookup for variables with data type & address
3 Lexical Counter & Comment Stripper Counts length and strips C single-line comments (//)
4 Identifier Validator Validates C identifier naming rules
5 FIRST & FOLLOW Computation Demo of FIRST and FOLLOW set computations
6 Lexical Analyzer (Operator Validator) Validates C operators (arithmetic, relational, bitwise, compound, etc.)
7 Shift Reduce Parser Bottom-up shift-reduce syntax parser simulator
8 LALR Parser LALR bottom-up parser simulator
9 SLR Parser SLR state-table parser simulator
10 Three Address Code Generator TAC intermediate code generator for expressions

Usage Examples

Run any program interactively:

py -m stdio 1
py -m stdio 6
py -m stdio 10

Display Program Source Code:

To print/display the C source code of a program directly in the terminal:

py -m stdio 1 --code
# or
py -m stdio 1 --cat

To view the Python implementation code:

py -m stdio 1 --pycode

Interactive Menu:

If you run without arguments, an interactive menu listing programs 1-10 will pop up:

py -m stdio

Run original C source code (if GCC/Clang installed):

py -m stdio 6 --c

Release files for stdio-c 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stdio-c 2.1.0
File Size Uploaded
stdio_c-2.1.0.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stdio-c 2.1.0
File Interpreter ABI Platform
stdio_c-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size:27.0 kB

Release files / stdio_c-2.1.0.tar.gz

Download URL stdio_c-2.1.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1ce29d64861def4d8fd523b129353ef8a21c2b76eccb069a536518f3d996f17e
BLAKE2b-256 checksum
How to use checksums
138888d10d9f0000a9c37c1905e8c20bdd1f0444fdb3b7abd4f2c78bef462051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / stdio_c-2.1.0-py3-none-any.whl

Download URL stdio_c-2.1.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe6a5333da511d98d29587280cb81b5a8008634b42d48a313be1314195f20dea
BLAKE2b-256 checksum
How to use checksums
d2401e22264bb4d30fc05fe0a1498e2c99af3232004a47dd3d87a4d351e780a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page