4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Doctrine trying</title>
6 <script src="../doctrine.js"></script>
7 <script type="text/javascript">
8 window.onload = function() {
9 document.getElementById("doit").onclick = function() {
10 var res = doctrine.parseParamType(document.getElementById("commenttext").value,
11 {unwrap:true, recoverable:true} );
13 document.getElementById("parse_tree_res").innerHTML = JSON.stringify(res, null, ' ');
14 document.getElementById("stringify_res").textContent = doctrine.stringify(res);
20 <textarea id="commenttext">Add a jsdoc comment here</textarea>
23 <button id="doit">Click to parse</button>
27 <pre id="parse_tree_res" ></pre>
29 <pre id="stringify_res" ></pre>