Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Textfrog the lang

Textfrog is a lovely? succinct? powerful? addictive? (domain?) (script?) (interpreted?) (battery included?) (implicitly typed) computer language.

告诉你一门语言textfrog,他接合Java和C的运行时,也就是说写代码的时候不用在乎是java还是C的方法还是变量。

由于不全的文档,随意的命名,和相关实现的未公开,目前的定位为"个人化工具"。

if else

if a==b do1() elseif do3() else do2() end

注意: 错误的语法: if xxx { yyy } (绝对不要用类似C的{},而应该用类似lua的if语法)

loop

loop can alias as for

on number

loop cnt i { do1() }

on list

// i is optional loop list item i {do1(item)}

on map

loop map k v {do1(k v)}

switch

switch a { "a" -> {do1()} "b" -> {do2()} ->{doDefault()} }

lambda

-> a b c { do1(a b c) }

samples: in samples/ dir

stdlib: stdlib.md

Releases

Packages

Used by

Contributors