Hex Artifact Content
Not logged in

Artifact e3b4b64f19f937983f7e866c98341998c054cc77:


0000: 0d 0a 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 0d 0a  ..<html><head>..
0010: 3c 6d 65 74 61 20 68 74 74 70 2d 65 71 75 69 76  <meta http-equiv
0020: 3d 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 20  ="content-type" 
0030: 63 6f 6e 74 65 6e 74 3d 22 74 65 78 74 2f 68 74  content="text/ht
0040: 6d 6c 3b 20 63 68 61 72 73 65 74 3d 75 74 66 2d  ml; charset=utf-
0050: 38 22 3e 0d 0a 3c 6d 65 74 61 20 63 6f 6e 74 65  8">..<meta conte
0060: 6e 74 3d 22 74 65 78 74 2f 6a 61 76 61 73 63 72  nt="text/javascr
0070: 69 70 74 22 20 68 74 74 70 2d 65 71 75 69 76 3d  ipt" http-equiv=
0080: 22 63 6f 6e 74 65 6e 74 2d 73 63 72 69 70 74 2d  "content-script-
0090: 74 79 70 65 22 3e 0d 0a 3c 74 69 74 6c 65 3e 70  type">..<title>p
00a0: 6f 6c 65 6d 79 2e 70 61 72 73 65 3c 2f 74 69 74  olemy.parse</tit
00b0: 6c 65 3e 0d 0a 3c 6c 69 6e 6b 20 72 65 6c 3d 22  le>..<link rel="
00c0: 73 74 79 6c 65 73 68 65 65 74 22 20 74 79 70 65  stylesheet" type
00d0: 3d 22 74 65 78 74 2f 63 73 73 22 20 68 72 65 66  ="text/css" href
00e0: 3d 22 63 61 6e 64 79 64 6f 63 2f 73 74 79 6c 65  ="candydoc/style
00f0: 2e 63 73 73 22 3e 0d 0a 3c 21 2d 2d 5b 69 66 20  .css">..<!--[if 
0100: 6c 74 20 49 45 20 37 5d 3e 3c 6c 69 6e 6b 20 72  lt IE 7]><link r
0110: 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22 20  el="stylesheet" 
0120: 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22 20  type="text/css" 
0130: 68 72 65 66 3d 22 63 61 6e 64 79 64 6f 63 2f 69  href="candydoc/i
0140: 65 35 36 68 61 63 6b 2e 63 73 73 22 3e 3c 21 5b  e56hack.css"><![
0150: 65 6e 64 69 66 5d 2d 2d 3e 0d 0a 3c 73 63 72 69  endif]-->..<scri
0160: 70 74 20 6c 61 6e 67 75 61 67 65 3d 22 4a 61 76  pt language="Jav
0170: 61 53 63 72 69 70 74 22 20 73 72 63 3d 22 63 61  aScript" src="ca
0180: 6e 64 79 64 6f 63 2f 75 74 69 6c 2e 6a 73 22 20  ndydoc/util.js" 
0190: 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76 61 73  type="text/javas
01a0: 63 72 69 70 74 22 3e 3c 2f 73 63 72 69 70 74 3e  cript"></script>
01b0: 0d 0a 3c 73 63 72 69 70 74 20 6c 61 6e 67 75 61  ..<script langua
01c0: 67 65 3d 22 4a 61 76 61 53 63 72 69 70 74 22 20  ge="JavaScript" 
01d0: 73 72 63 3d 22 63 61 6e 64 79 64 6f 63 2f 74 72  src="candydoc/tr
01e0: 65 65 2e 6a 73 22 20 74 79 70 65 3d 22 74 65 78  ee.js" type="tex
01f0: 74 2f 6a 61 76 61 73 63 72 69 70 74 22 3e 3c 2f  t/javascript"></
0200: 73 63 72 69 70 74 3e 0d 0a 3c 73 63 72 69 70 74  script>..<script
0210: 20 6c 61 6e 67 75 61 67 65 3d 22 4a 61 76 61 53   language="JavaS
0220: 63 72 69 70 74 22 20 73 72 63 3d 22 63 61 6e 64  cript" src="cand
0230: 79 64 6f 63 2f 65 78 70 6c 6f 72 65 72 2e 6a 73  ydoc/explorer.js
0240: 22 20 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76  " type="text/jav
0250: 61 73 63 72 69 70 74 22 3e 3c 2f 73 63 72 69 70  ascript"></scrip
0260: 74 3e 0d 0a 3c 2f 68 65 61 64 3e 3c 62 6f 64 79  t>..</head><body
0270: 3e 0d 0a 3c 64 69 76 20 69 64 3d 22 74 61 62 61  >..<div id="taba
0280: 72 65 61 22 3e 3c 2f 64 69 76 3e 3c 64 69 76 20  rea"></div><div 
0290: 69 64 3d 22 65 78 70 6c 6f 72 65 72 63 6c 69 65  id="explorerclie
02a0: 6e 74 22 3e 3c 2f 64 69 76 3e 0d 0a 3c 64 69 76  nt"></div>..<div
02b0: 20 69 64 3d 22 63 6f 6e 74 65 6e 74 22 3e 3c 73   id="content"><s
02c0: 63 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e 69  cript>explorer.i
02d0: 6e 69 74 69 61 6c 69 7a 65 28 22 70 6f 6c 65 6d  nitialize("polem
02e0: 79 2e 70 61 72 73 65 22 29 3b 3c 2f 73 63 72 69  y.parse");</scri
02f0: 70 74 3e 0d 0a 09 3c 74 61 62 6c 65 20 63 6c 61  pt>...<table cla
0300: 73 73 3d 22 63 6f 6e 74 65 6e 74 22 3e 0d 0a 09  ss="content">...
0310: 09 3c 74 72 3e 3c 74 64 20 69 64 3d 22 64 6f 63  .<tr><td id="doc
0320: 62 6f 64 79 22 3e 3c 68 31 3e 70 6f 6c 65 6d 79  body"><h1>polemy
0330: 2e 70 61 72 73 65 3c 2f 68 31 3e 3c 21 2d 2d 20  .parse</h1><!-- 
0340: 47 65 6e 65 72 61 74 65 64 20 62 79 20 44 64 6f  Generated by Ddo
0350: 63 20 66 72 6f 6d 20 70 6f 6c 65 6d 79 5c 70 61  c from polemy\pa
0360: 72 73 65 2e 64 20 2d 2d 3e 0d 0a 3c 62 3e 41 75  rse.d -->..<b>Au
0370: 74 68 6f 72 73 3a 3c 2f 62 3e 3c 62 72 3e 0d 0a  thors:</b><br>..
0380: 6b 2e 69 6e 61 62 61 0d 0a 3c 62 72 3e 3c 62 72  k.inaba..<br><br
0390: 3e 0d 0a 3c 62 3e 4c 69 63 65 6e 73 65 3a 3c 2f  >..<b>License:</
03a0: 62 3e 3c 62 72 3e 0d 0a 4e 59 53 4c 20 30 2e 39  b><br>..NYSL 0.9
03b0: 39 38 32 20 68 74 74 70 3a 2f 2f 77 77 77 2e 6b  982 http://www.k
03c0: 6d 6f 6e 6f 73 2e 6e 65 74 2f 6e 79 73 6c 2f 0d  monos.net/nysl/.
03d0: 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 0d 0a 20 50 61  .<br><br>.... Pa
03e0: 72 73 65 72 20 66 6f 72 20 50 6f 6c 65 6d 79 20  rser for Polemy 
03f0: 70 72 6f 67 72 61 6d 6d 69 6e 67 20 6c 61 6e 67  programming lang
0400: 75 61 67 65 3c 62 72 3e 3c 62 72 3e 0d 0a 0d 0a  uage<br><br>....
0410: 0d 0a 3c 73 63 72 69 70 74 3e 65 78 70 6c 6f 72  ..<script>explor
0420: 65 72 2e 6f 75 74 6c 69 6e 65 2e 69 6e 63 53 79  er.outline.incSy
0430: 6d 62 6f 6c 4c 65 76 65 6c 28 29 3b 3c 2f 73 63  mbolLevel();</sc
0440: 72 69 70 74 3e 0d 0a 3c 64 6c 3e 0d 0a 3c 73 63  ript>..<dl>..<sc
0450: 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e 6f 75  ript>explorer.ou
0460: 74 6c 69 6e 65 2e 77 72 69 74 65 45 6e 61 62 6c  tline.writeEnabl
0470: 65 64 20 3d 20 74 72 75 65 3b 3c 2f 73 63 72 69  ed = true;</scri
0480: 70 74 3e 0d 0a 3c 64 74 3e 3c 73 70 61 6e 20 63  pt>..<dt><span c
0490: 6c 61 73 73 3d 22 64 65 63 6c 22 3e 41 53 54 20  lass="decl">AST 
04a0: 0d 0a 3c 73 70 61 6e 20 63 6c 61 73 73 3d 22 63  ..<span class="c
04b0: 75 72 72 73 79 6d 62 6f 6c 22 3e 70 61 72 73 65  urrsymbol">parse
04c0: 53 74 72 69 6e 67 3c 2f 73 70 61 6e 3e 0d 0a 3c  String</span>..<
04d0: 73 63 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e  script>explorer.
04e0: 6f 75 74 6c 69 6e 65 2e 61 64 64 44 65 63 6c 28  outline.addDecl(
04f0: 27 70 61 72 73 65 53 74 72 69 6e 67 27 29 3b 3c  'parseString');<
0500: 2f 73 63 72 69 70 74 3e 0d 0a 0d 0a 28 53 2c 20  /script>....(S, 
0510: 54 2e 2e 2e 29 28 53 20 3c 73 70 61 6e 20 63 6c  T...)(S <span cl
0520: 61 73 73 3d 22 66 75 6e 63 70 61 72 61 6d 22 3e  ass="funcparam">
0530: 73 74 72 3c 2f 73 70 61 6e 3e 2c 20 54 20 3c 73  str</span>, T <s
0540: 70 61 6e 20 63 6c 61 73 73 3d 22 66 75 6e 63 70  pan class="funcp
0550: 61 72 61 6d 22 3e 66 6e 5f 6c 6e 5f 63 6e 3c 2f  aram">fn_ln_cn</
0560: 73 70 61 6e 3e 29 3b 0d 0a 3c 2f 73 70 61 6e 3e  span>);..</span>
0570: 3c 2f 64 74 3e 0d 0a 3c 73 63 72 69 70 74 3e 65  </dt>..<script>e
0580: 78 70 6c 6f 72 65 72 2e 6f 75 74 6c 69 6e 65 2e  xplorer.outline.
0590: 77 72 69 74 65 45 6e 61 62 6c 65 64 20 3d 20 66  writeEnabled = f
05a0: 61 6c 73 65 3b 3c 2f 73 63 72 69 70 74 3e 0d 0a  alse;</script>..
05b0: 0d 0a 0d 0a 3c 64 64 3e 50 61 72 73 65 20 61 20  ....<dd>Parse a 
05c0: 73 74 72 69 6e 67 20 61 6e 64 20 72 65 74 75 72  string and retur
05d0: 6e 20 69 74 73 20 41 53 54 3c 62 72 3e 3c 62 72  n its AST<br><br
05e0: 3e 0d 0a 0d 0a 3c 2f 64 64 3e 0d 0a 0d 0a 3c 73  >....</dd>....<s
05f0: 63 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e 6f  cript>explorer.o
0600: 75 74 6c 69 6e 65 2e 77 72 69 74 65 45 6e 61 62  utline.writeEnab
0610: 6c 65 64 20 3d 20 74 72 75 65 3b 3c 2f 73 63 72  led = true;</scr
0620: 69 70 74 3e 0d 0a 3c 64 74 3e 3c 73 70 61 6e 20  ipt>..<dt><span 
0630: 63 6c 61 73 73 3d 22 64 65 63 6c 22 3e 41 53 54  class="decl">AST
0640: 20 0d 0a 3c 73 70 61 6e 20 63 6c 61 73 73 3d 22   ..<span class="
0650: 63 75 72 72 73 79 6d 62 6f 6c 22 3e 70 61 72 73  currsymbol">pars
0660: 65 46 69 6c 65 3c 2f 73 70 61 6e 3e 0d 0a 3c 73  eFile</span>..<s
0670: 63 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e 6f  cript>explorer.o
0680: 75 74 6c 69 6e 65 2e 61 64 64 44 65 63 6c 28 27  utline.addDecl('
0690: 70 61 72 73 65 46 69 6c 65 27 29 3b 3c 2f 73 63  parseFile');</sc
06a0: 72 69 70 74 3e 0d 0a 0d 0a 28 53 2c 20 54 2e 2e  ript>....(S, T..
06b0: 2e 29 28 53 20 3c 73 70 61 6e 20 63 6c 61 73 73  .)(S <span class
06c0: 3d 22 66 75 6e 63 70 61 72 61 6d 22 3e 66 69 6c  ="funcparam">fil
06d0: 65 6e 61 6d 65 3c 2f 73 70 61 6e 3e 2c 20 54 20  ename</span>, T 
06e0: 3c 73 70 61 6e 20 63 6c 61 73 73 3d 22 66 75 6e  <span class="fun
06f0: 63 70 61 72 61 6d 22 3e 6c 6e 5f 63 6e 3c 2f 73  cparam">ln_cn</s
0700: 70 61 6e 3e 29 3b 0d 0a 3c 2f 73 70 61 6e 3e 3c  pan>);..</span><
0710: 2f 64 74 3e 0d 0a 3c 73 63 72 69 70 74 3e 65 78  /dt>..<script>ex
0720: 70 6c 6f 72 65 72 2e 6f 75 74 6c 69 6e 65 2e 77  plorer.outline.w
0730: 72 69 74 65 45 6e 61 62 6c 65 64 20 3d 20 66 61  riteEnabled = fa
0740: 6c 73 65 3b 3c 2f 73 63 72 69 70 74 3e 0d 0a 0d  lse;</script>...
0750: 0a 0d 0a 3c 64 64 3e 50 61 72 73 65 20 74 68 65  ...<dd>Parse the
0760: 20 63 6f 6e 74 65 6e 74 20 6f 66 20 61 20 66 69   content of a fi
0770: 6c 65 20 61 6e 64 20 72 65 74 75 72 6e 20 69 74  le and return it
0780: 73 20 41 53 54 3c 62 72 3e 3c 62 72 3e 0d 0a 0d  s AST<br><br>...
0790: 0a 3c 2f 64 64 3e 0d 0a 3c 2f 64 6c 3e 0d 0a 3c  .</dd>..</dl>..<
07a0: 73 63 72 69 70 74 3e 65 78 70 6c 6f 72 65 72 2e  script>explorer.
07b0: 6f 75 74 6c 69 6e 65 2e 64 65 63 53 79 6d 62 6f  outline.decSymbo
07c0: 6c 4c 65 76 65 6c 28 29 3b 3c 2f 73 63 72 69 70  lLevel();</scrip
07d0: 74 3e 0d 0a 0d 0a 0d 0a 3c 2f 74 64 3e 3c 2f 74  t>......</td></t
07e0: 72 3e 0d 0a 09 09 3c 74 72 3e 3c 74 64 20 69 64  r>....<tr><td id
07f0: 3d 22 64 6f 63 66 6f 6f 74 65 72 22 3e 0d 0a 09  ="docfooter">...
0800: 09 09 50 61 67 65 20 77 61 73 20 67 65 6e 65 72  ..Page was gener
0810: 61 74 65 64 20 77 69 74 68 0d 0a 09 09 09 3c 69  ated with.....<i
0820: 6d 67 20 73 72 63 3d 22 63 61 6e 64 79 64 6f 63  mg src="candydoc
0830: 2f 69 6d 67 2f 63 61 6e 64 79 64 6f 63 2e 67 69  /img/candydoc.gi
0840: 66 22 20 73 74 79 6c 65 3d 22 76 65 72 74 69 63  f" style="vertic
0850: 61 6c 2d 61 6c 69 67 6e 3a 6d 69 64 64 6c 65 3b  al-align:middle;
0860: 20 70 6f 73 69 74 69 6f 6e 3a 72 65 6c 61 74 69   position:relati
0870: 76 65 3b 20 74 6f 70 3a 2d 31 70 78 22 3e 0d 0a  ve; top:-1px">..
0880: 09 09 09 6f 6e 20 46 72 69 20 4e 6f 76 20 32 36  ...on Fri Nov 26
0890: 20 31 36 3a 34 31 3a 34 38 20 32 30 31 30 0d 0a   16:41:48 2010..
08a0: 0d 0a 09 09 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a  ....</td></tr>..
08b0: 09 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 2f 64 69 76  .</table>..</div
08c0: 3e 0d 0a 3c 73 63 72 69 70 74 3e 0d 0a 09 65 78  >..<script>...ex
08d0: 70 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45 78  plorer.packageEx
08e0: 70 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65  plorer.addModule
08f0: 28 22 69 6e 64 65 78 22 29 3b 0d 0a 09 65 78 70  ("index");...exp
0900: 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45 78 70  lorer.packageExp
0910: 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65 28  lorer.addModule(
0920: 22 6d 61 69 6e 22 29 3b 0d 0a 09 65 78 70 6c 6f  "main");...explo
0930: 72 65 72 2e 70 61 63 6b 61 67 65 45 78 70 6c 6f  rer.packageExplo
0940: 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65 28 22 74  rer.addModule("t
0950: 72 69 63 6b 73 2e 74 72 69 63 6b 73 22 29 3b 0d  ricks.tricks");.
0960: 0a 09 65 78 70 6c 6f 72 65 72 2e 70 61 63 6b 61  ..explorer.packa
0970: 67 65 45 78 70 6c 6f 72 65 72 2e 61 64 64 4d 6f  geExplorer.addMo
0980: 64 75 6c 65 28 22 74 72 69 63 6b 73 2e 74 65 73  dule("tricks.tes
0990: 74 22 29 3b 0d 0a 09 65 78 70 6c 6f 72 65 72 2e  t");...explorer.
09a0: 70 61 63 6b 61 67 65 45 78 70 6c 6f 72 65 72 2e  packageExplorer.
09b0: 61 64 64 4d 6f 64 75 6c 65 28 22 70 6f 6c 65 6d  addModule("polem
09c0: 79 2e 5f 63 6f 6d 6d 6f 6e 22 29 3b 0d 0a 09 65  y._common");...e
09d0: 78 70 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45  xplorer.packageE
09e0: 78 70 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c  xplorer.addModul
09f0: 65 28 22 70 6f 6c 65 6d 79 2e 66 61 69 6c 75 72  e("polemy.failur
0a00: 65 22 29 3b 0d 0a 09 65 78 70 6c 6f 72 65 72 2e  e");...explorer.
0a10: 70 61 63 6b 61 67 65 45 78 70 6c 6f 72 65 72 2e  packageExplorer.
0a20: 61 64 64 4d 6f 64 75 6c 65 28 22 70 6f 6c 65 6d  addModule("polem
0a30: 79 2e 6c 61 79 65 72 22 29 3b 0d 0a 09 65 78 70  y.layer");...exp
0a40: 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45 78 70  lorer.packageExp
0a50: 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65 28  lorer.addModule(
0a60: 22 70 6f 6c 65 6d 79 2e 66 72 65 73 68 22 29 3b  "polemy.fresh");
0a70: 0d 0a 09 65 78 70 6c 6f 72 65 72 2e 70 61 63 6b  ...explorer.pack
0a80: 61 67 65 45 78 70 6c 6f 72 65 72 2e 61 64 64 4d  ageExplorer.addM
0a90: 6f 64 75 6c 65 28 22 70 6f 6c 65 6d 79 2e 6c 65  odule("polemy.le
0aa0: 78 22 29 3b 0d 0a 09 65 78 70 6c 6f 72 65 72 2e  x");...explorer.
0ab0: 70 61 63 6b 61 67 65 45 78 70 6c 6f 72 65 72 2e  packageExplorer.
0ac0: 61 64 64 4d 6f 64 75 6c 65 28 22 70 6f 6c 65 6d  addModule("polem
0ad0: 79 2e 70 61 72 73 65 22 29 3b 0d 0a 09 65 78 70  y.parse");...exp
0ae0: 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45 78 70  lorer.packageExp
0af0: 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65 28  lorer.addModule(
0b00: 22 70 6f 6c 65 6d 79 2e 61 73 74 22 29 3b 0d 0a  "polemy.ast");..
0b10: 09 65 78 70 6c 6f 72 65 72 2e 70 61 63 6b 61 67  .explorer.packag
0b20: 65 45 78 70 6c 6f 72 65 72 2e 61 64 64 4d 6f 64  eExplorer.addMod
0b30: 75 6c 65 28 22 70 6f 6c 65 6d 79 2e 76 61 6c 75  ule("polemy.valu
0b40: 65 22 29 3b 0d 0a 09 65 78 70 6c 6f 72 65 72 2e  e");...explorer.
0b50: 70 61 63 6b 61 67 65 45 78 70 6c 6f 72 65 72 2e  packageExplorer.
0b60: 61 64 64 4d 6f 64 75 6c 65 28 22 70 6f 6c 65 6d  addModule("polem
0b70: 79 2e 76 61 6c 75 65 63 6f 6e 76 22 29 3b 0d 0a  y.valueconv");..
0b80: 09 65 78 70 6c 6f 72 65 72 2e 70 61 63 6b 61 67  .explorer.packag
0b90: 65 45 78 70 6c 6f 72 65 72 2e 61 64 64 4d 6f 64  eExplorer.addMod
0ba0: 75 6c 65 28 22 70 6f 6c 65 6d 79 2e 65 76 61 6c  ule("polemy.eval
0bb0: 22 29 3b 0d 0a 09 65 78 70 6c 6f 72 65 72 2e 70  ");...explorer.p
0bc0: 61 63 6b 61 67 65 45 78 70 6c 6f 72 65 72 2e 61  ackageExplorer.a
0bd0: 64 64 4d 6f 64 75 6c 65 28 22 70 6f 6c 65 6d 79  ddModule("polemy
0be0: 2e 72 75 6e 74 69 6d 65 22 29 3b 0d 0a 09 65 78  .runtime");...ex
0bf0: 70 6c 6f 72 65 72 2e 70 61 63 6b 61 67 65 45 78  plorer.packageEx
0c00: 70 6c 6f 72 65 72 2e 61 64 64 4d 6f 64 75 6c 65  plorer.addModule
0c10: 28 22 70 6f 6c 65 6d 79 2e 72 65 70 6c 22 29 3b  ("polemy.repl");
0c20: 3c 2f 73 63 72 69 70 74 3e 0d 0a 3c 2f 62 6f 64  </script>..</bod
0c30: 79 3e 3c 2f 68 74 6d 6c 3e 0d 0a 0d 0a 0d 0a     y></html>......