Coder Social home page Coder Social logo

go-shell's Introduction

go-shell

how to install

install go clone https://github.com/f-shixiong/go-shell.git cd go-shell && go build

how to use

go-shell [your file]

支持内容

新增功能
  • 类型强转
  • shell语法糖
运算符
  • +-*/
  • all
func
  • 自定义func
  • 结构体func
  • 递归func
  • return单个值
  • return多个值
  • 跨域get set ?
stmt关键字
  • for
  • switch todo
  • if
  • append
  • delete
  • range
  • make
  • new
  • println
  • var
  • const
  • break
  • defer
  • goto
数据类型
  • int,string
  • map,list
  • char,bool,int8-64,uint8-64,[]byte
  • struct !difficult
import
  • 非golang官方包
  • 官方带internal package
candy
  • 支持@shell@直接执行shell
  • 支持@shell with var@执行shell
  • 支持check关键字
repl
  • 支持repl
goruntime
  • 支持go
  • 支持select
断言
  • 支持断言

更新日志

  • 2.10-just can run,支持了基本+-*/
  • 2.12-支持自定义func,支持复杂数据类型,支持for循环,支持了println,支持了new、make、range
  • 2.13-支持append,2.13-支持自定义结构体TODO 非map实现,支持多层结构体
  • 2.14-支持指针
  • 2.15-支持return,支持import,支持struct定义func
  • 2.16-支持动态import
  • 2.17-支持了shell,支持return 多个值,什么都没改自己支持了const,基本靠命,支持+=等

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.