Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
haifenghuang committed Jun 5, 2018
1 parent 96d537f commit fa11e17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,17 @@ This project is based on mayoms's project [monkey](https://github.com/mayoms/mon
* Added decimal module(Code come from [decimal](https://github.com/shopspring/decimal) with some minor modifications)
* Regular expression literal support(partially like perls)
* channel support(like golang's channel)
* more operator support(&&, ||, &, |, ^, +=, -=, ?: etc.)
* more operator support(&&, ||, &, |, ^, +=, -=, ?:, ??, etc.)
* utf8 support(e.g. you could use utf8 character as variable name)
* more flow control support(e.g. try/catch/finally, for-in, case, c-like for loop)
* defer support
* spawn support(goroutine)
* enum support
* using support
* pipe operator support(see demo for help)
* function with default value and variadic parameters
* list comprehension and hash comprehension support
* Using method of Go Package(`RegisterFunctions` and `RegisterVars`)

There are a number of tasks to complete, as well as a number of bugs. The purpose of this project was to dive deeper into Go, as well as get a better understanding of how programming languages work. It has been successful in those goals. There may or may not be continued work - I do plan on untangling a few messy spots, and there are a few features I'd like to see implemented. This will happen as time and interest allows.

Expand Down Expand Up @@ -402,6 +404,7 @@ Keywords are predefined, reserved identifiers that have special meanings to the
* defer
* spawn
* qw
* using
* class new property set get static default
* interface public private protected # reserved, not used

Expand Down
7 changes: 5 additions & 2 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,17 @@ Property 'LastName' is not valid!
* 增加了`decimal`模块(代码来自[decimal](https://github.com/shopspring/decimal)并进行了相应的小幅度更改)
* 正则表达式支持(部分类似于perl)
* 管道(channel)(基于go语言的channel)
* 更多的操作符支持(&&, ||, &, |, ^, +=, -=, ?: 等等)
* 更多的操作符支持(&&, ||, &, |, ^, +=, -=, ?:, ??等等)
* utf8支持(例如,你可以使用utf8字符作为变量名)
* 更多的流程控制支持(例如: try/catch/finally, for-in, case-in, 类似c语言的for循环)
* defer支持
* spawn支持(goroutine)
* enum支持和
* enum支持
* using支持
* pipe操作符支持
* 支持可变参数和缺省参数的函数
* 支持列表推导(list comprehension)和哈希推导(hash comprehension)
* 注册使用Go Package的方法(`RegisterFunctions``RegisterVars`)

这个项目的目的主要有以下几点:

Expand Down Expand Up @@ -404,6 +406,7 @@ printf("x=%d, y=%d\n", x, y) //结果:x=10, y=30
* defer
* spawn
* qw
* using
* class new property set get static default
* interface public private protected #保留,暂时没使用

Expand Down

0 comments on commit fa11e17

Please sign in to comment.