Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

4b5ent1/C8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

30 Commits

Repository files navigation

PN2的解析实现

target/in progress:python

target.todo:rust, elixir, F#, typescript/haxe, J program-in-chinese#2

PN2语法借鉴:APL/K/Q、Forth、erlang

fast ring: https://github.com/absente/C8

slow ring: https://github.com/program-in-chinese/C8

for example/1:

code main.c`rs

rs)
main ->
 `println "hello"
 输出{ok}

elixir c8/comp.exs main.c`rs

fn main(){
 println!("hello");
 println!("ok");
}

例2:

code 测试1.c8

c8>
main ->
 输出 hello
> f=c8/main, o=main.*
> biu = f->o
py)+
print 'done'
> biu: rs ex py

elixir c8/comp.exs 测试1.c8 ; main.py

def main():
 print('hello')
def add():
 print('done')
if __name__ == '__main__':
 main(); add()

main.ex, main.rs与之类似

roadmap

  • REPL=C8R
  • py web框架/django/pyramid; 必要+充分
  • py爬虫
  • elixir
  • rust
  • ...
  • PN2.todo: prolog的回溯和unification

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%

AltStyle によって変換されたページ (->オリジナル) /