Skip to content
Stack Code Review
Question and answer site for peer programmer code reviews.
MENU
  • HOME

Tag: math-expression-eval

Expression parser using the shunting yard algorithm

By mariaPosted on February 24, 2023

Problem I am trying to implement an expression parser via the shunting yard algorithm about which I learnt here. I […]

Infix expression (with negative numbers) to postfix

By mariaPosted on January 20, 2023

Problem I am writing a class to evaluate an arithmetic expression, For now my class can convert an infix expression […]

Tokenize a mathematical statement string

By mariaPosted on January 9, 2023

Problem The function tokenize generates tokens from a mathematical string. It can chain characters together to form longer tokens. This […]

Simple lexical analysis – basic calculator

By mariaPosted on November 28, 2022

Problem I recently found an interesting series that describes the specifics of how interpreters and compilers work, explaining each step […]

Basic arithmetic operations for a programming language

By mariaPosted on October 2, 2022

Problem I have written a set of functions to compute basic mathematical operations for my own Java-based programming language. First […]

Arithmetic operation from string

By mariaPosted on September 9, 2022

Problem I have a string like str = ” 4+ 6 * 30″;. I have to perform an arithmetic operation […]

Math equation as string to reverse Polish notation parser

By mariaPosted on August 12, 2022

Problem I have created a console program where users type in a math equation such as 5+4-6 or (5+16(8-4))/16 that […]

Calculate the value of an arithmetic term written in Polish Notation

By mariaPosted on June 11, 2022

Problem I have to create a program which calculates the result of an arithmetic term written in Polish Notation. var […]

Shunting-yard Algorithm, implemented based on reference pseudocode

By mariaPosted on May 24, 2022

Problem I have a lot of problems making this code look more elegant or to reduce its size. The algorithm […]

Expression evaluator with Shunting-Yard algorithm

By mariaPosted on March 30, 2022

Problem I am especially concerned about: Correctness: Does my algorithm always output the correct answer given a correct input? Readability: […]

  • 1
  • 2
  • 3
  • …
  • 5

Recent Posts

  • Show different type of fonts
  • Converting recordsets to POCO
  • Handle network response and parse it
  • Merge Two Sorted Linked Lists
  • How clean is my snow?
  • How is OOP achieved with configuration files in PHP?
  • DRY Kleisli wrappers with lens
  • Project Euler #5 – Smallest Multiple
  • A take on DB Abstraction
  • Number in words: recursive function
  • Method to check header token if valid
  • Mapping the differences between JavaScript objects
  • Drawing a hollow rectangle of rows and column provided by the console application
  • Random string generation in Java
  • Minimum number of copies of an application a company needs to purchase

Categories

  • .Net
  • Algorithm
  • Android
  • Array
  • Bash
  • C#
  • Console
  • CSS
  • Haskel
  • Html
  • Java
  • Javascript
  • JSON
  • MySQL
  • Node Js
  • Object Oriented
  • Parsing
  • Php
  • Programming Chalenge
  • Python 3
  • React JS
  • Recursion
  • Regex
  • Ruby
  • Security
  • Sorting
  • SQL
  • Strings
  • Swift
  • VBA
Proudly powered by WordPress / Theme: Superfast