ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Dev Tools (https://www.esoui.com/forums/forumdisplay.php?f=173)
-   -   Lightweight PHP LUA Parser (https://www.esoui.com/forums/showthread.php?t=4898)

Keldor 07/17/15 01:48 AM

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 :D


>> 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;
}



All times are GMT -6. The time now is 03:25 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI