0.0.6 • Published 9 years ago

biaphp v0.0.6

Weekly downloads
21
License
-
Repository
github
Last release
9 years ago

BiaPHP

/*
 *                                 ___           ___         ___           ___
 *      _____                     /\  \         /\  \       /\  \         /\  \
 *     /::\  \       ___         /::\  \       /::\  \      \:\  \       /::\  \
 *    /:/\:\  \     /\__\       /:/\:\  \     /:/\:\__\      \:\  \     /:/\:\__\
 *   /:/ /::\__\   /:/__/      /:/ /::\  \   /:/ /:/  /  ___ /::\  \   /:/ /:/  /
 *  /:/_/:/\:|__| /::\  \     /:/_/:/\:\__\ /:/_/:/  /  /\  /:/\:\__\ /:/_/:/  /
 *  \:\/:/ /:/  / \/\:\  \__  \:\/:/  \/__/ \:\/:/  /   \:\/:/  \/__/ \:\/:/  /
 *   \::/_/:/  /     \:\/\__\  \::/__/       \::/__/     \::/__/       \::/__/
 *    \:\/:/  /       \::/  /   \:\  \        \:\  \      \:\  \        \:\  \
 *     \::/  /        /:/  /     \:\__\        \:\__\      \:\__\        \:\__\
 *      \/__/         \/__/       \/__/         \/__/       \/__/         \/__/
 *
 *
 *  BiaPHP is created by Renan Veroneze and it's licensed under a Creative Commons BY-SA.
 *  © 2014~2015
 *  @0.0.1
 *
 */

Is a Pre-processor to Transcompile language to PHP

Examples

This is a BiaPHP syntax:
<?
  class Test

    public __construct ->

      if $_SERVER['REMOTE_ADDR'] == '127.0.0.1'

        print 'Not allowed to localhost'
And compile this:
<?php
  class Test {
    public function __construct() {
      if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
        print 'Not allowed to localhost';
      }
    }
  }
?>

Syntax Reference

BiaPHPPHP
<?<?php
public f ->public function f() {}
public f ( x ) ->public function f( x ) {}
if xif(x) {}
End vars lines;
@x$this->x
@@xself::x
~xparent::x
$_S$_SESSION
$_P$_POST
$_G$_GET
$a ?: $b$a ? $a : $b
self class class_nameclass class_name{} new class_name