heapwolf / ldb

A C++ REPL / CLI for LevelDB
MIT License
201 stars 23 forks source link

Parsing puts #5

Closed heapwolf closed 10 years ago

heapwolf commented 10 years ago

After you find the first whitespace, the remainder of the input gets parsed. We need a key and value. That seems simple but keys and values can have anything in them. So the question is, how should we "split" the rest of the value?

heapwolf commented 10 years ago

this is actually fine for the REPL. you shouldn't ever be trying to do anything delicate from a REPL, you should be doing it through code.