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.3.tar.gz
(17.7 kB
view details)
File details
Details for the file InfixToPostfix-1.0.3.tar.gz
.
File metadata
- Download URL: InfixToPostfix-1.0.3.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d4245f6d7d6ef3d503fec702fc29f3255315ce0bfcfe1012be21d66d04dee9 |
|
MD5 | 1ab93e0677e93cbfe0cf7cfe8bb26675 |
|
BLAKE2b-256 | 34420d9efc61cf00ce30bec3feb8e8e03ebbd8da61afd8b77cd9691532d6e5e4 |