Re: Ruby in Lisp



alflisppython@xxxxxxxx writes:

I would like to know if there is any implementation of Ruby in Lisp.

I think that the idea of using the dot for eliminating parenthesis
is a very
good one:

I prefer l.length to (length l)

Do any of you have an automatic way of doing something like this,
that is

First: Detect that a function has only 1 argument, then transform

(f a) into a.f

Second: Detec that f has more than one argument, transform

(f a b) into a.f(b) etc.

Third. Use multiple times this idea:

(first (last l)) -> l.last.first

Please, i like to have this small programm to play with it.

Thanks to all the people in this lisp channel for a possible answer.

You'd have to write a parser for your syntax and generate a sexp to be
evaluated for each expression. You can implement this in an afternoon.


--
__Pascal Bourguignon__ http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
.



Relevant Pages

  • Ruby in Lisp
    ... I would like to know if there is any implementation of Ruby in Lisp. ... I think that the idea of using the dot for eliminating parenthesis ... Detect that a function has only 1 argument, then transform ...
    (comp.lang.lisp)
  • Re: Draw a scaled arrow
    ... I am already using a transform to scale and translate the image when it ... In the example below, each arrow is rotated about its tip, then scaled, ... home dot woh dot rr dot com slash jbmatthews ...
    (comp.lang.java.programmer)
  • Re: Zoom relative to mouse position
    ... the rectangle is rendered upright on the screen ... how the rectangle remains upright ... and how it is positioned (due to the tx transform). ... home dot woh dot rr dot com slash jbmatthews ...
    (comp.lang.java.programmer)
  • Re: Reverse Engineering - Are there any helpful tools?
    ... dependencies in software is to transform the code into the DOT ... might be transformed into this assembly language: ... compiler to output DOT code as a side effect of compiling Forth ...
    (comp.lang.forth)
  • Re: Ruby in Lisp
    ... fireblade writes: ... I think that the idea of using the dot for eliminating parenthesis ... and whose adhesive power can therefore not be permanently ...
    (comp.lang.lisp)