code: public static TokenType resolveTypeAsSymbol(char symbol) {
          TokenType type;
          if (symbol == Token.BEAN_SYMBOL) {
              type = TokenType.BEAN;
          } else if (symbol == Token.TEMPLATE_SYMBOL) {
              type = TokenType.TEMPLATE;
          } else if (symbol == Token.PARAMETER_SYMBOL) {
              type = TokenType.PARAMETER;
          } else if (symbol == Token.ATTRIBUTE_SYMBOL) {
              type = TokenType.ATTRIBUTE;
          } else if (symbol == Token.PROPERTY_SYMBOL) {
              type = TokenType.PROPERTY;
          } else {
              throw new IllegalArgumentException("Unknown token symbol: " + symbol);
          }
          return type;
      }
docs: Returns the token type for the specified character.
  
  @param symbol the token symbol character
  @return the token type