isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
262 stars 57 forks source link

Better input parsing #113

Open jakobkogler opened 9 years ago

jakobkogler commented 9 years ago

A bunch of golfing challenges give the input in a really stupid format like 1,2,abc or 1 2 3. It would be nice if there's a method that splits and evaluates them into [1, 2, "abc"] and [1, 2, 3]. Or even let Q and .Q do the work.

Ypnypn commented 9 years ago

There's already rQ7, which splits by whitespace and evaluates.

jakobkogler commented 9 years ago

@Ypnypn O.k. This takes care of the 1 2 3 input format. But the other example I posted is still really painful to parse.