Skip to content

Un lenguaje de programación simple con una sintaxis limpia, que compila a PHP

License

Notifications You must be signed in to change notification settings

MatiasNAmendola/IcedTea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iced Tea

Iced Tea is a script language with clean syntax, inspired from CoffeeScript, Python and Ruby.

Iced Tea compiles to PHP so everything you do with Iced Tea can run wherever PHP can run, this is awesome for shared web servers where you can only run default PHP.

Right now Iced Tea is still in very early development, it's usage is encouraged mostly for testing purposes.

Command Line Usage

The easiest way to compile Iced Tea code into PHP code is using the tea file, inside the bin directory.

bin/tea compile file.tea

If using unix you can just symlink the executable to your /bin folder, if windows, add the path to tea.bat to your PATH env variable.

See the wiki for extensive documentation on the CLI (Command Line Interface)

Syntax At A Glance

/* 
 I'm a multiline comment
*/

a = 1 # variable definition

# you can use JSON syntax to define associative arrays
arr = { 'name': 'Mike', 'age': 18, 'meta': { 'items': [1, 2, 3] } }

if a == 1
  echo('Hello, World!')
end

for(i in (0..10))
  echo(i)
end

class MyClass < MyParentClass
  @name

  def Greet
    echo('Hello! My name is ' & @name)
  end
end

For more information, see the wiki.

About

Un lenguaje de programación simple con una sintaxis limpia, que compila a PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published