<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">于 2013-10-20 4:05, Colin Law 写道:<br>
</div>
<blockquote
cite="mid:CAL=0gLuNYefJEHqUfywthrCpLMYQRQH1Jb2jV4WPT8nKdCxscQ@mail.gmail.com"
type="cite">
<pre wrap="">On 19 October 2013 17:40, 陶治江 <a class="moz-txt-link-rfc2396E" href="mailto:taozhijiang@gmail.com"><taozhijiang@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hello everylinuxers:
I am now focusing on the development of a script interpretor (some thing
like shell)
in embedded environment, and its functions mainly output the data in
specified
address. In order to make it seems better, I want to format the output
result like
MySQL output listed below for example
+--------+-------------+
| address| value |
+--------+-------------+
| 0x1110 | 0x01 |
+--------+-------------+
| 0x1111 | 0x00 |
+--------+-------------+
I think it seems good like this, but I do not know how to make out
it.(someone says awk,
sed may help, but the environment does not permit it). Is there some libs or
tools can
help make output result good and elegent?
</pre>
</blockquote>
<pre wrap="">
What language are you writing your application in? Python, Ruby or what?
Colin
</pre>
</blockquote>
<br>
C, and with flex bison<br>
<br>
tks<br>
<br>
<br>
<div class="moz-signature">-- <br>
<span style="FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt"><span><span
style="FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt"><i><span
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR:
blue; FONT-SIZE: 12pt" lang="EN-US">Thanks & Best
Regrads! <o:p style="MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px"></o:p></span></i>
<p style="TEXT-ALIGN: left; MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px" class="MsoNormal" align="left"><i><span
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR:
blue; FONT-SIZE: 12pt" lang="EN-US">Nicol TAO
(taozhijiang)</span></i></p>
<p style="TEXT-ALIGN: left; MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px" class="MsoNormal" align="left"><i><span
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR:
blue; FONT-SIZE: 12pt" lang="EN-US">Shenzhen,
Guangdong Province, P.R. China 518055 </span></i></p>
<p style="TEXT-ALIGN: left; MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px" class="MsoNormal" align="left"><i><span
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR:
blue; FONT-SIZE: 12pt" lang="EN-US">Being Stronger!!!</span></i></p>
</span></span></span></div>
</body>
</html>