⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 til2html.htm

📁 c-smile 一个语法类似与JS 又有点像C++的 编译器
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<HTML><HEAD><META NAME='GENERATOR' Content='TIL:til2html'><LINK rel='stylesheet' type='text/css' href='codestyle.css'></HEAD><BODY><P>plain text version:<A href='til2html.csp'>til2html.csp</A></P><HR><PRE><FONT color='gray'>  1| </FONT><FONT color='green'>//|
</FONT><FONT color='gray'>  2| </FONT><FONT color='green'>//| til source to html converter
</FONT><FONT color='gray'>  3| </FONT><FONT color='green'>//| author: Andrew Fedoniuk
</FONT><FONT color='gray'>  4| </FONT><FONT color='green'>//|
</FONT><FONT color='gray'>  5| </FONT><FONT color='darkblue'><B>package</B></FONT> csp2html<FONT color='dimgray'>;</FONT><FONT color='gray'>  6| </FONT><FONT color='gray'>  7| </FONT><FONT color='green'>//--some-settings------------------------------
</FONT><FONT color='gray'>  8| </FONT><FONT color='green'>//  colors
</FONT><FONT color='gray'>  9| </FONT><FONT color='darkblue'><B>const</B></FONT> NUMBER_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;red&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 10| </FONT><FONT color='darkblue'><B>const</B></FONT> KEYWORD_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;darkblue&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 11| </FONT><FONT color='darkblue'><B>const</B></FONT> FUNCTION_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;purple&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 12| </FONT><FONT color='darkblue'><B>const</B></FONT> COMMENT_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;green&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 13| </FONT><FONT color='darkblue'><B>const</B></FONT> STRING_LIT_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;maroon&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 14| </FONT><FONT color='darkblue'><B>const</B></FONT> OPERATOR_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;dimgray&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 15| </FONT><FONT color='darkblue'><B>const</B></FONT> LINE_NO_COLOR <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;gray&quot;</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 16| </FONT><FONT color='gray'> 17| </FONT><FONT color='darkblue'><B>const</B></FONT> TAB <FONT color='dimgray'>=</FONT> <FONT color='maroon'>&quot;  &quot;</FONT><FONT color='dimgray'>;</FONT> <FONT color='green'>// two chars tab
</FONT><FONT color='gray'> 18| </FONT><FONT color='green'>//---------------------------------------------
</FONT><FONT color='gray'> 19| </FONT><FONT color='gray'> 20| </FONT><FONT color='green'>// streams
</FONT><FONT color='gray'> 21| </FONT><FONT color='darkblue'><B>var</B></FONT> _in <FONT color='dimgray'>=</FONT> <FONT color='darkblue'><B>null</B></FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 22| </FONT><FONT color='darkblue'><B>var</B></FONT> _out <FONT color='dimgray'>=</FONT> <FONT color='darkblue'><B>null</B></FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 23| </FONT><FONT color='gray'> 24| </FONT><FONT color='darkblue'><B>var</B></FONT> _line_no <FONT color='dimgray'>=</FONT> <FONT color='red'>0</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 25| </FONT><FONT color='gray'> 26| </FONT><FONT color='darkblue'><B>var</B></FONT> _r_words <FONT color='dimgray'>=</FONT> <FONT color='dimgray'>{</FONT><FONT color='gray'> 27| </FONT>  <FONT color='maroon'>&quot;class&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;static&quot;</FONT>  <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;if&quot;</FONT>      <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 28| </FONT>  <FONT color='maroon'>&quot;else&quot;</FONT>    <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;while&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;return&quot;</FONT>  <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 29| </FONT>  <FONT color='maroon'>&quot;for&quot;</FONT>     <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;break&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;continue&quot;</FONT><FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 30| </FONT>  <FONT color='maroon'>&quot;do&quot;</FONT>      <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;new&quot;</FONT>     <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;null&quot;</FONT>    <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 31| </FONT>  <FONT color='maroon'>&quot;var&quot;</FONT>     <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;function&quot;</FONT><FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;package&quot;</FONT> <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 32| </FONT>  <FONT color='maroon'>&quot;try&quot;</FONT>     <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;catch&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;throw&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 33| </FONT>  <FONT color='maroon'>&quot;property&quot;</FONT><FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;import&quot;</FONT>  <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;is&quot;</FONT>      <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 34| </FONT>  <FONT color='maroon'>&quot;undefined&quot;</FONT><FONT color='dimgray'>:</FONT><FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;$&quot;</FONT>       <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;$$&quot;</FONT>      <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 35| </FONT>  <FONT color='maroon'>&quot;switch&quot;</FONT>  <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;case&quot;</FONT>    <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;default&quot;</FONT> <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT><FONT color='gray'> 36| </FONT>  <FONT color='maroon'>&quot;@&quot;</FONT>       <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;synchronized&quot;</FONT><FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT> <FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;const&quot;</FONT>   <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 37| </FONT>  <FONT color='maroon'>&quot;true&quot;</FONT>    <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT><FONT color='dimgray'>,</FONT>   <FONT color='maroon'>&quot;false&quot;</FONT> <FONT color='dimgray'>:</FONT> <FONT color='darkblue'><B>true</B></FONT><FONT color='gray'> 38| </FONT><FONT color='dimgray'>}</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 39| </FONT><FONT color='gray'> 40| </FONT><FONT color='darkblue'><B>var</B></FONT> _r_delimeters <FONT color='dimgray'>=</FONT> <FONT color='dimgray'>[</FONT><FONT color='gray'> 41| </FONT>    <FONT color='green'>// 1    2    3    4
</FONT><FONT color='gray'> 42| </FONT>      <FONT color='maroon'>&quot; &quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;\r&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;\n&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;\t&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 43| </FONT>    <FONT color='green'>//  5    6   7    8
</FONT><FONT color='gray'> 44| </FONT>      <FONT color='maroon'>'\&quot;'</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;\'&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;(&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;)&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 45| </FONT>    <FONT color='green'>//  9    10   
</FONT><FONT color='gray'> 46| </FONT>      <FONT color='maroon'>&quot;/*&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='maroon'>&quot;//&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 47| </FONT>      <FONT color='maroon'>&quot;&lt;&lt;=&quot;</FONT><FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;&lt;=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&lt;&lt;&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&lt;&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 48| </FONT>      <FONT color='maroon'>&quot;&gt;&gt;=&quot;</FONT><FONT color='dimgray'>,</FONT>  <FONT color='maroon'>&quot;&gt;=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&gt;&gt;&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&gt;&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 49| </FONT>      <FONT color='maroon'>&quot;==&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;=&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 50| </FONT>      <FONT color='maroon'>&quot;!=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;!&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 51| </FONT>      <FONT color='maroon'>&quot;&amp;=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&amp;&amp;&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;&amp;&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='gray'> 52| </FONT>      <FONT color='maroon'>&quot;|=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;||&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;|&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 53| </FONT>      <FONT color='maroon'>&quot;+=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;++&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;+&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 54| </FONT>      <FONT color='maroon'>&quot;-=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;--&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;-&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 55| </FONT>      <FONT color='maroon'>&quot;*=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;*&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 56| </FONT>      <FONT color='maroon'>&quot;/=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;/&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 57| </FONT>      <FONT color='maroon'>&quot;%=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;%&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 58| </FONT>      <FONT color='maroon'>&quot;^=&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;^&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 59| </FONT>      <FONT color='maroon'>&quot;::&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;:&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 60| </FONT>      <FONT color='maroon'>&quot;{&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;}&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 61| </FONT>      <FONT color='maroon'>&quot;[&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;]&quot;</FONT><FONT color='dimgray'>,</FONT><FONT color='gray'> 62| </FONT>      <FONT color='maroon'>&quot;.&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;,&quot;</FONT><FONT color='dimgray'>,</FONT> <FONT color='maroon'>&quot;;&quot;</FONT> <FONT color='dimgray'>]</FONT><FONT color='dimgray'>;</FONT><FONT color='gray'> 63| </FONT>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -