Coursework project for Data Structures.
This project implements stack-based expression processing with native C logic and a Java GUI/JNI bridge.
Built as an academic project to practice stack-based parsing, expression conversion, native C logic, and Java GUI integration.
- Infix to postfix conversion
- Infix to prefix conversion
- Expression evaluation with variable assignments
- Unary minus handling
- Error reporting for invalid expressions
- Java Swing GUI connected to C through JNI
- C
- Java
- JNI
- Stack
- Expression parsing
Use the included Windows build script:
build.batThen run the Java GUI with the native library path configured for the generated library.
| Basic conversion | Evaluation | Undo |
|---|---|---|
![]() |
![]() |
![]() |



