From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- .../PhpDocumentor/scripts/tokenizer_test.php | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 buildscripts/PhpDocumentor/scripts/tokenizer_test.php (limited to 'buildscripts/PhpDocumentor/scripts/tokenizer_test.php') diff --git a/buildscripts/PhpDocumentor/scripts/tokenizer_test.php b/buildscripts/PhpDocumentor/scripts/tokenizer_test.php deleted file mode 100644 index e7c5748a..00000000 --- a/buildscripts/PhpDocumentor/scripts/tokenizer_test.php +++ /dev/null @@ -1,59 +0,0 @@ -package_index)) - foreach(\$this->all_packages as \$key => \$val) - { - if (isset(\$this->pkg_elements[\$key])) - { - if (!isset(\$start)) \$start = \$key; - \$this->package_index[] = array('link' => \"li_\$key.html\", 'title' => \$key); - } - } - \$templ = new Smarty; - \$templ->template_dir = \$this->smarty_dir . PATH_DELIMITER . 'templates'; - \$templ->compile_dir = \$this->smarty_dir . PATH_DELIMITER . 'templates_c'; - \$templ->config_dir = \$this->smarty_dir . PATH_DELIMITER . 'configs'; - \$templ->assign(\"packageindex\",\$this->package_index); - \$templ->assign(\"phpdocversion\",PHPDOCUMENTOR_VER); - \$templ->assign(\"phpdocwebsite\",PHPDOCUMENTOR_WEBSITE); - \$templ->assign(\"package\",\$this->package); - \$templ->assign(\"subdir\",''); - return \$templ; - } -?> -"; -$tokens = token_get_all($file); - -$nl_check = array(T_WHITESPACE,T_ENCAPSED_AND_WHITESPACE,T_COMMENT,T_DOC_COMMENT,T_OPEN_TAG,T_CLOSE_TAG,T_INLINE_HTML); -print '
';
-$line = 0;
-foreach($tokens as $key => $val)
-{
-	if (is_array($val))
-	{
-		// seeing if we can get line numbers out of the beast
-		if (in_array($val[0],$nl_check))
-		{
-			$line+=substr_count($val[1],"\n");
-		}
-		echo token_name($val[0])." => ".htmlentities($val[1])."\n";
-	}
-	else
-	{
-		echo "*** $val\n";
-	}
-}
-echo "$line\n";
-print '
'; -?> -- cgit v1.2.3