DennisMitchell / jellylanguage

Jelly is a recreational programming language inspired by J.
MIT License
860 stars 47 forks source link

Regex Atoms #56

Open jared-hughes opened 6 years ago

jared-hughes commented 6 years ago

Some possible issues:

GolfingSuccess commented 6 years ago

I suggest making œṠ to act more likey, i.e. [x1, x2, x3, x4] would substitute x1 with x2 and x3 with x4, with earlier matches having priority.

DennisMitchell commented 6 years ago

A few issues:

  1. I'm currently unable to test this because line 1 of jelly.py changed both on master and here. I think that could be resolved by re-adding parser, but I'll see if I can resolve the conflicts in another way.

  2. Many of new the atoms returns str. Jelly doesn't have a string type, so this is bound to cause issues. A single str can be cast to list.

  3. œR returns bool, which is another type Jelly doesn't have.