« Return to Thread: [scala] use scala to make a custom language

Re: [scala] use scala to make a custom language

by Landei :: Rate this Message:

Reply to Author | View in Thread


frapas wrote:
I think that the impossibility to specify operator precedence/associativity
could be an obstacle.
yes
I'm, for example, interested in the possibility to create a language with
syntax similar to perl6.

The operators are:
http://dev.perl.org/perl6/doc/design/syn/S03.html
in particular:
  ~ string concatenation (coerce numbers to string)
  ~~ for regexp (through external library, I know Scala has not regexp)
  math operator (+-*/ ecc ) coerce strings to numbers

Do you think it's possible ?
I think you have to make some compromises :-)

There was a good article about operators at Code Commit:
http://www.codecommit.com/blog/scala/implementing-groovys-elvis-operator-in-scala

 « Return to Thread: [scala] use scala to make a custom language

LightInTheBox - Buy quality products at wholesale price!