clarity20 / tql

Terse Query Language
1 stars 0 forks source link

Rename "rhs" and "output". Hide the mechanics of advancing through rhs in a helper function. #6

Closed clarity20 closed 5 years ago

clarity20 commented 5 years ago

"Rhs" stands for "right-hand side" and is an acronym familiar to mathematicians. However, it is not descriptive or CS-ish enough for the parser. "Input" would be better, "inputStream" better still. On that note, let us change "output" to "outputStream," too.

There are countless two- and three-line code snippets that serve to advance the inputStream by a foreknown number of bytes. Let's hide the details in a helper function and clean up the driver loop of the parser.

clarity20 commented 5 years ago

Resolved by commit # 32b26e0.