clarity20 / tql

Terse Query Language
1 stars 0 forks source link

Implement transformations #17

Closed clarity20 closed 5 years ago

clarity20 commented 5 years ago

Commit # 6600257 gives us the transformation signature for an input expression while it inflates the expression. Now it's time to use the signature to perform the transformation(s). Be sure to run the innermost transformations first so the enclosing ones (if any) can be agnostic about their interior. A left-to-right traversal should be sufficient for this because the transformation for any node is only catalogued after the recursive calls to both child nodes.

Some transformations are routine permutations of substrings such as the CONCAT transformation. Handle these generically. Certain others will likely need case-by-case handling.

clarity20 commented 5 years ago

Checkin # 826ed49 implements transformations.