Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
4b5ent1 authored Nov 5, 2018
1 parent ea4e4ea commit 5ee579c
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
PN2的解析实现

target/in progress:python

target.todo:rust, elixir, F#, typescript/haxe, java/scala/kotlin

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


for example/1:
>code main.c`rs
```
rs)
main ->
`print "hello"
```
>elixir c8/comp.exs main.c`rs
```rust
fn main(){
print!("hello");
}
```

例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
-------

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

0 comments on commit 5ee579c

Please sign in to comment.