Quantcast Lightweight PHP LUA Parser - ESOUI
Thread Tools Display Modes
07/17/15, 01:48 AM   #1
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 19
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;
}
__________________
ESO-Database.com | Character- and Guild Database [EN/DE]
ESO-Skillfactory.com | ESO Build planer [EN/DE/FR]
ESO-LFG.com | The ESO Looking for Group Tool [EN/DE/FR]
  Reply With Quote

ESOUI » Developer Discussions » Dev Tools » Lightweight PHP LUA Parser

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off