Phalanger (programming language)

from Wikipedia, the free encyclopedia
Phalanges
Basic data

Current  version 3.0 (April 2012)
(May 3, 2012)
operating system CLR
programming language C #
category Compiler
License Apache license (Apache 2)
German speaking No
github.com/devsense/phalanger

Phalanger is an object-oriented programming language that is based on the PHP scripting language and was developed for CLR , i.e. .NET or Mono .

In contrast to PHP, Phalanger, as well as C # or J # , can be used to write independent applications or function libraries that can be called as EXE files or embedded in other assemblies as DLL files.

In addition to the compiler, there are plug-ins for the integrated development environment Visual Studio and the Microsoft web server IIS . The latter enables the creation of dynamic web pages , like with PHP on an Apache server .

Programming example

 <?

 import namespace System;
 import namespace System:::ComponentModel;
 import namespace System:::Drawing;
 import namespace System:::Windows:::Forms;
 import namespace TestPhalanger;

 function Main()
 {
     Application::EnableVisualStyles();
     Application::Run(new MainForm());
 }

 namespace TestPhalanger
 {
     class MainForm extends System:::Windows:::Forms:::Form
     {
          /*
          * Konstruktor
          */
         function __construct()
         {
             $this->InitializeComponent();
         }

         function InitializeComponent()
         {
             $this->SuspendLayout();

             // Fenster initialisieren
             $this->ClientSize = new Size(292, 266);
             $this->Name = 'MainForm';
             $this->Text = 'Hello, Phalanger!';
             $this->ResumeLayout(false);
             $this->PerformLayout();
         }
     }
 }

 ?>

See also

Individual evidence

  1. 3.0 (April 2012) for .NET 4.0. Phalanges; Retrieved May 11, 2012.