A python module converts infix expressions to postfix expressions and includes a visual interface.
Project description
infix_to_postfix
A python module converts infix expressions to postfix expressions and includes a visual interface.
Table of Contents
Install
pip install infix_to_postfix
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.0.tar.gz
(17.2 kB
view details)
File details
Details for the file InfixToPostfix-1.0.0.tar.gz
.
File metadata
- Download URL: InfixToPostfix-1.0.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5455c4b9fe3542c0312e7012e3d123df0f76176696615acb79e5ccaa5eda6c5c |
|
MD5 | 31396b6e06983422869f597ebdafbd53 |
|
BLAKE2b-256 | 1c7f065475f2dde3906b073d7518858d944b97fd43cab1bb0fb37bcdef6f77dd |