Skip to content

melovinasjr/stack-expression-converter

Repository files navigation

Stack Expression Converter

Coursework project for Data Structures.

This project implements stack-based expression processing with native C logic and a Java GUI/JNI bridge.

Preview

Stack Expression Converter preview

Coursework Note

Built as an academic project to practice stack-based parsing, expression conversion, native C logic, and Java GUI integration.

Features

  • 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

Tech Stack

  • C
  • Java
  • JNI
  • Stack
  • Expression parsing

Build

Use the included Windows build script:

build.bat

Then run the Java GUI with the native library path configured for the generated library.

Screenshots

Basic conversion Evaluation Undo
basic conversion evaluation undo

About

Stack-based infix, postfix, prefix conversion and expression evaluation using C and Java JNI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors