kiwi

所属分类:编程语言基础
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2018-02-16 08:55:10
上 传 者sh-1993
说明:  Kiwi编程语言
(Kiwi programming language)

文件列表:
.travis.yml (147, 2018-02-16)
Gopkg.lock (895, 2018-02-16)
Gopkg.toml (814, 2018-02-16)
LICENSE (881, 2018-02-16)
builtins.go (705, 2018-02-16)
builtins_test.go (1037, 2018-02-16)
datatype.go (196, 2018-02-16)
datatype_string.go (444, 2018-02-16)
datatype_test.go (512, 2018-02-16)
doc/ (0, 2018-02-16)
doc/language.md (4316, 2018-02-16)
examples/ (0, 2018-02-16)
examples/fibonacci.kw (251, 2018-02-16)
examples/fizzbuzz.kw (252, 2018-02-16)
main.go (850, 2018-02-16)
node.go (3571, 2018-02-16)
parser.go (7435, 2018-02-16)
parser_test.go (6130, 2018-02-16)
printer.go (8893, 2018-02-16)
printer_test.go (11673, 2018-02-16)
runtime.go (10376, 2018-02-16)
runtime_test.go (13130, 2018-02-16)
scanner.go (5667, 2018-02-16)
scanner_test.go (3387, 2018-02-16)
scope.go (1046, 2018-02-16)
scope_test.go (1069, 2018-02-16)
stack.go (735, 2018-02-16)
stack_test.go (672, 2018-02-16)
test.sh (238, 2018-02-16)
token.go (1525, 2018-02-16)
token_string.go (922, 2018-02-16)
token_test.go (4310, 2018-02-16)
visitor.go (967, 2018-02-16)

# Kiwi Programming Langauge [![Build Status](https://travis-ci.org/tboronczyk/kiwi.svg?branch=master)](https://travis-ci.org/tboronczyk/kiwi) [![codebeat badge](https://codebeat.co/badges/dfc8c4c2-2bea-4f90-9b9d-2c9c8522f0c5)](https://codebeat.co/projects/github-com-tboronczyk-kiwi-master) [![codecov](https://codecov.io/gh/tboronczyk/kiwi/branch/master/graph/badge.svg)](https://codecov.io/gh/tboronczyk/kiwi) This is the README file for the Kiwi Programming Language distribution. Kiwi is my on-going “forever project” to implement a programming language. Not only is it a learning opportunity, it’s also a playground for me to explore issues in language design. Kiwi probably won’t be useful to anyone other than me, especially at the rate I get to work on it, but my code is available as free software. You can do whatever you want with it under the terms of the license provided in the LICENSE file. Oh... and don’t come after me if it melts down your computer. ## Code Examples ### Generate the Fibonacci Series func fibonacci n { if n < 2 { return n } m := fibonacci(n - 1) p := fibonacci(n - 2) return m + p } i := 0 while i < 10 { i := i + 1 fib := fibonacci(i) write(fib, "\n") } ### Fizz Buzz i := 0 while i < 100 { i := i + 1 if i % 15 = 0 { write("Fizz Buzz\n") } else i % 3 = 0 { write("Fizz\n") } else i % 5 = 0 { write("Buzz\n") } else { write(i, "\n") } }

近期下载者

相关文件


收藏者