Skip to content

neoedmund/textfrog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

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

Releases

No releases published

Packages

 
 
 

Contributors