IBM发布开源EGL语言开发工具
fmms 13年前
<div id="news_body"> <p> IBM<a href="/misc/goto?guid=4958317212950349884">宣布发布</a>新的开源 <a href="/misc/goto?guid=4958317213740034569">EGL 程序语言开发工具</a>。</p> <p> <a href="/misc/goto?guid=4958317214525065127">EGL</a> 是 IBM 设计的面向企业的平台无关高级程序语言,语法类似其它常见语言,EGL 程序可以编译成 COBOL、Java 或 JavaScript 代码,以运行在不同平台和浏览器上。它是一种通用的应用程序开发语言。<br /> </p> <p><img title="09135545_c5kf.png" border="0" alt="09135545_c5kf.png" src="https://simg.open-open.com/show/c9c298b5214be81879a2d488940f3fcc.png" width="248" height="122" /></p> <p>示例代码:</p> <pre class="de1">Program HelloWorld <span class="kw1">const</span> GREETING string <span class="sy0">=</span> <span class="st0">"Hello, "</span><span class="sy0">;</span> function main<span class="br0">(</span><span class="br0">)</span> myName string <span class="sy0">=</span> <span class="st0">"John"</span><span class="sy0">;</span> sayHello<span class="br0">(</span>myName<span class="br0">)</span><span class="sy0">;</span> end function sayHello<span class="br0">(</span>name <span class="kw3">String</span> in<span class="br0">)</span> SysLib.<span class="me1">writeStdOut</span><span class="br0">(</span>GREETING <span class="sy0">+</span> name <span class="sy0">+</span> <span class="st0">"!"</span><span class="br0">)</span><span class="sy0">;</span> end end</pre> <p><br /> </p> <div id="come_from"> 来自: <a id="link_source2" href="http://opensource.solidot.org/article.pl?sid=11/12/09/0214220&from=rss" target="_blank">Solidot</a> </div> </div>