stdio-c (v2.3.0)
A custom Python library to view or run compiler design lab programs directly from your terminal:
py -m pip install stdio-c
py -m stdio <program_number>
Available Programs (1 to 10)
| Program Number | Program Name | Description |
|---|---|---|
| 1 | Pattern Matching | Validates pattern a*b+ |
| 2 | NFA to DFA | Converts Non-Deterministic Finite Automata to DFA |
| 3 | Thompson's Construction | Converts regular expression to NFA |
| 4 | Whitespace Stripper | Strips spaces, tabs, and newlines from input.txt |
| 5 | Predictive Parser | LL(1) parsing table simulator |
| 6 | Lexical Analyzer | 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 | TAC intermediate code generator for expressions |
Usage Examples
1. Display C Source Code (Default):
Running py -m stdio <num> displays the complete C source code for that program directly in your terminal:
py -m stdio 1
py -m stdio 6
py -m stdio 10
2. Run Program Interactively (--run):
If you want to execute the program interactively in your terminal:
py -m stdio 1 --run
py -m stdio 6 --run
3. Display Python Code (--py):
py -m stdio 1 --py
4. Interactive Menu:
py -m stdio
Release files for stdio-c 2.3.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-2.3.0.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stdio_c-2.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:29.2 kB
Release files / stdio_c-2.3.0.tar.gz
| Download URL | stdio_c-2.3.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1d7371bd766a6fd848b50718d99c91b04237442146aa7284d66edb340c4d697
|
|
BLAKE2b-256 checksum How to use checksums |
feaeb058233d0bde1b27a646365fb5343c3a86b77206c0ee941f57d1423e787b
|
| 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.3.0-py3-none-any.whl
| Download URL | stdio_c-2.3.0-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8f0fe8942627c859bdb66feb2a078f5e10febf6b474f621b86274b8477af46c
|
|
BLAKE2b-256 checksum How to use checksums |
be82cb9ab848960dbee29bf218dd605b7a76efdf5f2c64ba7e7ad59d9395c7c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|