Metadata-Version: 2.1
Name: InfixToPostfix
Version: 1.0.4
Summary: A python module converts infix expressions to postfix expressions and includes a visual interface.
Home-page: https://github.com/RoiexLee/InfixToPostfiX
Author: RoiexLee
Author-email: luoyixaun1029@gmail.com
Description-Content-Type: text/markdown
License-File: LICENSE

# InfixToPostfix

A python module converts infix expressions to postfix expressions and includes a visual interface.

## Table of Contents

- [Install](#install)
- [Usage](#usage)

## Install

```sh
pip install InfixToPostfix
```

## Usage

### No visual interface

```python
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

```python
import sys

from PyQt6.QtWidgets import QApplication
from InfixToPostfix.ui import MainWindow

app = QApplication(sys.argv)
window = MainWindow()
sys.exit(app.exec())
```
