Skip to content

squiidz/yarderize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarderize

Ruby native shunting yard

Add a method eval to ruby string. If the evaluation is invalid it return 0.

require 'yarderize'

v = 8
"5 + 4 - 1 + #{v}".eval