benhj / arrow

An interpreted programming language
MIT License
23 stars 3 forks source link

Running argtest.ar fails with "Parse error" if the argument is not numeric #17

Closed jprendes closed 4 years ago

jprendes commented 4 years ago

Running ./arrow ../examples/argtest.ar hello prints Error: Parse error Running ./arrow ../examples/argtest.ar 123 prints 123

I would expect ./arrow ../examples/argtest.ar hello to print hello

jprendes commented 4 years ago

Ohhh, I see, I need to run ./arrow ../examples/argtest.ar '"hello"'. That seems a bit convoluted.

benhj commented 4 years ago

Fixed with a program arg tokenizer that no longer requires a string to be in double quotes.