handling capitalization (&|) in unlexer -bind

This commit is contained in:
aarne
2017-06-02 06:06:57 +00:00
parent 2af8ffb269
commit d1eb0aa657

View File

@@ -34,6 +34,8 @@ bindTok :: [String] -> [String]
bindTok ws = case ws of
w1:"&+":w2:ws -> bindTok ((w1++w2):ws)
"&+":ws -> bindTok ws
"&|":(c:cs):ws-> (toUpper c:cs) : bindTok ws
"&|":ws -> bindTok ws
w:ws -> w:bindTok ws
[] -> []