Skip to content

次世代赛博编程语言 Helang 的 Ocaml 实现

Notifications You must be signed in to change notification settings

luooooob/HelangML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

GitHub Workflow Status GitHub top language

介绍

OCaml 实在是太酷了,很符合我对未来编程语言的想象,正确、高效又优雅

我们正需要这样棒的语言来实现何语言(helang)

语法

大概长这样

u8 x = 1 | 1 | 4 | 5 | 1 | 4;
x[2] = 7;
x;

x[ 2 | 3 | 4 ] = 7;
print x ;

u8 y = 1 | 2 | 3 | 4 | 5 ;
u8 z = y + 8;
print y;

print 1 + 5 * 2;

更多骚话还没编出来,先看看原作者写的吧

基本语法

Playground

可以在 Playground 目录试用

dune exec bin/main.exe ./playground/hello.he

开发

dune build
dune test

todo

  • 更多语法
  • read-eval-print loop (REPL)

About

次世代赛博编程语言 Helang 的 Ocaml 实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages