2 ms·
Closest I can come is my esoteric language I made. It's a rough clone of Frink, but diverged during development in a number of ways: http://search.cpan.org/di
by simcop2387 10y ago
Closest I can come is my esoteric language I made. It's a rough clone of Frink, but diverged during development in a number of ways:
http://search.cpan.org/dist/Language-Farnsworth/lib/Language/Farnsworth/Docs/Syntax.pm http://search.cpan.org/dist/Language-Farnsworth/lib/Language...
It's missing the ranged/bracketed number support, but will do the rest of that.
13:27:11 < simcop2387> farnsworth: (-5/6+3.5 + i-1/2) km^2/s^2 -> "kJ/kg"
13:27:12 < farnsworth> simcop2387: (2166.66666666666 + 1000.00000000000*I) kJ/kg
It'll auto-convert things into floats if you use them, but it's 100 digit accuracy (configurable). Development has halted, mostly because I couldn't decide how I wanted to tackle adding objects as a first class data type and had a number of issues with the parser I needed to solve to make my life saner (easy way to force a difference between a variable and unit named "kg" etc.)
I might pick it up again and try using the parser combinators in Rust and actually compile the language down instead of an interpreter (though i'd remove eval[] to do that).