rVM
rVM going public
Okay, here we go, I published some ruby gems with rVM, it is way not done and leaks some important features but it is working already. The latest version, SVN trunk, currently supports a quite nice and complete math interpreter. Sure it does not do as much as some full blown implementations yet it can do quite a lot.
It supports now:
- All usuall opperations, +, *, -, /, ^ with right priorities.
- Functions sin(123), and custom functions if you wish.
- Parentheses to group operations and overwrite operator priorities.
- Variables, as in x + 3. Those can be set outside of the code by manipulating the passed environment.
- Assignments, as in x=23+19. Which can be read outside the code by reading from the passed environment.
- Sequences of expressions separated by the ; operator.
With the latest two items here new to the implementation and perhaps most important. And most interesting. One feature added today is allowing to generate sequences by using ; as a separator, thus making it possible to chain up operations over multiple lines.
If you feel like checking it out:
svn co http://code.licenser.net/rvm/trunk rvm cd rvm rake gem gem install pkg/*also
rdoc README lib/gives you a nice overview about some things as well as the short howto and example at
http://code.licenser.net/documents/show/5
That will install you the latest gem from the trunk – Have fun and I’m always happy about feedback ^^ and or tickets at:
http://code.licenser.net/projects/show/rvm
Trackbacks
Use the following link to trackback from your own site:
http://blog.licenser.net/trackbacks?article_id=43
