This project involves the implementation of an equation processor application using linked stack and cursor array implementations of a linked list. The application is designed to read equations from a special text file with a .242 extension, process them, and provide various functionalities.
- Implemented the linked stack using a cursor array of Sections.
- Defined one cursor array to create as many stacks of equations as needed.
The equation file follows a specific format:
- The file must start with the tag <242> and end with </242>.
- Within these tags, there can be one or more sections, each starting with < section > and ending with < /section >.
- Inside a section, there can be optional infix and/or postfix sections, each starting with or and ending with or respectively.
- Each section contains one or more equations, each starting with and ending with .
- Click the "Load" button to open a file chooser and select an equation file.
- The selected file path will be displayed next to the button.
- The application will check if the file tags are balanced, indicating a valid file.
- Equations from the first section will be loaded.
- For infix equations, they are converted to postfix and then evaluated. For postfix equations, they are converted to prefix and then evaluated.
- Use the "Next" and "Prev" buttons to navigate through equation sections.
- "Next" displays equations from the next section (if exists), and "Prev" displays equations from the previous section (if exists).