Vena Programming Language 1.2.1 has been released

Vena Programming Language 1.2.1 has been released

Updates to this release include:

LOSU programming language 1.2.1 released

Basic Information

version number 1.2.1
Version type Gamma
preview no
Next Release fate 1.2.4 RC

Vena 1.2.1 is a version with a testing nature and adopts a rolling revision update method. Please use it with caution in sensitive and long-term non-updated projects.

updates made

  1. The new code syntax, the losu1.2 series began to support the syntax of indefinite position parameters, and the code style is more Chinese.
#方法 开始程序
    程序,以("输出")模式打开("问好.txt"),向其中写入("你好,洛书"),然后关闭文件
;
 
  • losu1.2 canceled "}" to replace with ";", canceled "." to replace with ",", and the parameters of a method can be distributed in different positions, and the position can be moved freely
方法一(参数1)描述一(参数2)
 
方法一描述一(参数1,参数2)
 
方法一(参数1,参数2)描述一
 
(参数1,参数2)方法一描述一
 

The above expressions are completely equivalent.

In the future, Vena will continue to use the code style that conforms to Chinese habits as much as possible.

Write programs like writing prose, and read code like prose

  1. The synchronously updated interactive runtime environment LPK1.2.1 and the synchronously updated interactive runtime environment can still interact with the updated Vena code normally.

  2. The LosuVM of the compatible virtual machine losu1.2.1 still supports the lsc file of losu1.x; the old Vena code can also be compiled with the new version of the compiler after minor modifications

Install

In order to ensure the safety of the mainline version, Vena 1.2.1 Gamma version will not be merged into the update mirror mainline (currently the latest update mainline version is still 1.0.1)

If you want to install from source mirror, please replace in the installation command updatewithlosu1.2.1/install

  • Example: The replaced installation command under linux is
sudo wget  --no-check-certificate https://gitee.com/chen-chaochen/lpk/raw/release/losu1.2.1/install/install.sh&&sudo bash ./install.sh&&sudo rm ./install.sh
 

The attachment still contains the compiled binary package suitable for the windows platform

demo

#加载 启动红绿灯
#导入 设备/交通灯
#方法 启动红绿灯
    交通灯,红灯接在("6")号引脚上,黄灯接在("1")号引脚上,绿灯接在("3")号引脚上
    #循环("5")次
        交通灯,红灯启动("3")秒
        交通灯,绿灯启动("3")秒
        交通灯,黄灯,间隔("500")毫秒,闪烁("3")次
    ;
;

 
#方法 解锁
    智能锁,将输入端接在("6","1","3","15")号引脚上
    智能锁,将报警器接在("14")号引脚上
    智能锁,将提示灯接在("16")号引脚上
    智能锁,设置("4")位密码("1234")
    #循环("3")次
        智能锁,输入密码
        #如果(<智能锁,输入密码>)==(<智能锁,密码>)
            程序,输出("解锁成功")
            程序,结束
        ;
        #否则
            智能锁,报警器以("100")毫秒为间隔,报警("5")次
        ;    
    ;
;
 

Enter image description

We can see that the code of Vena is very close to Chinese articles, and reading the Vena program will feel like reading prose.

For details, see: https://gitee.com/chen-chaochen/lpk/releases/1.2.1

Guess you like

Origin www.oschina.net/news/211794