Skip to content

Instantly share code, notes, and snippets.

View Fustrate's full-sized avatar

Steven Hoffman Fustrate

  • Valencia, CA, USA
View GitHub Profile
@Fustrate
Fustrate / ToxgExpression.php
Created August 17, 2011 02:27
readLangRef() to accept complex language strings
protected function readLangRef()
{
// It looks like this: #xyz.abc[$mno][nilla].$rpg
// Which means:
// x.y.z = x [ y ] [ z ]
// x[y.z] = x [ y [ z ] ]
// x[y][z] = x [ y ] [ z ]
// x[y[z]] = x [ y [ z ] ]
//
// When we hit a ., the next item is surrounded by brackets.