GithubHelp home page GithubHelp logo

fecilious / icedtea Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gosukiwi/blueberry

0.0 2.0 0.0 60 KB

A beautiful programming language with clean syntax which compiles to PHP

License: MIT License

icedtea's Introduction

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.

icedtea's People

Contributors

gosukiwi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.