Skip to content

Latest commit

 

History

History
 
 

tea

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tea Language

This is an experiment! Background:

tl;dr Tea is a cleanup of Oil's metalanguages, which can be called "statically typed Python with sum types". (Zephyr ASDL is pretty clean, but mycpp is messy, and needs cleanup.)

Metaphors

  • "Oil + Tea" is like "Shell + C". :)
  • Oil could be the metaprogramming language for Tea. "So Oil + Tea" is like the "C preprocessor + C".

Demo

$ bin/tea -n -c 'var x = 42'

$ bin/oil -O parse_tea -n -c 'var x = 42'

# Similar to both of the above
$ tea/run.sh parse-one tea/testdata/hello.tea

Note that Tea stands alone as a language, but it can also be intermingled with Oil, which I think will be useful for metaprogramming.

Testing

This is currently run in the continuous build (http://travis-ci.oilshell.org/jobs/).

tea/run.sh travis