A python module converts infix expressions to postfix expressions and includes a visual interface.
Project description
InfixToPostfix
A python module converts infix expressions to postfix expressions and includes a visual interface.
Table of Contents
Install
pip install InfixToPostfix
Usage
No visual interface
from InfixToPostfix.infix_to_postfix import InfixToPostfix
infix_to_postfix = InfixToPostfix()
expression = "a+b-(12.3*cde/(10%2^3))"
words, actions, states, result = infix_to_postfix.analyze(expression)
print(words, actions, states, result, sep="\n")
With visual interface
import sys
from PyQt6.QtWidgets import QApplication
from InfixToPostfix.ui import MainWindow
app = QApplication(sys.argv)
window = MainWindow()
sys.exit(app.exec())
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
InfixToPostfix-1.0.7.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file InfixToPostfix-1.0.7.tar.gz
.
File metadata
- Download URL: InfixToPostfix-1.0.7.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d28917a9ed829ef55eee2ddcd7fa17a9d8ad7ad36f0620ce288106a02e4915d |
|
MD5 | 576271e74abe92cf56015af3f32ae8c5 |
|
BLAKE2b-256 | 6845f80bffc34c822368168233ef5a531acd0248bd94618339cda6bb35d96a51 |
File details
Details for the file InfixToPostfix-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: InfixToPostfix-1.0.7-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4325b019e2f9e5ab4e8576e7d430f83b3ba4a1b7efcbd234e9d0c64906211fd4 |
|
MD5 | 4f5a19e8f0be608390881b5576fa49b3 |
|
BLAKE2b-256 | bab6d434ef487b81f1682a462dda1525399efad82d87dcb90a2d1c18350606a5 |