A char match is a match to any character except for a field-separator or an end-of-line. To replace the char() function, the any() function has to have a character string that is 256 characters long. In the following script, the character pattern matches with the letter a, the tab, the letter b, the space and finally the letter c before failing when it tries to match the eol.
ASL Script (char_match.asl): START { a:char } do { print("Matched with ".a); } DEFAULT { ..eol } do { print("Failed match"); } Input (char_match.txt): a <tab> b c Output: $ sm_adapter --file=char_match.txt char_match.asl Matched with a Matched with Matched with b Matched with Matched with c Failed match