GithubHelp home page GithubHelp logo

ajayliu / notation-visualizer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 3.42 MB

An interactive website to visualize how Infix, Prefix (Polish), and Postfix (Reverse Polish) notation are converted and evaluated.

Home Page: https://notation-visualizer.ajayliu.com

JavaScript 1.54% TypeScript 97.78% CSS 0.13% HTML 0.55%
infix-notation nextjs polish-notation postfix-notation prefix-notation react reverse-polish-notation rpn-calculator tailwindcss typescript

notation-visualizer's Introduction

Netlify Status

Logo

Notation Visualizer

Visualize how infix/prefix/postfix notation is evaluated with trees and stacks in an interactive website!
Website ยป

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact
  6. Acknowledgements

About The Project

I learned about infix/prefix/postfix notation during my senior year of high school and I find it fascinating that you can evaluate them using both trees and stacks! It's a great way to learn about inorder/preorder/postorder traversal and basic computer science! This website contains two interactive visualizers: a Tree Visualizer and a Stack Visualizer.

I filmed an explainer video using this website:

YouTube video of Prefix, Infix, Postfix explainer

Built With

Getting Started

Here is a guide if you want to clone this template and modify it for yourself, all the way to deployment.

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/AjayLiu/notation-visualizer.git
  2. Install packages
    yarn

Development

To run the development server

yarn dev

Then head over to localhost:3000

Deployment

  1. Publish the site on Netlify using continuous git integration. ๐ŸŽ‰

Contributing

Issues

Feel free to submit issues and enhancement requests. Also, submit an issue before submitting pull requests. Look through existing issues and see if you want to help out!

Workflow

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Ajay Liu - [email protected]

Project Link: https://github.com/AjayLiu/notation-visualizer

Acknowledgements

notation-visualizer's People

Contributors

ajayliu avatar antonsexov avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

antonsexov

notation-visualizer's Issues

[Help Wanted] [Easy] Add Postfix and Prefix expressions to "database"

This website has buttons where the user can generate random Postfix and Prefix expressions. So far, the "database" (which is stored in typescript objects) only contains 3 example expressions:

From randomPostorders.ts:

const randomPostorders: string[] = [
    "3 7 * 9 + 2 /",
    "3 16 8 / 2 * +",
    "7 1 2 + 3 - *",
];
export default randomPostorders;

Anyone who'd like to help contribute could create a fork, clone, and submit a pull request under this issue. Below are the two files to help add to:
https://github.com/AjayLiu/notation-visualizer/blob/main/src/data/randomPostorders.ts
https://github.com/AjayLiu/notation-visualizer/blob/main/src/data/randomPreorders.ts

Feel free to ask any questions here, looking forward to merging your pull request!

Note: Make sure the Postfix/Prefix expressions are space-separated, only have numeral operands, and only contain the following operators: +, -, *, /, ^.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.