Skip to content

Instantly share code, notes, and snippets.

View BastienClement's full-sized avatar

Bastien Clément BastienClement

View GitHub Profile
@BastienClement
BastienClement / parse_lua.php
Created May 8, 2012 11:09
PHP WoW-config Lua parser
<?php
class LuaParseError extends Exception {}
class LuaParser {
private $source;
private $source_len;
private $offset = 0;
private $line = 1;