2017 © Pedro Peláez
 

library sourcepawn-inc-parser

A sourcepawn parser written in PHP which is able to analyse sourcepawn's .inc files and comments (annotation syntax)

image

bcserv/sourcepawn-inc-parser

A sourcepawn parser written in PHP which is able to analyse sourcepawn's .inc files and comments (annotation syntax)

  • Sunday, September 22, 2013
  • by berni2288
  • Repository
  • 2 Watchers
  • 3 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

This project is not actively maintained anymore, please fork this, (*1)

About

A parser written in PHP which is able to analyse sourcepawn's .inc files and comments (annotation syntax), (*2)

Example

<?php
// This loads a very simple PHP class autoloader, doing the basics.
// You can use your own instead.
require_once "autoloader.php";

use Bcserv\SourcepawnIncParser\PawnParser;

function pawnParserCallback($pawnElement)
{
    // This dumps the whole object for demonstration.
    // You should call public getters defined in
    // src/Bcserv/SourcepawnIncParser/PawnElement/*.php
    var_dump($pawnElement);
}

$pawnParser = new PawnParser('pawnParserCallback');
$pawnParser->parseFile('/path/to/pawnfile.inc');


Requirements

Coding standards

This library follows the PHP standards psr-0 and psr-1., (*3)

Using in Symfony 2

Add this to the require section of your composer.json in the main folder of Symfony2:, (*4)

"bcserv/sourcepawn-inc-parser": "1.0.x-dev"

You maybe also need to change "minimum-stability" to "dev" if it complains about this., (*5)

Then run php composer.phar update, (*6)

The Versions

22/09 2013

dev-master

9999999-dev https://github.com/bcserv/sourcepawn-inc-parser

A sourcepawn parser written in PHP which is able to analyse sourcepawn's .inc files and comments (annotation syntax)

  Sources   Download

by Bernhard Kaszt
by theY4Kman