View Single Post
07/17/15, 01:48 AM   #1
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Post Lightweight PHP LUA Parser

I've searched the web for a fast and lightweight PHP LUA parser for the ESO-Database but without luck.
After some hours of google I started to write my own lightweight LUA parser in PHP. Now I've released it on GitHub for everybody who wants to use it.

Note: The parser does not check the LUA syntax. In my case, I check for the required keys in the result data before starting to work with them. Feel free to send me some pull requests


>> Lightweight-PHP-LUA-Parser @ GitHub <<


Example usage:
Code:
require('parser.php');

$parser = new LUAParser();

try {
    $parser->parseFile('data.lua');
    print_r($parser->data);
}
catch(Exception $e) {
    echo 'Exception: ',  $e->getMessage(), PHP_EOL;
}
  Reply With Quote