Skip to content

E2Quant/e2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E2L

License 点击链接加入群聊【E2Quant】 @E2Quant

一种简单而强大的策略编程语言,易于学习及使用

未来功能

  • 解释 LaTeX Math
  • 完善数组指令
  • 类(Class Object)功能

目前可提供的 IDE 是采用 VIM 开发

例子

$ cat import.e2

import <mod/mod2.e2>
import <mod/mod3.e2>

func test(){
}

func abc( c ){
    a=mod2(c);   
    echo(a);
    test();
}



mod3();
abc(7);

a=1;

$ cat mod/mod2.e2

import <mod/mod.e2>

func mod2( o ){
    ret = 2 + o;

 mod_three(ret);   
    return ret;
}

#--------
# Name:function
#   Parameters:
# - arg1: xxx
# - arg2: xxx
# -> return 
# Description: 
#  
#--------	
func mod2_2() {
    a=10;
}
#----- func end

$ cat mod/mod.e2

func mod_three( val ) {
    ret = val + 5;
    return ret;
}

$ cat mod/mod3.e2

import <mod/mod.e2>

func mod3(){
sdf=2+3;
mod2(sdf);

}

union 结构

union USample{
    Val=1;
}

echo(USample.Val);