clarity20 / tql

Terse Query Language
1 stars 0 forks source link

Activate two-phase parsing and remove the obsolete one-phase code #2

Closed clarity20 closed 5 years ago

clarity20 commented 5 years ago

This is the followup to issue #1. When an NCV delimiter is encountered in the preprocessed input, we can tell by simple look-ahead whether we are processing the left side or the right side of an NCV. This tells us how to parse certain TQL constructs without relying on code-smelly workarounds such as "predictor-corrector" mechanisms we currently employ in several places. We need to implement the look-ahead and scuttle the smelly workarounds.

clarity20 commented 5 years ago

Commit # 9185fbe resolves this issue.