官术网_书友最值得收藏!

Your first Opa application

As a first example, here is the most simple program in Opa:

jlog("hello Opa!")

Compile and run it:

$ opa hello.opa -o hello.js
$ ./hello.js
Note

We can type opa hello.opa -- to compile and run the code in a single line.

The code does nothing but prints hello Opa on your screen. If you can see this message, it means Opa is working properly on your machine.

主站蜘蛛池模板: 咸宁市| 明溪县| 澄迈县| 夏邑县| 德钦县| 夹江县| 永川市| 泰宁县| 南开区| 永胜县| 安溪县| 且末县| 六盘水市| 卫辉市| 南汇区| 宁明县| 博乐市| 象山县| 抚顺市| 边坝县| 罗城| 辽宁省| 古丈县| 崇信县| 榆树市| 东乡县| 佛山市| 扶风县| 平安县| 曲沃县| 寿阳县| 如皋市| 厦门市| 保山市| 拉萨市| 涟源市| 阳朔县| 桃江县| 弥勒县| 郸城县| 卢湾区|