nl_tokens: rotate to desired gray using entry sequence
pl_tokens: function grayTransform ( entry , <mask> , x , dim ) { // :: Int -> Int -> Int -> Int return bitwise . rotateRight ( ( x ^ entry ) , dim , 0 , direction + 1 ) }