Skip to content

An implementation of the Shunting Yard algorithm written in LUA.

License

Notifications You must be signed in to change notification settings

dday9/lua-shunting-yard-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shunting Yard Algorithm (LUA)

An implementation of the Shunting Yard algorithm (wiki) written in LUA.

Demo

Fiddle: https://www.jdoodle.com/ia/KMT

Dependencies

  • LUA 5.4.6

Usage

Simplest Usage

local expression = "2 + 2"
local postfix = shuntingYardAlgorithm(expression)
print("Postfix:", table.concat(postfix, " "))

Donate

Show your support! Your (non-tax deductible) donation of Monero cryptocurrency is a sign of solidarity among web developers.

Being self taught, I have come a long way over the years. I certainly do not intend on making a living from this free feature, but my hope is to earn a few dollars to validate all of my hard work.

Monero Address: 447SPi8XcexZnF7kYGDboKB6mghWQzRfyScCgDP2r4f2JJTfLGeVcFpKEBT9jazYuW2YG4qn51oLwXpQJ3oEXkeXUsd6TCF

447SPi8XcexZnF7kYGDboKB6mghWQzRfyScCgDP2r4f2JJTfLGeVcFpKEBT9jazYuW2YG4qn51oLwXpQJ3oEXkeXUsd6TCF

About

An implementation of the Shunting Yard algorithm written in LUA.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages