Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cronin101
on Sept 23, 2013
|
parent
|
context
|
favorite
| on:
Ruby 2.1.0 preview1 released
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/...
E.g. calling with ->(i){ i * (2 + i / 4) } returns 'x * (2 + (x / 4))'
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
E.g. calling with ->(i){ i * (2 + i / 4) } returns 'x * (2 + (x / 4))'