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

📄 cppdyer.cpp.htm

📁 这是一个很不错的词法语法分析器! 很适合计算机专业的大学生学习参考
💻 HTM
📖 第 1 页 / 共 5 页
字号:
0042&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0043&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileString</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;settings&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;line_number_chars&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;0&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0044&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0045&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>atoi</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0046&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>&lt;</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0047&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0048&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0049&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileString</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;settings&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;line_number_indent&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;8&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0050&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0051&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberIndent</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>atoi</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0052&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>mLineNumberIndent</I></FONT><FONT COLOR="BLUE"><B>&lt;</B></FONT><FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0053&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0054&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>mLineNumberChars</I></FONT><FONT COLOR="BLUE"><B>+</B></FONT><FONT COLOR="RED"><I>4</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0055&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0056&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0057&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileString</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;settings&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;line_number_prefix&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0058&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0059&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberPrefix</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0061&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileString</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;settings&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;line_number_suffix&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0062&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0063&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mLineNumberSuffix</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0064&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0065&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileString</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;settings&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;tab_spaces&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="RED"><U>&quot;4&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0066&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0067&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mTabSpaces</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>atoi</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0068&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>mTabSpaces</I></FONT><FONT COLOR="BLUE"><B>&lt;</B></FONT><FONT COLOR="RED"><I>1</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0069&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mTabSpaces</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="RED"><I>1</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0070&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0071&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">if</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>GetPrivateProfileSection</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="RED"><U>&quot;extra_keyword&quot;</U></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>MAX_BUFFER_SIZE</I></FONT><FONT COLOR="BLUE"><B>,</B></FONT><FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>c_str</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>!=</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0072&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0073&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">char</FONT><FONT COLOR="BLUE"><B>*</B></FONT>&nbsp;<FONT COLOR="BLACK"><I>p</I></FONT><FONT COLOR="BLUE"><B>=</B></FONT><FONT COLOR="BLACK"><I>s</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0074&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">while</FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>p</I></FONT><FONT COLOR="BLUE"><B>[</B></FONT><FONT COLOR="RED"><I>0</I></FONT><FONT COLOR="BLUE"><B>]</B></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0075&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>
0076&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>mExtraKeywords</I></FONT><FONT COLOR="BLUE"><B>.</B></FONT><FONT COLOR="BLACK"><I>insert</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>p</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0077&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLACK"><I>p</I></FONT><FONT COLOR="BLUE"><B>+=</B></FONT><FONT COLOR="BLACK"><I>strlen</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLACK"><I>p</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><FONT COLOR="BLUE"><B>+</B></FONT><FONT COLOR="RED"><I>1</I></FONT><FONT COLOR="BLUE"><B>;</B></FONT><br>
0078&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0079&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0080&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>}</B></FONT><br>
0081&nbsp;&nbsp;&nbsp;&nbsp;<br>
0082&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE">void</FONT>&nbsp;<FONT COLOR="BLACK"><I>CppDyer</I></FONT><FONT COLOR="BLUE"><B>::</B></FONT><FONT COLOR="BLACK"><I>getSpecialSettings</I></FONT><FONT COLOR="BLUE"><B>(</B></FONT><FONT COLOR="BLUE">string</FONT>&nbsp;<FONT COLOR="BLACK"><I>iniFileName</I></FONT><FONT COLOR="BLUE"><B>)</B></FONT><br>
0083&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="BLUE"><B>{</B></FONT><br>

⌨️ 快捷键说明

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