Brachylog icon indicating copy to clipboard operation
Brachylog copied to clipboard

Add subscripts for the Input

Open JCumin opened this issue 8 years ago • 2 comments

e.g. ?₁ is the second element of ?, ?₎ is the last element of ?, etc.

This can be done by adding predicates calls like constraint variables at the beginning of a rule, one for each ?_i that there is in the rule.

JCumin avatar Feb 10 '17 09:02 JCumin

This is implemented; however this does not work when that subscripted input is in a list, e.g. [?₎]. This needs to be fixed.

JCumin avatar Feb 11 '17 14:02 JCumin

The implementation has been reverted. This is much more tricky to implement than my original naïve implementation. I will get back to making a proper implementation once I can. (Thanks to @ais523 for discovering that it is bugged)

JCumin avatar Feb 13 '17 08:02 JCumin