akc / hops

HOPS - Handy Operations on Power Series
http://akc.is/hops
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Don't strip whitespace before parsing #11

Open SuprDewd opened 7 years ago

SuprDewd commented 7 years ago

Currently all whitespace is being removed before parsing happens. This leads to weird behaviour such as

> hops 'f2 = x; f 2'
{"hops":"f2=x;f2","seq":[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0]}

Obviously it should still be possible to have whitespace in an expression, but that needs to be handled in a different manner.