[Announce] PHPLint 0.3 - PHP source parser and validator



PHPLint is a parser and semantic validator of PHP programs. The
programmer can add to the source the PHPLint meta-code, that enhance the
syntax of the PHP language toward the paradigm of a strong-type language.

INTENDED AUDIENCE
Dedicated to all the programmers that appreciate the PHP language for
fast program development, but regret the safety that a strong typed
language may give.

FEATURES
+ Implements PHP 4 and PHP 5 classes.
+ Meta-code that implement C-style type declarations.
+ Strict type checking.
+ Structured array declarations.
+ Check of functions and methods signature.
+ Check usage of undefined constants/variables/function/classes/methods.
+ Check constants/functions/classes/properties/methods declared twice.
+ Check constants/variables/function/classes/methods declared but not used.
+ Check static access to non-static property/method and vice versa.
+ Check invalid nested comments.
+ Check invalid escape sequences in literal strings.
+ Check type-cast operators.
+ ...over 200 error messages and warnings.

STILL MISSING
- "Abstract" and "interface" classes.
- Tags <script, <%, <%=.
- "Here document": echo <<< EOT
- Old syntax of the control structures.
- ...some other less used features.

DOCUMENTATION
See the manual at http://www.icosaedro.it/phplint/index.html

AVAILABILITY
PHPLint is available in three forms:
+ original source code (require the M2 Language Development System)
http://www.icosaedro.it/phplint/index.html?p=theprogram
+ pure-C source code (require gcc)
http://www.icosaedro.it/phplint/index.html?p=theprogram
+ WEB page for on-line tests (require an Internet browser :-)
http://www.icosaedro.it/phplint/phplint-on-line.html

LICENSE
BSD-style.

Regards,
___
/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

.



Relevant Pages

  • Re: Breaking backwards compatibility - good or bad?
    ... coming and are needed to anything really big and useful in PHP. ... command or statement in the language that is going to be made invalid ... The PHP team tries very hard not to break CORRECT scripts. ... "Introducing case-sensitivity for variables and functions names has ...
    (comp.lang.php)
  • Re: Case sensitivity in programming languages.
    ... the language. ... And these conventions take advantage of case sensitivity. ... In PHP it can be any of those things. ... group of programmers who want t force their stupid ideas onto others. ...
    (comp.lang.php)
  • Re: A Lot of Questions from a Noob
    ... OOP is a language paradigm that is not specific to ... I Google'd for an introduction to object-oriented programming, ... Watch out for the die-hard Perl fanbois: ... PHP 5 OOP has come a long way from PHP 4. ...
    (comp.lang.php)
  • Re: Wordpress Port
    ... I think Ruby is also generally useful. ... easier to work with than Perl. ... PHP was obviously designed ... primarily as a procedural language, so it's sort of appropriate for ...
    (comp.lang.ruby)
  • Re: Case sensitivity in programming languages.
    ... Is any language issued with a set of function names in different ... You get a warning if you reference an undeclared variable in PHP if your ... In something like PHP we could generate a convention ... The ability to have 3 different functions called readfile(), ...
    (comp.lang.php)