Function: syntax-class

Return the code for the syntax class described by SYNTAX.

SYNTAX should be a raw syntax descriptor; the return value is a
integer which encodes the corresponding syntax class. See Info
node `(elisp)Syntax Table Internals' for a list of codes.

If SYNTAX is nil, return nil.