MoeOrganization / moe

An -OFun prototype of an Ultra Modern Perl 5
http://moe.iinteractive.com
MIT License
279 stars 46 forks source link

Improve handling of ranges in the parser and interpreter #50

Closed stevan closed 11 years ago

stevan commented 11 years ago

The way ranges are handled in the parser is not ideal, currently it only supports Integers and can only parse literals and variables.

Here is the parser code:

https://github.com/MoeOrganization/moe/blob/master/src/main/scala/org/moe/parser/Expressions.scala#L43

And here is the interpreter code:

https://github.com/MoeOrganization/moe/blob/master/src/main/scala/org/moe/interpreter/Interpreter.scala#L139

prakashk commented 11 years ago

https://github.com/MoeOrganization/moe/pull/54 adds support for string ranges.

stevan commented 11 years ago

I think this is good enough to close now