nl_tokens: Extract the current and expected type based on the input type object
pl_tokens: function getCurrentExpectedTypes ( type ) { var currentType ; var expectedType ; if ( type . <mask> ) { currentType = type . name ; } else if ( type . expression ) { currentType = type . expression . name ; } expectedType = currentType && preferType [ currentType ] ; return { currentType : currentType , expectedType : expectedType } ; }