stdio-c - Python Library for C Lab Programs
A lightweight Python library to fetch and output standard C programs (TOC / Compiler Design) using just two lines of code!
🚀 Installation
Install directly from PyPI:
pip install stdio-c
Or install locally:
pip install -e .
💻 Usage (Two-Line Code)
Method 1 (Shortest & Recommended)
import stdio
stdio.p1() # Outputs Program 1
Replace p1 with p2, p3, p4, or p5:
import stdio
stdio.p2() # Outputs Program 2 (NFA to DFA)
Method 2 (Direct Import)
from stdio import p1
p1()
Or:
from stdio import prog3
prog3()
Method 3 (By Number)
import stdio
stdio.get(4) # Outputs Program 4
Or using index bracket notation:
import stdio
stdio[5] # Outputs Program 5
Method 4 (Submodule Import)
import stdio.p1
stdio.p1.show()
Method 5 (Terminal CLI)
You can also run directly from your terminal:
stdio 1
# or
stdio-c 1
# or
python3 -m stdio 1
📋 List of Included Programs
| Number | Name / Topic | Description |
|---|---|---|
| 1 | stdio.p1() |
Pattern recognition for a, abb, and a*b+ |
| 2 | stdio.p2() |
NFA to DFA conversion using Subset Construction |
| 3 | stdio.p3() |
Regular Expression to NFA using Thompson's Construction |
| 4 | stdio.p4() |
Remove whitespaces and newlines from a file (input.txt) |
| 5 | stdio.p5() |
LL(1) Predictive Parser (Stack-based parsing) |
Release files for stdio-c 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stdio_c-1.0.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stdio_c-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:14.0 kB
Release files / stdio_c-1.0.0.tar.gz
| Download URL | stdio_c-1.0.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4ee011b0b0d41113632fc39fdf4ff4e994f76c98cdbf7d2597a2dcdc5268770
|
|
BLAKE2b-256 checksum How to use checksums |
bafe420de69d355c83458bca133bc2efeeb4721fedc52ff58fae7fc475ffbe17
|
| 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-1.0.0-py3-none-any.whl
| Download URL | stdio_c-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
342166157cdfba8ab7488df5024eb892de9c7ab6f6ef3dc788e9c18adad6c986
|
|
BLAKE2b-256 checksum How to use checksums |
bec834187e470b7cd82336f6781ba4996e0202a742b38aa744ac5303b81449a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|