Skip to main content

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())

visual_interface_1.png

visual_interface_2.png

visual_interface_3.png

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.1.0.tar.gz (18.5 kB view details)

Uploaded Source

File details

Details for the file InfixToPostfix-1.1.0.tar.gz.

File metadata

  • Download URL: InfixToPostfix-1.1.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for InfixToPostfix-1.1.0.tar.gz
Algorithm Hash digest
SHA256 11de37423d4ae09b45462724c8bac3f3f1e15bdf45c997ca0a795616b660c9e5
MD5 ea782d18338cec09e393cc20fdca8666
BLAKE2b-256 549d5e9df5054cc926e959ead46c744128d43a3c94b0ec2714c56f00a74427bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page