4 ms·
I feel your pain, I (part)implemented a lambda parser that will spit out C-style expressions when given basic mathematical ruby expressions if that helps you: h
by cronin101 13y ago
I feel your pain, I (part)implemented a lambda parser that will spit out C-style expressions when given basic mathematical ruby expressions if that helps you: https://github.com/cronin101/HaDope/blob/master/lib/parsing/lambda_bytecode_parser.rb https://github.com/cronin101/HaDope/blob/master/lib/parsing/...
E.g. calling with ->(i){ i * (2 + i / 4) } returns 'x * (2 + (x / 4))'