syntax-class

syntax-class is a compiled Lisp function in `subr.el'.

(syntax-class SYNTAX)

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.