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

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.

主站蜘蛛池模板: 修水县| 灌南县| 黄陵县| 清水河县| 呼伦贝尔市| 东乌珠穆沁旗| 宝应县| 股票| 德江县| 道孚县| 石门县| 措美县| 沽源县| 华坪县| 辉县市| 吉木萨尔县| 鹤庆县| 喀喇沁旗| 九龙坡区| 嵊泗县| 通江县| 化隆| 永新县| 芷江| 辽宁省| 盘山县| 米泉市| 黄浦区| 彰武县| 蚌埠市| 满洲里市| 扎赉特旗| 栾城县| 东辽县| 庆城县| 怀柔区| 盐山县| 名山县| 定安县| 宾阳县| 樟树市|