private void TContent()
{
while (cur_token != 0)
{
switch (cur_token)
{
case ';':
C();
continue;
case ' ':
case '\t':
skip_space();
continue;
case '\n':
AppendContent();
get_src_token();
continue;
case '\r':
get_src_token();//ignore '\r', as each sentence end with "\n\r" in windows
break;
default:
try
{
if (is_validate_token(cur_token) == true)
{
I();
skip_space();
if (cur_token == '\r' || cur_token == '\n' || cur_token == ';' || cur_token==0)
break;
else
error(string.Format("当前指令结束后出现不支持的符号{0}", cur_token));
}
else if (cur_token == '.')
error("伪指令只能出现在程序段的开头");
else
error(string.Format("不支持的符号{0}", cur_token));
}
catch
#if debug
(Exception e)
#endif
{
#if debug
System.Diagnostics.Debug.Print(e.StackTrace.ToString());
#endif
jump_to_next_line();
}
break;
}
}
if (cur_token == 0)//文件尾部检查
{
if (format_line.Length > 0 && src_line.Length > 0)
AppendContent();
}
}