NEW: Allow namespaces in template include statements.

This commit is contained in:
Sam Minnee 2016-05-21 16:17:33 +10:00 committed by Damian Mooyman
parent b249cc389a
commit a9eebdc7ed
4 changed files with 1603 additions and 1567 deletions

View File

@ -0,0 +1 @@
NamespaceInclude

View File

@ -728,6 +728,28 @@ after')
$this->assertEqualIgnoringWhitespace('A B', $res, 'Objects can be passed as named arguments'); $this->assertEqualIgnoringWhitespace('A B', $res, 'Objects can be passed as named arguments');
} }
public function testNamespaceInclude() {
$data = new ArrayData([]);
$this->assertEquals(
"tests:( NamespaceInclude\n )",
$this->render('tests:( <% include Namespace\NamespaceInclude %> )', $data),
'Backslashes work for namespace references in includes'
);
$this->assertEquals(
"tests:( NamespaceInclude\n )",
$this->render('tests:( <% include Namespace/NamespaceInclude %> )', $data),
'Forward slashes work for namespace references in includes'
);
$this->assertEquals(
"tests:( NamespaceInclude\n )",
$this->render('tests:( <% include NamespaceInclude %> )', $data),
'Namespace can be missed for a namespaed include'
);
}
public function testRecursiveInclude() { public function testRecursiveInclude() {
$view = new SSViewer(array('SSViewerTestRecursiveInclude')); $view = new SSViewer(array('SSViewerTestRecursiveInclude'));

View File

@ -463,6 +463,18 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
/* NamespacedWord: / [A-Za-z_\/\\] [A-Za-z0-9_\/\\]* / */
protected $match_NamespacedWord_typestack = array('NamespacedWord');
function match_NamespacedWord ($stack = array()) {
$matchrule = "NamespacedWord"; $result = $this->construct($matchrule, $matchrule, null);
if (( $subres = $this->rx( '/ [A-Za-z_\/\\\\] [A-Za-z0-9_\/\\\\]* /' ) ) !== FALSE) {
$result["text"] .= $subres;
return $this->finalise($result);
}
else { return FALSE; }
}
/* Number: / [0-9]+ / */ /* Number: / [0-9]+ / */
protected $match_Number_typestack = array('Number'); protected $match_Number_typestack = array('Number');
function match_Number ($stack = array()) { function match_Number ($stack = array()) {
@ -491,48 +503,48 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_CallArguments_typestack = array('CallArguments'); protected $match_CallArguments_typestack = array('CallArguments');
function match_CallArguments ($stack = array()) { function match_CallArguments ($stack = array()) {
$matchrule = "CallArguments"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "CallArguments"; $result = $this->construct($matchrule, $matchrule, null);
$_61 = NULL; $_62 = NULL;
do { do {
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Argument" ); $this->store( $result, $subres, "Argument" );
} }
else { $_61 = FALSE; break; } else { $_62 = FALSE; break; }
while (true) { while (true) {
$res_60 = $result; $res_61 = $result;
$pos_60 = $this->pos; $pos_61 = $this->pos;
$_59 = NULL; $_60 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_59 = FALSE; break; } else { $_60 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Argument" ); $this->store( $result, $subres, "Argument" );
} }
else { $_59 = FALSE; break; } else { $_60 = FALSE; break; }
$_59 = TRUE; break; $_60 = TRUE; break;
} }
while(0); while(0);
if( $_59 === FALSE) { if( $_60 === FALSE) {
$result = $res_60; $result = $res_61;
$this->pos = $pos_60; $this->pos = $pos_61;
unset( $res_60 ); unset( $res_61 );
unset( $pos_60 ); unset( $pos_61 );
break; break;
} }
} }
$_61 = TRUE; break; $_62 = TRUE; break;
} }
while(0); while(0);
if( $_61 === TRUE ) { return $this->finalise($result); } if( $_62 === TRUE ) { return $this->finalise($result); }
if( $_61 === FALSE) { return FALSE; } if( $_62 === FALSE) { return FALSE; }
} }
@ -553,57 +565,57 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Call_typestack = array('Call'); protected $match_Call_typestack = array('Call');
function match_Call ($stack = array()) { function match_Call ($stack = array()) {
$matchrule = "Call"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Call"; $result = $this->construct($matchrule, $matchrule, null);
$_71 = NULL; $_72 = NULL;
do { do {
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Method" ); $this->store( $result, $subres, "Method" );
} }
else { $_71 = FALSE; break; } else { $_72 = FALSE; break; }
$res_70 = $result; $res_71 = $result;
$pos_70 = $this->pos; $pos_71 = $this->pos;
$_69 = NULL; $_70 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '(') { if (substr($this->string,$this->pos,1) == '(') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '('; $result["text"] .= '(';
} }
else { $_69 = FALSE; break; } else { $_70 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_66 = $result; $res_67 = $result;
$pos_66 = $this->pos; $pos_67 = $this->pos;
$matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "CallArguments" ); $this->store( $result, $subres, "CallArguments" );
} }
else { else {
$result = $res_66; $result = $res_67;
$this->pos = $pos_66; $this->pos = $pos_67;
unset( $res_66 ); unset( $res_67 );
unset( $pos_66 ); unset( $pos_67 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ')') { if (substr($this->string,$this->pos,1) == ')') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ')'; $result["text"] .= ')';
} }
else { $_69 = FALSE; break; } else { $_70 = FALSE; break; }
$_69 = TRUE; break; $_70 = TRUE; break;
} }
while(0); while(0);
if( $_69 === FALSE) { if( $_70 === FALSE) {
$result = $res_70; $result = $res_71;
$this->pos = $pos_70; $this->pos = $pos_71;
unset( $res_70 ); unset( $res_71 );
unset( $pos_70 ); unset( $pos_71 );
} }
$_71 = TRUE; break; $_72 = TRUE; break;
} }
while(0); while(0);
if( $_71 === TRUE ) { return $this->finalise($result); } if( $_72 === TRUE ) { return $this->finalise($result); }
if( $_71 === FALSE) { return FALSE; } if( $_72 === FALSE) { return FALSE; }
} }
@ -611,32 +623,32 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_LookupStep_typestack = array('LookupStep'); protected $match_LookupStep_typestack = array('LookupStep');
function match_LookupStep ($stack = array()) { function match_LookupStep ($stack = array()) {
$matchrule = "LookupStep"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "LookupStep"; $result = $this->construct($matchrule, $matchrule, null);
$_75 = NULL; $_76 = NULL;
do { do {
$matcher = 'match_'.'Call'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Call'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Call" ); $this->store( $result, $subres, "Call" );
} }
else { $_75 = FALSE; break; } else { $_76 = FALSE; break; }
$res_74 = $result; $res_75 = $result;
$pos_74 = $this->pos; $pos_75 = $this->pos;
if (substr($this->string,$this->pos,1) == '.') { if (substr($this->string,$this->pos,1) == '.') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '.'; $result["text"] .= '.';
$result = $res_74; $result = $res_75;
$this->pos = $pos_74; $this->pos = $pos_75;
} }
else { else {
$result = $res_74; $result = $res_75;
$this->pos = $pos_74; $this->pos = $pos_75;
$_75 = FALSE; break; $_76 = FALSE; break;
} }
$_75 = TRUE; break; $_76 = TRUE; break;
} }
while(0); while(0);
if( $_75 === TRUE ) { return $this->finalise($result); } if( $_76 === TRUE ) { return $this->finalise($result); }
if( $_75 === FALSE) { return FALSE; } if( $_76 === FALSE) { return FALSE; }
} }
@ -658,40 +670,40 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Lookup_typestack = array('Lookup'); protected $match_Lookup_typestack = array('Lookup');
function match_Lookup ($stack = array()) { function match_Lookup ($stack = array()) {
$matchrule = "Lookup"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Lookup"; $result = $this->construct($matchrule, $matchrule, null);
$_89 = NULL; $_90 = NULL;
do { do {
$res_78 = $result; $res_79 = $result;
$pos_78 = $this->pos; $pos_79 = $this->pos;
$_86 = NULL; $_87 = NULL;
do { do {
$matcher = 'match_'.'LookupStep'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'LookupStep'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_86 = FALSE; break; } else { $_87 = FALSE; break; }
while (true) { while (true) {
$res_83 = $result; $res_84 = $result;
$pos_83 = $this->pos; $pos_84 = $this->pos;
$_82 = NULL; $_83 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '.') { if (substr($this->string,$this->pos,1) == '.') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '.'; $result["text"] .= '.';
} }
else { $_82 = FALSE; break; } else { $_83 = FALSE; break; }
$matcher = 'match_'.'LookupStep'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'LookupStep'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
} }
else { $_82 = FALSE; break; } else { $_83 = FALSE; break; }
$_82 = TRUE; break; $_83 = TRUE; break;
} }
while(0); while(0);
if( $_82 === FALSE) { if( $_83 === FALSE) {
$result = $res_83; $result = $res_84;
$this->pos = $pos_83; $this->pos = $pos_84;
unset( $res_83 ); unset( $res_84 );
unset( $pos_83 ); unset( $pos_84 );
break; break;
} }
} }
@ -699,30 +711,30 @@ class SSTemplateParser extends Parser implements TemplateParser {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '.'; $result["text"] .= '.';
} }
else { $_86 = FALSE; break; } else { $_87 = FALSE; break; }
$matcher = 'match_'.'LastLookupStep'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'LastLookupStep'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_86 = FALSE; break; } else { $_87 = FALSE; break; }
$_86 = TRUE; break; $_87 = TRUE; break;
} }
while(0); while(0);
if( $_86 === TRUE ) { $_89 = TRUE; break; } if( $_87 === TRUE ) { $_90 = TRUE; break; }
$result = $res_78; $result = $res_79;
$this->pos = $pos_78; $this->pos = $pos_79;
$matcher = 'match_'.'LastLookupStep'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'LastLookupStep'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_89 = TRUE; break; $_90 = TRUE; break;
} }
$result = $res_78; $result = $res_79;
$this->pos = $pos_78; $this->pos = $pos_79;
$_89 = FALSE; break; $_90 = FALSE; break;
} }
while(0); while(0);
if( $_89 === TRUE ) { return $this->finalise($result); } if( $_90 === TRUE ) { return $this->finalise($result); }
if( $_89 === FALSE) { return FALSE; } if( $_90 === FALSE) { return FALSE; }
} }
@ -765,108 +777,108 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Translate_typestack = array('Translate'); protected $match_Translate_typestack = array('Translate');
function match_Translate ($stack = array()) { function match_Translate ($stack = array()) {
$matchrule = "Translate"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Translate"; $result = $this->construct($matchrule, $matchrule, null);
$_115 = NULL; $_116 = NULL;
do { do {
if (( $subres = $this->literal( '<%t' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%t' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_115 = FALSE; break; } else { $_116 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Entity'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Entity'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_115 = FALSE; break; } else { $_116 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_97 = $result; $res_98 = $result;
$pos_97 = $this->pos; $pos_98 = $this->pos;
$_96 = NULL; $_97 = NULL;
do { do {
$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Default" ); $this->store( $result, $subres, "Default" );
} }
else { $_96 = FALSE; break; } else { $_97 = FALSE; break; }
$_96 = TRUE; break; $_97 = TRUE; break;
} }
while(0); while(0);
if( $_96 === FALSE) { if( $_97 === FALSE) {
$result = $res_97; $result = $res_98;
$this->pos = $pos_97; $this->pos = $pos_98;
unset( $res_97 ); unset( $res_98 );
unset( $pos_97 ); unset( $pos_98 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_108 = $result; $res_109 = $result;
$pos_108 = $this->pos; $pos_109 = $this->pos;
$_107 = NULL; $_108 = NULL;
do { do {
$res_102 = $result; $res_103 = $result;
$pos_102 = $this->pos; $pos_103 = $this->pos;
$_101 = NULL; $_102 = NULL;
do { do {
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_101 = FALSE; break; } else { $_102 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '=') { if (substr($this->string,$this->pos,1) == '=') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '='; $result["text"] .= '=';
} }
else { $_101 = FALSE; break; } else { $_102 = FALSE; break; }
$_101 = TRUE; break; $_102 = TRUE; break;
} }
while(0); while(0);
if( $_101 === TRUE ) { if( $_102 === TRUE ) {
$result = $res_102; $result = $res_103;
$this->pos = $pos_102; $this->pos = $pos_103;
$_107 = FALSE; break; $_108 = FALSE; break;
} }
if( $_101 === FALSE) { if( $_102 === FALSE) {
$result = $res_102; $result = $res_103;
$this->pos = $pos_102; $this->pos = $pos_103;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_107 = FALSE; break; } else { $_108 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Context" ); $this->store( $result, $subres, "Context" );
} }
else { $_107 = FALSE; break; } else { $_108 = FALSE; break; }
$_107 = TRUE; break; $_108 = TRUE; break;
} }
while(0); while(0);
if( $_107 === FALSE) { if( $_108 === FALSE) {
$result = $res_108; $result = $res_109;
$this->pos = $pos_108; $this->pos = $pos_109;
unset( $res_108 ); unset( $res_109 );
unset( $pos_108 ); unset( $pos_109 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_112 = $result; $res_113 = $result;
$pos_112 = $this->pos; $pos_113 = $this->pos;
$_111 = NULL; $_112 = NULL;
do { do {
$matcher = 'match_'.'InjectionVariables'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'InjectionVariables'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_111 = FALSE; break; } else { $_112 = FALSE; break; }
$_111 = TRUE; break; $_112 = TRUE; break;
} }
while(0); while(0);
if( $_111 === FALSE) { if( $_112 === FALSE) {
$result = $res_112; $result = $res_113;
$this->pos = $pos_112; $this->pos = $pos_113;
unset( $res_112 ); unset( $res_113 );
unset( $pos_112 ); unset( $pos_113 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_115 = FALSE; break; } else { $_116 = FALSE; break; }
$_115 = TRUE; break; $_116 = TRUE; break;
} }
while(0); while(0);
if( $_115 === TRUE ) { return $this->finalise($result); } if( $_116 === TRUE ) { return $this->finalise($result); }
if( $_115 === FALSE) { return FALSE; } if( $_116 === FALSE) { return FALSE; }
} }
@ -876,9 +888,9 @@ class SSTemplateParser extends Parser implements TemplateParser {
$matchrule = "InjectionVariables"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "InjectionVariables"; $result = $this->construct($matchrule, $matchrule, null);
$count = 0; $count = 0;
while (true) { while (true) {
$res_122 = $result; $res_123 = $result;
$pos_122 = $this->pos; $pos_123 = $this->pos;
$_121 = NULL; $_122 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
@ -886,24 +898,24 @@ class SSTemplateParser extends Parser implements TemplateParser {
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "InjectionName" ); $this->store( $result, $subres, "InjectionName" );
} }
else { $_121 = FALSE; break; } else { $_122 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '=') { if (substr($this->string,$this->pos,1) == '=') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '='; $result["text"] .= '=';
} }
else { $_121 = FALSE; break; } else { $_122 = FALSE; break; }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_121 = FALSE; break; } else { $_122 = FALSE; break; }
$_121 = TRUE; break; $_122 = TRUE; break;
} }
while(0); while(0);
if( $_121 === FALSE) { if( $_122 === FALSE) {
$result = $res_122; $result = $res_123;
$this->pos = $pos_122; $this->pos = $pos_123;
unset( $res_122 ); unset( $res_123 );
unset( $pos_122 ); unset( $pos_123 );
break; break;
} }
$count += 1; $count += 1;
@ -973,24 +985,24 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_SimpleInjection_typestack = array('SimpleInjection'); protected $match_SimpleInjection_typestack = array('SimpleInjection');
function match_SimpleInjection ($stack = array()) { function match_SimpleInjection ($stack = array()) {
$matchrule = "SimpleInjection"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "SimpleInjection"; $result = $this->construct($matchrule, $matchrule, null);
$_126 = NULL; $_127 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '$') { if (substr($this->string,$this->pos,1) == '$') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '$'; $result["text"] .= '$';
} }
else { $_126 = FALSE; break; } else { $_127 = FALSE; break; }
$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Lookup" ); $this->store( $result, $subres, "Lookup" );
} }
else { $_126 = FALSE; break; } else { $_127 = FALSE; break; }
$_126 = TRUE; break; $_127 = TRUE; break;
} }
while(0); while(0);
if( $_126 === TRUE ) { return $this->finalise($result); } if( $_127 === TRUE ) { return $this->finalise($result); }
if( $_126 === FALSE) { return FALSE; } if( $_127 === FALSE) { return FALSE; }
} }
@ -998,26 +1010,26 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_BracketInjection_typestack = array('BracketInjection'); protected $match_BracketInjection_typestack = array('BracketInjection');
function match_BracketInjection ($stack = array()) { function match_BracketInjection ($stack = array()) {
$matchrule = "BracketInjection"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "BracketInjection"; $result = $this->construct($matchrule, $matchrule, null);
$_131 = NULL; $_132 = NULL;
do { do {
if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_131 = FALSE; break; } else { $_132 = FALSE; break; }
$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Lookup" ); $this->store( $result, $subres, "Lookup" );
} }
else { $_131 = FALSE; break; } else { $_132 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '}') { if (substr($this->string,$this->pos,1) == '}') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '}'; $result["text"] .= '}';
} }
else { $_131 = FALSE; break; } else { $_132 = FALSE; break; }
$_131 = TRUE; break; $_132 = TRUE; break;
} }
while(0); while(0);
if( $_131 === TRUE ) { return $this->finalise($result); } if( $_132 === TRUE ) { return $this->finalise($result); }
if( $_131 === FALSE) { return FALSE; } if( $_132 === FALSE) { return FALSE; }
} }
@ -1025,31 +1037,31 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Injection_typestack = array('Injection'); protected $match_Injection_typestack = array('Injection');
function match_Injection ($stack = array()) { function match_Injection ($stack = array()) {
$matchrule = "Injection"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Injection"; $result = $this->construct($matchrule, $matchrule, null);
$_136 = NULL; $_137 = NULL;
do { do {
$res_133 = $result; $res_134 = $result;
$pos_133 = $this->pos; $pos_134 = $this->pos;
$matcher = 'match_'.'BracketInjection'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'BracketInjection'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_136 = TRUE; break; $_137 = TRUE; break;
} }
$result = $res_133; $result = $res_134;
$this->pos = $pos_133; $this->pos = $pos_134;
$matcher = 'match_'.'SimpleInjection'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'SimpleInjection'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_136 = TRUE; break; $_137 = TRUE; break;
} }
$result = $res_133; $result = $res_134;
$this->pos = $pos_133; $this->pos = $pos_134;
$_136 = FALSE; break; $_137 = FALSE; break;
} }
while(0); while(0);
if( $_136 === TRUE ) { return $this->finalise($result); } if( $_137 === TRUE ) { return $this->finalise($result); }
if( $_136 === FALSE) { return FALSE; } if( $_137 === FALSE) { return FALSE; }
} }
@ -1081,7 +1093,7 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_QuotedString_typestack = array('QuotedString'); protected $match_QuotedString_typestack = array('QuotedString');
function match_QuotedString ($stack = array()) { function match_QuotedString ($stack = array()) {
$matchrule = "QuotedString"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "QuotedString"; $result = $this->construct($matchrule, $matchrule, null);
$_142 = NULL; $_143 = NULL;
do { do {
$stack[] = $result; $result = $this->construct( $matchrule, "q" ); $stack[] = $result; $result = $this->construct( $matchrule, "q" );
if (( $subres = $this->rx( '/[\'"]/' ) ) !== FALSE) { if (( $subres = $this->rx( '/[\'"]/' ) ) !== FALSE) {
@ -1091,7 +1103,7 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
else { else {
$result = array_pop($stack); $result = array_pop($stack);
$_142 = FALSE; break; $_143 = FALSE; break;
} }
$stack[] = $result; $result = $this->construct( $matchrule, "String" ); $stack[] = $result; $result = $this->construct( $matchrule, "String" );
if (( $subres = $this->rx( '/ (\\\\\\\\ | \\\\. | [^'.$this->expression($result, $stack, 'q').'\\\\])* /' ) ) !== FALSE) { if (( $subres = $this->rx( '/ (\\\\\\\\ | \\\\. | [^'.$this->expression($result, $stack, 'q').'\\\\])* /' ) ) !== FALSE) {
@ -1101,15 +1113,15 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
else { else {
$result = array_pop($stack); $result = array_pop($stack);
$_142 = FALSE; break; $_143 = FALSE; break;
} }
if (( $subres = $this->literal( ''.$this->expression($result, $stack, 'q').'' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( ''.$this->expression($result, $stack, 'q').'' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_142 = FALSE; break; } else { $_143 = FALSE; break; }
$_142 = TRUE; break; $_143 = TRUE; break;
} }
while(0); while(0);
if( $_142 === TRUE ) { return $this->finalise($result); } if( $_143 === TRUE ) { return $this->finalise($result); }
if( $_142 === FALSE) { return FALSE; } if( $_143 === FALSE) { return FALSE; }
} }
@ -1133,45 +1145,45 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Argument_typestack = array('Argument'); protected $match_Argument_typestack = array('Argument');
function match_Argument ($stack = array()) { function match_Argument ($stack = array()) {
$matchrule = "Argument"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Argument"; $result = $this->construct($matchrule, $matchrule, null);
$_162 = NULL; $_163 = NULL;
do { do {
$res_145 = $result; $res_146 = $result;
$pos_145 = $this->pos; $pos_146 = $this->pos;
$matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "DollarMarkedLookup" ); $this->store( $result, $subres, "DollarMarkedLookup" );
$_162 = TRUE; break; $_163 = TRUE; break;
} }
$result = $res_145; $result = $res_146;
$this->pos = $pos_145; $this->pos = $pos_146;
$_160 = NULL; $_161 = NULL;
do { do {
$res_147 = $result; $res_148 = $result;
$pos_147 = $this->pos; $pos_148 = $this->pos;
$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "QuotedString" ); $this->store( $result, $subres, "QuotedString" );
$_160 = TRUE; break; $_161 = TRUE; break;
} }
$result = $res_147; $result = $res_148;
$this->pos = $pos_147; $this->pos = $pos_148;
$_158 = NULL; $_159 = NULL;
do { do {
$res_149 = $result; $res_150 = $result;
$pos_149 = $this->pos; $pos_150 = $this->pos;
$_155 = NULL; $_156 = NULL;
do { do {
$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Lookup" ); $this->store( $result, $subres, "Lookup" );
} }
else { $_155 = FALSE; break; } else { $_156 = FALSE; break; }
$res_154 = $result; $res_155 = $result;
$pos_154 = $this->pos; $pos_155 = $this->pos;
$_153 = NULL; $_154 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'FreeString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'FreeString'; $key = $matcher; $pos = $this->pos;
@ -1179,50 +1191,50 @@ class SSTemplateParser extends Parser implements TemplateParser {
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
} }
else { $_153 = FALSE; break; } else { $_154 = FALSE; break; }
$_153 = TRUE; break; $_154 = TRUE; break;
} }
while(0); while(0);
if( $_153 === TRUE ) { if( $_154 === TRUE ) {
$result = $res_154; $result = $res_155;
$this->pos = $pos_154; $this->pos = $pos_155;
$_155 = FALSE; break; $_156 = FALSE; break;
} }
if( $_153 === FALSE) { if( $_154 === FALSE) {
$result = $res_154; $result = $res_155;
$this->pos = $pos_154; $this->pos = $pos_155;
} }
$_155 = TRUE; break; $_156 = TRUE; break;
} }
while(0); while(0);
if( $_155 === TRUE ) { $_158 = TRUE; break; } if( $_156 === TRUE ) { $_159 = TRUE; break; }
$result = $res_149; $result = $res_150;
$this->pos = $pos_149; $this->pos = $pos_150;
$matcher = 'match_'.'FreeString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'FreeString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "FreeString" ); $this->store( $result, $subres, "FreeString" );
$_158 = TRUE; break; $_159 = TRUE; break;
} }
$result = $res_149; $result = $res_150;
$this->pos = $pos_149; $this->pos = $pos_150;
$_158 = FALSE; break; $_159 = FALSE; break;
} }
while(0); while(0);
if( $_158 === TRUE ) { $_160 = TRUE; break; } if( $_159 === TRUE ) { $_161 = TRUE; break; }
$result = $res_147; $result = $res_148;
$this->pos = $pos_147; $this->pos = $pos_148;
$_160 = FALSE; break; $_161 = FALSE; break;
} }
while(0); while(0);
if( $_160 === TRUE ) { $_162 = TRUE; break; } if( $_161 === TRUE ) { $_163 = TRUE; break; }
$result = $res_145; $result = $res_146;
$this->pos = $pos_145; $this->pos = $pos_146;
$_162 = FALSE; break; $_163 = FALSE; break;
} }
while(0); while(0);
if( $_162 === TRUE ) { return $this->finalise($result); } if( $_163 === TRUE ) { return $this->finalise($result); }
if( $_162 === FALSE) { return FALSE; } if( $_163 === FALSE) { return FALSE; }
} }
@ -1273,110 +1285,110 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_ComparisonOperator_typestack = array('ComparisonOperator'); protected $match_ComparisonOperator_typestack = array('ComparisonOperator');
function match_ComparisonOperator ($stack = array()) { function match_ComparisonOperator ($stack = array()) {
$matchrule = "ComparisonOperator"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "ComparisonOperator"; $result = $this->construct($matchrule, $matchrule, null);
$_187 = NULL; $_188 = NULL;
do { do {
$res_164 = $result; $res_165 = $result;
$pos_164 = $this->pos; $pos_165 = $this->pos;
if (( $subres = $this->literal( '!=' ) ) !== FALSE) { if (( $subres = $this->literal( '!=' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_187 = TRUE; break; $_188 = TRUE; break;
} }
$result = $res_164; $result = $res_165;
$this->pos = $pos_164; $this->pos = $pos_165;
$_185 = NULL; $_186 = NULL;
do { do {
$res_166 = $result; $res_167 = $result;
$pos_166 = $this->pos; $pos_167 = $this->pos;
if (( $subres = $this->literal( '==' ) ) !== FALSE) { if (( $subres = $this->literal( '==' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_185 = TRUE; break; $_186 = TRUE; break;
} }
$result = $res_166; $result = $res_167;
$this->pos = $pos_166; $this->pos = $pos_167;
$_183 = NULL; $_184 = NULL;
do { do {
$res_168 = $result; $res_169 = $result;
$pos_168 = $this->pos; $pos_169 = $this->pos;
if (( $subres = $this->literal( '>=' ) ) !== FALSE) { if (( $subres = $this->literal( '>=' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_183 = TRUE; break; $_184 = TRUE; break;
} }
$result = $res_168; $result = $res_169;
$this->pos = $pos_168; $this->pos = $pos_169;
$_181 = NULL; $_182 = NULL;
do { do {
$res_170 = $result; $res_171 = $result;
$pos_170 = $this->pos; $pos_171 = $this->pos;
if (substr($this->string,$this->pos,1) == '>') { if (substr($this->string,$this->pos,1) == '>') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '>'; $result["text"] .= '>';
$_181 = TRUE; break; $_182 = TRUE; break;
} }
$result = $res_170; $result = $res_171;
$this->pos = $pos_170; $this->pos = $pos_171;
$_179 = NULL; $_180 = NULL;
do { do {
$res_172 = $result; $res_173 = $result;
$pos_172 = $this->pos; $pos_173 = $this->pos;
if (( $subres = $this->literal( '<=' ) ) !== FALSE) { if (( $subres = $this->literal( '<=' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_179 = TRUE; break; $_180 = TRUE; break;
} }
$result = $res_172; $result = $res_173;
$this->pos = $pos_172; $this->pos = $pos_173;
$_177 = NULL; $_178 = NULL;
do { do {
$res_174 = $result; $res_175 = $result;
$pos_174 = $this->pos; $pos_175 = $this->pos;
if (substr($this->string,$this->pos,1) == '<') { if (substr($this->string,$this->pos,1) == '<') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '<'; $result["text"] .= '<';
$_177 = TRUE; break; $_178 = TRUE; break;
} }
$result = $res_174; $result = $res_175;
$this->pos = $pos_174; $this->pos = $pos_175;
if (substr($this->string,$this->pos,1) == '=') { if (substr($this->string,$this->pos,1) == '=') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '='; $result["text"] .= '=';
$_177 = TRUE; break; $_178 = TRUE; break;
} }
$result = $res_174; $result = $res_175;
$this->pos = $pos_174; $this->pos = $pos_175;
$_177 = FALSE; break; $_178 = FALSE; break;
} }
while(0); while(0);
if( $_177 === TRUE ) { $_179 = TRUE; break; } if( $_178 === TRUE ) { $_180 = TRUE; break; }
$result = $res_172; $result = $res_173;
$this->pos = $pos_172; $this->pos = $pos_173;
$_179 = FALSE; break; $_180 = FALSE; break;
} }
while(0); while(0);
if( $_179 === TRUE ) { $_181 = TRUE; break; } if( $_180 === TRUE ) { $_182 = TRUE; break; }
$result = $res_170; $result = $res_171;
$this->pos = $pos_170; $this->pos = $pos_171;
$_181 = FALSE; break; $_182 = FALSE; break;
} }
while(0); while(0);
if( $_181 === TRUE ) { $_183 = TRUE; break; } if( $_182 === TRUE ) { $_184 = TRUE; break; }
$result = $res_168; $result = $res_169;
$this->pos = $pos_168; $this->pos = $pos_169;
$_183 = FALSE; break; $_184 = FALSE; break;
} }
while(0); while(0);
if( $_183 === TRUE ) { $_185 = TRUE; break; } if( $_184 === TRUE ) { $_186 = TRUE; break; }
$result = $res_166; $result = $res_167;
$this->pos = $pos_166; $this->pos = $pos_167;
$_185 = FALSE; break; $_186 = FALSE; break;
} }
while(0); while(0);
if( $_185 === TRUE ) { $_187 = TRUE; break; } if( $_186 === TRUE ) { $_188 = TRUE; break; }
$result = $res_164; $result = $res_165;
$this->pos = $pos_164; $this->pos = $pos_165;
$_187 = FALSE; break; $_188 = FALSE; break;
} }
while(0); while(0);
if( $_187 === TRUE ) { return $this->finalise($result); } if( $_188 === TRUE ) { return $this->finalise($result); }
if( $_187 === FALSE) { return FALSE; } if( $_188 === FALSE) { return FALSE; }
} }
@ -1384,27 +1396,27 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Comparison_typestack = array('Comparison'); protected $match_Comparison_typestack = array('Comparison');
function match_Comparison ($stack = array()) { function match_Comparison ($stack = array()) {
$matchrule = "Comparison"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Comparison"; $result = $this->construct($matchrule, $matchrule, null);
$_194 = NULL; $_195 = NULL;
do { do {
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_194 = FALSE; break; } else { $_195 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'ComparisonOperator'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'ComparisonOperator'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_194 = FALSE; break; } else { $_195 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_194 = FALSE; break; } else { $_195 = FALSE; break; }
$_194 = TRUE; break; $_195 = TRUE; break;
} }
while(0); while(0);
if( $_194 === TRUE ) { return $this->finalise($result); } if( $_195 === TRUE ) { return $this->finalise($result); }
if( $_194 === FALSE) { return FALSE; } if( $_195 === FALSE) { return FALSE; }
} }
@ -1427,11 +1439,11 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_PresenceCheck_typestack = array('PresenceCheck'); protected $match_PresenceCheck_typestack = array('PresenceCheck');
function match_PresenceCheck ($stack = array()) { function match_PresenceCheck ($stack = array()) {
$matchrule = "PresenceCheck"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "PresenceCheck"; $result = $this->construct($matchrule, $matchrule, null);
$_201 = NULL; $_202 = NULL;
do { do {
$res_199 = $result; $res_200 = $result;
$pos_199 = $this->pos; $pos_200 = $this->pos;
$_198 = NULL; $_199 = NULL;
do { do {
$stack[] = $result; $result = $this->construct( $matchrule, "Not" ); $stack[] = $result; $result = $this->construct( $matchrule, "Not" );
if (( $subres = $this->literal( 'not' ) ) !== FALSE) { if (( $subres = $this->literal( 'not' ) ) !== FALSE) {
@ -1441,27 +1453,27 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
else { else {
$result = array_pop($stack); $result = array_pop($stack);
$_198 = FALSE; break; $_199 = FALSE; break;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$_198 = TRUE; break; $_199 = TRUE; break;
} }
while(0); while(0);
if( $_198 === FALSE) { if( $_199 === FALSE) {
$result = $res_199; $result = $res_200;
$this->pos = $pos_199; $this->pos = $pos_200;
unset( $res_199 ); unset( $res_200 );
unset( $pos_199 ); unset( $pos_200 );
} }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_201 = FALSE; break; } else { $_202 = FALSE; break; }
$_201 = TRUE; break; $_202 = TRUE; break;
} }
while(0); while(0);
if( $_201 === TRUE ) { return $this->finalise($result); } if( $_202 === TRUE ) { return $this->finalise($result); }
if( $_201 === FALSE) { return FALSE; } if( $_202 === FALSE) { return FALSE; }
} }
@ -1486,31 +1498,31 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_IfArgumentPortion_typestack = array('IfArgumentPortion'); protected $match_IfArgumentPortion_typestack = array('IfArgumentPortion');
function match_IfArgumentPortion ($stack = array()) { function match_IfArgumentPortion ($stack = array()) {
$matchrule = "IfArgumentPortion"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "IfArgumentPortion"; $result = $this->construct($matchrule, $matchrule, null);
$_206 = NULL; $_207 = NULL;
do { do {
$res_203 = $result; $res_204 = $result;
$pos_203 = $this->pos; $pos_204 = $this->pos;
$matcher = 'match_'.'Comparison'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Comparison'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_206 = TRUE; break; $_207 = TRUE; break;
} }
$result = $res_203; $result = $res_204;
$this->pos = $pos_203; $this->pos = $pos_204;
$matcher = 'match_'.'PresenceCheck'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'PresenceCheck'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_206 = TRUE; break; $_207 = TRUE; break;
} }
$result = $res_203; $result = $res_204;
$this->pos = $pos_203; $this->pos = $pos_204;
$_206 = FALSE; break; $_207 = FALSE; break;
} }
while(0); while(0);
if( $_206 === TRUE ) { return $this->finalise($result); } if( $_207 === TRUE ) { return $this->finalise($result); }
if( $_206 === FALSE) { return FALSE; } if( $_207 === FALSE) { return FALSE; }
} }
@ -1523,27 +1535,27 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_BooleanOperator_typestack = array('BooleanOperator'); protected $match_BooleanOperator_typestack = array('BooleanOperator');
function match_BooleanOperator ($stack = array()) { function match_BooleanOperator ($stack = array()) {
$matchrule = "BooleanOperator"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "BooleanOperator"; $result = $this->construct($matchrule, $matchrule, null);
$_211 = NULL; $_212 = NULL;
do { do {
$res_208 = $result; $res_209 = $result;
$pos_208 = $this->pos; $pos_209 = $this->pos;
if (( $subres = $this->literal( '||' ) ) !== FALSE) { if (( $subres = $this->literal( '||' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_211 = TRUE; break; $_212 = TRUE; break;
} }
$result = $res_208; $result = $res_209;
$this->pos = $pos_208; $this->pos = $pos_209;
if (( $subres = $this->literal( '&&' ) ) !== FALSE) { if (( $subres = $this->literal( '&&' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_211 = TRUE; break; $_212 = TRUE; break;
} }
$result = $res_208; $result = $res_209;
$this->pos = $pos_208; $this->pos = $pos_209;
$_211 = FALSE; break; $_212 = FALSE; break;
} }
while(0); while(0);
if( $_211 === TRUE ) { return $this->finalise($result); } if( $_212 === TRUE ) { return $this->finalise($result); }
if( $_211 === FALSE) { return FALSE; } if( $_212 === FALSE) { return FALSE; }
} }
@ -1551,18 +1563,18 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_IfArgument_typestack = array('IfArgument'); protected $match_IfArgument_typestack = array('IfArgument');
function match_IfArgument ($stack = array()) { function match_IfArgument ($stack = array()) {
$matchrule = "IfArgument"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "IfArgument"; $result = $this->construct($matchrule, $matchrule, null);
$_220 = NULL; $_221 = NULL;
do { do {
$matcher = 'match_'.'IfArgumentPortion'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgumentPortion'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "IfArgumentPortion" ); $this->store( $result, $subres, "IfArgumentPortion" );
} }
else { $_220 = FALSE; break; } else { $_221 = FALSE; break; }
while (true) { while (true) {
$res_219 = $result; $res_220 = $result;
$pos_219 = $this->pos; $pos_220 = $this->pos;
$_218 = NULL; $_219 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'BooleanOperator'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'BooleanOperator'; $key = $matcher; $pos = $this->pos;
@ -1570,30 +1582,30 @@ class SSTemplateParser extends Parser implements TemplateParser {
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BooleanOperator" ); $this->store( $result, $subres, "BooleanOperator" );
} }
else { $_218 = FALSE; break; } else { $_219 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'IfArgumentPortion'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgumentPortion'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "IfArgumentPortion" ); $this->store( $result, $subres, "IfArgumentPortion" );
} }
else { $_218 = FALSE; break; } else { $_219 = FALSE; break; }
$_218 = TRUE; break; $_219 = TRUE; break;
} }
while(0); while(0);
if( $_218 === FALSE) { if( $_219 === FALSE) {
$result = $res_219; $result = $res_220;
$this->pos = $pos_219; $this->pos = $pos_220;
unset( $res_219 ); unset( $res_220 );
unset( $pos_219 ); unset( $pos_220 );
break; break;
} }
} }
$_220 = TRUE; break; $_221 = TRUE; break;
} }
while(0); while(0);
if( $_220 === TRUE ) { return $this->finalise($result); } if( $_221 === TRUE ) { return $this->finalise($result); }
if( $_220 === FALSE) { return FALSE; } if( $_221 === FALSE) { return FALSE; }
} }
@ -1610,42 +1622,42 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_IfPart_typestack = array('IfPart'); protected $match_IfPart_typestack = array('IfPart');
function match_IfPart ($stack = array()) { function match_IfPart ($stack = array()) {
$matchrule = "IfPart"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "IfPart"; $result = $this->construct($matchrule, $matchrule, null);
$_230 = NULL; $_231 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_230 = FALSE; break; } else { $_231 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'if' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'if' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_230 = FALSE; break; } else { $_231 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_230 = FALSE; break; } else { $_231 = FALSE; break; }
$matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "IfArgument" ); $this->store( $result, $subres, "IfArgument" );
} }
else { $_230 = FALSE; break; } else { $_231 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_230 = FALSE; break; } else { $_231 = FALSE; break; }
$res_229 = $result; $res_230 = $result;
$pos_229 = $this->pos; $pos_230 = $this->pos;
$matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos; $matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { else {
$result = $res_229; $result = $res_230;
$this->pos = $pos_229; $this->pos = $pos_230;
unset( $res_229 ); unset( $res_230 );
unset( $pos_229 ); unset( $pos_230 );
} }
$_230 = TRUE; break; $_231 = TRUE; break;
} }
while(0); while(0);
if( $_230 === TRUE ) { return $this->finalise($result); } if( $_231 === TRUE ) { return $this->finalise($result); }
if( $_230 === FALSE) { return FALSE; } if( $_231 === FALSE) { return FALSE; }
} }
@ -1653,42 +1665,42 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_ElseIfPart_typestack = array('ElseIfPart'); protected $match_ElseIfPart_typestack = array('ElseIfPart');
function match_ElseIfPart ($stack = array()) { function match_ElseIfPart ($stack = array()) {
$matchrule = "ElseIfPart"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "ElseIfPart"; $result = $this->construct($matchrule, $matchrule, null);
$_240 = NULL; $_241 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_240 = FALSE; break; } else { $_241 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_240 = FALSE; break; } else { $_241 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_240 = FALSE; break; } else { $_241 = FALSE; break; }
$matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "IfArgument" ); $this->store( $result, $subres, "IfArgument" );
} }
else { $_240 = FALSE; break; } else { $_241 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_240 = FALSE; break; } else { $_241 = FALSE; break; }
$res_239 = $result; $res_240 = $result;
$pos_239 = $this->pos; $pos_240 = $this->pos;
$matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos; $matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { else {
$result = $res_239; $result = $res_240;
$this->pos = $pos_239; $this->pos = $pos_240;
unset( $res_239 ); unset( $res_240 );
unset( $pos_239 ); unset( $pos_240 );
} }
$_240 = TRUE; break; $_241 = TRUE; break;
} }
while(0); while(0);
if( $_240 === TRUE ) { return $this->finalise($result); } if( $_241 === TRUE ) { return $this->finalise($result); }
if( $_240 === FALSE) { return FALSE; } if( $_241 === FALSE) { return FALSE; }
} }
@ -1696,34 +1708,34 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_ElsePart_typestack = array('ElsePart'); protected $match_ElsePart_typestack = array('ElsePart');
function match_ElsePart ($stack = array()) { function match_ElsePart ($stack = array()) {
$matchrule = "ElsePart"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "ElsePart"; $result = $this->construct($matchrule, $matchrule, null);
$_248 = NULL; $_249 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_248 = FALSE; break; } else { $_249 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'else' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'else' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_248 = FALSE; break; } else { $_249 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_248 = FALSE; break; } else { $_249 = FALSE; break; }
$res_247 = $result; $res_248 = $result;
$pos_247 = $this->pos; $pos_248 = $this->pos;
$matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos; $matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { else {
$result = $res_247; $result = $res_248;
$this->pos = $pos_247; $this->pos = $pos_248;
unset( $res_247 ); unset( $res_248 );
unset( $pos_247 ); unset( $pos_248 );
} }
$_248 = TRUE; break; $_249 = TRUE; break;
} }
while(0); while(0);
if( $_248 === TRUE ) { return $this->finalise($result); } if( $_249 === TRUE ) { return $this->finalise($result); }
if( $_248 === FALSE) { return FALSE; } if( $_249 === FALSE) { return FALSE; }
} }
@ -1731,29 +1743,16 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_If_typestack = array('If'); protected $match_If_typestack = array('If');
function match_If ($stack = array()) { function match_If ($stack = array()) {
$matchrule = "If"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "If"; $result = $this->construct($matchrule, $matchrule, null);
$_258 = NULL; $_259 = NULL;
do { do {
$matcher = 'match_'.'IfPart'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfPart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_258 = FALSE; break; } else { $_259 = FALSE; break; }
while (true) { while (true) {
$res_251 = $result;
$pos_251 = $this->pos;
$matcher = 'match_'.'ElseIfPart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); }
else {
$result = $res_251;
$this->pos = $pos_251;
unset( $res_251 );
unset( $pos_251 );
break;
}
}
$res_252 = $result; $res_252 = $result;
$pos_252 = $this->pos; $pos_252 = $this->pos;
$matcher = 'match_'.'ElsePart'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'ElseIfPart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { else {
@ -1761,20 +1760,33 @@ class SSTemplateParser extends Parser implements TemplateParser {
$this->pos = $pos_252; $this->pos = $pos_252;
unset( $res_252 ); unset( $res_252 );
unset( $pos_252 ); unset( $pos_252 );
break;
}
}
$res_253 = $result;
$pos_253 = $this->pos;
$matcher = 'match_'.'ElsePart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); }
else {
$result = $res_253;
$this->pos = $pos_253;
unset( $res_253 );
unset( $pos_253 );
} }
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_258 = FALSE; break; } else { $_259 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'end_if' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_if' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_258 = FALSE; break; } else { $_259 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_258 = FALSE; break; } else { $_259 = FALSE; break; }
$_258 = TRUE; break; $_259 = TRUE; break;
} }
while(0); while(0);
if( $_258 === TRUE ) { return $this->finalise($result); } if( $_259 === TRUE ) { return $this->finalise($result); }
if( $_258 === FALSE) { return FALSE; } if( $_259 === FALSE) { return FALSE; }
} }
@ -1804,61 +1816,61 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Require_typestack = array('Require'); protected $match_Require_typestack = array('Require');
function match_Require ($stack = array()) { function match_Require ($stack = array()) {
$matchrule = "Require"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Require"; $result = $this->construct($matchrule, $matchrule, null);
$_274 = NULL; $_275 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_274 = FALSE; break; } else { $_275 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'require' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'require' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_274 = FALSE; break; } else { $_275 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_274 = FALSE; break; } else { $_275 = FALSE; break; }
$stack[] = $result; $result = $this->construct( $matchrule, "Call" ); $stack[] = $result; $result = $this->construct( $matchrule, "Call" );
$_270 = NULL; $_271 = NULL;
do { do {
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Method" ); $this->store( $result, $subres, "Method" );
} }
else { $_270 = FALSE; break; } else { $_271 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '(') { if (substr($this->string,$this->pos,1) == '(') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '('; $result["text"] .= '(';
} }
else { $_270 = FALSE; break; } else { $_271 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "CallArguments" ); $this->store( $result, $subres, "CallArguments" );
} }
else { $_270 = FALSE; break; } else { $_271 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ')') { if (substr($this->string,$this->pos,1) == ')') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ')'; $result["text"] .= ')';
} }
else { $_270 = FALSE; break; } else { $_271 = FALSE; break; }
$_270 = TRUE; break; $_271 = TRUE; break;
} }
while(0); while(0);
if( $_270 === TRUE ) { if( $_271 === TRUE ) {
$subres = $result; $result = array_pop($stack); $subres = $result; $result = array_pop($stack);
$this->store( $result, $subres, 'Call' ); $this->store( $result, $subres, 'Call' );
} }
if( $_270 === FALSE) { if( $_271 === FALSE) {
$result = array_pop($stack); $result = array_pop($stack);
$_274 = FALSE; break; $_275 = FALSE; break;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_274 = FALSE; break; } else { $_275 = FALSE; break; }
$_274 = TRUE; break; $_275 = TRUE; break;
} }
while(0); while(0);
if( $_274 === TRUE ) { return $this->finalise($result); } if( $_275 === TRUE ) { return $this->finalise($result); }
if( $_274 === FALSE) { return FALSE; } if( $_275 === FALSE) { return FALSE; }
} }
@ -1878,97 +1890,97 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_CacheBlockArgument_typestack = array('CacheBlockArgument'); protected $match_CacheBlockArgument_typestack = array('CacheBlockArgument');
function match_CacheBlockArgument ($stack = array()) { function match_CacheBlockArgument ($stack = array()) {
$matchrule = "CacheBlockArgument"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "CacheBlockArgument"; $result = $this->construct($matchrule, $matchrule, null);
$_294 = NULL; $_295 = NULL;
do {
$res_282 = $result;
$pos_282 = $this->pos;
$_281 = NULL;
do {
$_279 = NULL;
do {
$res_276 = $result;
$pos_276 = $this->pos;
if (( $subres = $this->literal( 'if ' ) ) !== FALSE) {
$result["text"] .= $subres;
$_279 = TRUE; break;
}
$result = $res_276;
$this->pos = $pos_276;
if (( $subres = $this->literal( 'unless ' ) ) !== FALSE) {
$result["text"] .= $subres;
$_279 = TRUE; break;
}
$result = $res_276;
$this->pos = $pos_276;
$_279 = FALSE; break;
}
while(0);
if( $_279 === FALSE) { $_281 = FALSE; break; }
$_281 = TRUE; break;
}
while(0);
if( $_281 === TRUE ) {
$result = $res_282;
$this->pos = $pos_282;
$_294 = FALSE; break;
}
if( $_281 === FALSE) {
$result = $res_282;
$this->pos = $pos_282;
}
$_292 = NULL;
do {
$_290 = NULL;
do { do {
$res_283 = $result; $res_283 = $result;
$pos_283 = $this->pos; $pos_283 = $this->pos;
$_282 = NULL;
do {
$_280 = NULL;
do {
$res_277 = $result;
$pos_277 = $this->pos;
if (( $subres = $this->literal( 'if ' ) ) !== FALSE) {
$result["text"] .= $subres;
$_280 = TRUE; break;
}
$result = $res_277;
$this->pos = $pos_277;
if (( $subres = $this->literal( 'unless ' ) ) !== FALSE) {
$result["text"] .= $subres;
$_280 = TRUE; break;
}
$result = $res_277;
$this->pos = $pos_277;
$_280 = FALSE; break;
}
while(0);
if( $_280 === FALSE) { $_282 = FALSE; break; }
$_282 = TRUE; break;
}
while(0);
if( $_282 === TRUE ) {
$result = $res_283;
$this->pos = $pos_283;
$_295 = FALSE; break;
}
if( $_282 === FALSE) {
$result = $res_283;
$this->pos = $pos_283;
}
$_293 = NULL;
do {
$_291 = NULL;
do {
$res_284 = $result;
$pos_284 = $this->pos;
$matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "DollarMarkedLookup" ); $this->store( $result, $subres, "DollarMarkedLookup" );
$_290 = TRUE; break; $_291 = TRUE; break;
} }
$result = $res_283; $result = $res_284;
$this->pos = $pos_283; $this->pos = $pos_284;
$_288 = NULL; $_289 = NULL;
do { do {
$res_285 = $result; $res_286 = $result;
$pos_285 = $this->pos; $pos_286 = $this->pos;
$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "QuotedString" ); $this->store( $result, $subres, "QuotedString" );
$_288 = TRUE; break; $_289 = TRUE; break;
} }
$result = $res_285; $result = $res_286;
$this->pos = $pos_285; $this->pos = $pos_286;
$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Lookup" ); $this->store( $result, $subres, "Lookup" );
$_288 = TRUE; break; $_289 = TRUE; break;
} }
$result = $res_285; $result = $res_286;
$this->pos = $pos_285; $this->pos = $pos_286;
$_288 = FALSE; break; $_289 = FALSE; break;
} }
while(0); while(0);
if( $_288 === TRUE ) { $_290 = TRUE; break; } if( $_289 === TRUE ) { $_291 = TRUE; break; }
$result = $res_283; $result = $res_284;
$this->pos = $pos_283; $this->pos = $pos_284;
$_290 = FALSE; break; $_291 = FALSE; break;
} }
while(0); while(0);
if( $_290 === FALSE) { $_292 = FALSE; break; } if( $_291 === FALSE) { $_293 = FALSE; break; }
$_292 = TRUE; break; $_293 = TRUE; break;
} }
while(0); while(0);
if( $_292 === FALSE) { $_294 = FALSE; break; } if( $_293 === FALSE) { $_295 = FALSE; break; }
$_294 = TRUE; break; $_295 = TRUE; break;
} }
while(0); while(0);
if( $_294 === TRUE ) { return $this->finalise($result); } if( $_295 === TRUE ) { return $this->finalise($result); }
if( $_294 === FALSE) { return FALSE; } if( $_295 === FALSE) { return FALSE; }
} }
@ -1989,44 +2001,44 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_CacheBlockArguments_typestack = array('CacheBlockArguments'); protected $match_CacheBlockArguments_typestack = array('CacheBlockArguments');
function match_CacheBlockArguments ($stack = array()) { function match_CacheBlockArguments ($stack = array()) {
$matchrule = "CacheBlockArguments"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "CacheBlockArguments"; $result = $this->construct($matchrule, $matchrule, null);
$_303 = NULL; $_304 = NULL;
do { do {
$matcher = 'match_'.'CacheBlockArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlockArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_303 = FALSE; break; } else { $_304 = FALSE; break; }
while (true) { while (true) {
$res_302 = $result; $res_303 = $result;
$pos_302 = $this->pos; $pos_303 = $this->pos;
$_301 = NULL; $_302 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_301 = FALSE; break; } else { $_302 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'CacheBlockArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlockArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_301 = FALSE; break; } else { $_302 = FALSE; break; }
$_301 = TRUE; break; $_302 = TRUE; break;
} }
while(0); while(0);
if( $_301 === FALSE) { if( $_302 === FALSE) {
$result = $res_302; $result = $res_303;
$this->pos = $pos_302; $this->pos = $pos_303;
unset( $res_302 ); unset( $res_303 );
unset( $pos_302 ); unset( $pos_303 );
break; break;
} }
} }
$_303 = TRUE; break; $_304 = TRUE; break;
} }
while(0); while(0);
if( $_303 === TRUE ) { return $this->finalise($result); } if( $_304 === TRUE ) { return $this->finalise($result); }
if( $_303 === FALSE) { return FALSE; } if( $_304 === FALSE) { return FALSE; }
} }
@ -2045,204 +2057,204 @@ class SSTemplateParser extends Parser implements TemplateParser {
$matchrule = "CacheBlockTemplate"; $result = $this->construct($matchrule, $matchrule, array('TemplateMatcher' => 'CacheRestrictedTemplate')); $matchrule = "CacheBlockTemplate"; $result = $this->construct($matchrule, $matchrule, array('TemplateMatcher' => 'CacheRestrictedTemplate'));
$count = 0; $count = 0;
while (true) { while (true) {
$res_347 = $result; $res_348 = $result;
$pos_347 = $this->pos; $pos_348 = $this->pos;
$_346 = NULL; $_347 = NULL;
do { do {
$_344 = NULL; $_345 = NULL;
do { do {
$res_305 = $result; $res_306 = $result;
$pos_305 = $this->pos; $pos_306 = $this->pos;
$matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_344 = TRUE; break; $_345 = TRUE; break;
} }
$result = $res_305; $result = $res_306;
$this->pos = $pos_305; $this->pos = $pos_306;
$_342 = NULL; $_343 = NULL;
do { do {
$res_307 = $result; $res_308 = $result;
$pos_307 = $this->pos; $pos_308 = $this->pos;
$matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_342 = TRUE; break; $_343 = TRUE; break;
} }
$result = $res_307; $result = $res_308;
$this->pos = $pos_307; $this->pos = $pos_308;
$_340 = NULL; $_341 = NULL;
do { do {
$res_309 = $result; $res_310 = $result;
$pos_309 = $this->pos; $pos_310 = $this->pos;
$matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_340 = TRUE; break; $_341 = TRUE; break;
} }
$result = $res_309; $result = $res_310;
$this->pos = $pos_309; $this->pos = $pos_310;
$_338 = NULL; $_339 = NULL;
do { do {
$res_311 = $result; $res_312 = $result;
$pos_311 = $this->pos; $pos_312 = $this->pos;
$matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_338 = TRUE; break; $_339 = TRUE; break;
} }
$result = $res_311; $result = $res_312;
$this->pos = $pos_311; $this->pos = $pos_312;
$_336 = NULL; $_337 = NULL;
do { do {
$res_313 = $result; $res_314 = $result;
$pos_313 = $this->pos; $pos_314 = $this->pos;
$matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_336 = TRUE; break; $_337 = TRUE; break;
} }
$result = $res_313; $result = $res_314;
$this->pos = $pos_313; $this->pos = $pos_314;
$_334 = NULL; $_335 = NULL;
do { do {
$res_315 = $result; $res_316 = $result;
$pos_315 = $this->pos; $pos_316 = $this->pos;
$matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_334 = TRUE; break; $_335 = TRUE; break;
} }
$result = $res_315; $result = $res_316;
$this->pos = $pos_315; $this->pos = $pos_316;
$_332 = NULL; $_333 = NULL;
do { do {
$res_317 = $result; $res_318 = $result;
$pos_317 = $this->pos; $pos_318 = $this->pos;
$matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_332 = TRUE; break; $_333 = TRUE; break;
} }
$result = $res_317; $result = $res_318;
$this->pos = $pos_317; $this->pos = $pos_318;
$_330 = NULL; $_331 = NULL;
do { do {
$res_319 = $result; $res_320 = $result;
$pos_319 = $this->pos; $pos_320 = $this->pos;
$matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_330 = TRUE; break; $_331 = TRUE; break;
} }
$result = $res_319; $result = $res_320;
$this->pos = $pos_319; $this->pos = $pos_320;
$_328 = NULL; $_329 = NULL;
do { do {
$res_321 = $result; $res_322 = $result;
$pos_321 = $this->pos; $pos_322 = $this->pos;
$matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_328 = TRUE; break; $_329 = TRUE; break;
} }
$result = $res_321; $result = $res_322;
$this->pos = $pos_321; $this->pos = $pos_322;
$_326 = NULL; $_327 = NULL;
do { do {
$res_323 = $result; $res_324 = $result;
$pos_323 = $this->pos; $pos_324 = $this->pos;
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_326 = TRUE; break; $_327 = TRUE; break;
} }
$result = $res_323; $result = $res_324;
$this->pos = $pos_323; $this->pos = $pos_324;
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_326 = TRUE; break; $_327 = TRUE; break;
} }
$result = $res_323; $result = $res_324;
$this->pos = $pos_323; $this->pos = $pos_324;
$_326 = FALSE; break; $_327 = FALSE; break;
} }
while(0); while(0);
if( $_326 === TRUE ) { $_328 = TRUE; break; } if( $_327 === TRUE ) { $_329 = TRUE; break; }
$result = $res_321; $result = $res_322;
$this->pos = $pos_321; $this->pos = $pos_322;
$_328 = FALSE; break; $_329 = FALSE; break;
} }
while(0); while(0);
if( $_328 === TRUE ) { $_330 = TRUE; break; } if( $_329 === TRUE ) { $_331 = TRUE; break; }
$result = $res_319; $result = $res_320;
$this->pos = $pos_319; $this->pos = $pos_320;
$_330 = FALSE; break; $_331 = FALSE; break;
} }
while(0); while(0);
if( $_330 === TRUE ) { $_332 = TRUE; break; } if( $_331 === TRUE ) { $_333 = TRUE; break; }
$result = $res_317; $result = $res_318;
$this->pos = $pos_317; $this->pos = $pos_318;
$_332 = FALSE; break; $_333 = FALSE; break;
} }
while(0); while(0);
if( $_332 === TRUE ) { $_334 = TRUE; break; } if( $_333 === TRUE ) { $_335 = TRUE; break; }
$result = $res_315; $result = $res_316;
$this->pos = $pos_315; $this->pos = $pos_316;
$_334 = FALSE; break; $_335 = FALSE; break;
} }
while(0); while(0);
if( $_334 === TRUE ) { $_336 = TRUE; break; } if( $_335 === TRUE ) { $_337 = TRUE; break; }
$result = $res_313; $result = $res_314;
$this->pos = $pos_313; $this->pos = $pos_314;
$_336 = FALSE; break; $_337 = FALSE; break;
} }
while(0); while(0);
if( $_336 === TRUE ) { $_338 = TRUE; break; } if( $_337 === TRUE ) { $_339 = TRUE; break; }
$result = $res_311; $result = $res_312;
$this->pos = $pos_311; $this->pos = $pos_312;
$_338 = FALSE; break; $_339 = FALSE; break;
} }
while(0); while(0);
if( $_338 === TRUE ) { $_340 = TRUE; break; } if( $_339 === TRUE ) { $_341 = TRUE; break; }
$result = $res_309; $result = $res_310;
$this->pos = $pos_309; $this->pos = $pos_310;
$_340 = FALSE; break; $_341 = FALSE; break;
} }
while(0); while(0);
if( $_340 === TRUE ) { $_342 = TRUE; break; } if( $_341 === TRUE ) { $_343 = TRUE; break; }
$result = $res_307; $result = $res_308;
$this->pos = $pos_307; $this->pos = $pos_308;
$_342 = FALSE; break; $_343 = FALSE; break;
} }
while(0); while(0);
if( $_342 === TRUE ) { $_344 = TRUE; break; } if( $_343 === TRUE ) { $_345 = TRUE; break; }
$result = $res_305; $result = $res_306;
$this->pos = $pos_305; $this->pos = $pos_306;
$_344 = FALSE; break; $_345 = FALSE; break;
} }
while(0); while(0);
if( $_344 === FALSE) { $_346 = FALSE; break; } if( $_345 === FALSE) { $_347 = FALSE; break; }
$_346 = TRUE; break; $_347 = TRUE; break;
} }
while(0); while(0);
if( $_346 === FALSE) { if( $_347 === FALSE) {
$result = $res_347; $result = $res_348;
$this->pos = $pos_347; $this->pos = $pos_348;
unset( $res_347 ); unset( $res_348 );
unset( $pos_347 ); unset( $pos_348 );
break; break;
} }
$count += 1; $count += 1;
@ -2261,63 +2273,63 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_UncachedBlock_typestack = array('UncachedBlock'); protected $match_UncachedBlock_typestack = array('UncachedBlock');
function match_UncachedBlock ($stack = array()) { function match_UncachedBlock ($stack = array()) {
$matchrule = "UncachedBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "UncachedBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_384 = NULL; $_385 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_352 = $result; $res_353 = $result;
$pos_352 = $this->pos; $pos_353 = $this->pos;
$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { else {
$result = $res_352; $result = $res_353;
$this->pos = $pos_352; $this->pos = $pos_353;
unset( $res_352 ); unset( $res_353 );
unset( $pos_352 ); unset( $pos_353 );
} }
$res_364 = $result; $res_365 = $result;
$pos_364 = $this->pos; $pos_365 = $this->pos;
$_363 = NULL; $_364 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$stack[] = $result; $result = $this->construct( $matchrule, "Conditional" ); $stack[] = $result; $result = $this->construct( $matchrule, "Conditional" );
$_359 = NULL; $_360 = NULL;
do { do {
$_357 = NULL; $_358 = NULL;
do { do {
$res_354 = $result; $res_355 = $result;
$pos_354 = $this->pos; $pos_355 = $this->pos;
if (( $subres = $this->literal( 'if' ) ) !== FALSE) { if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_357 = TRUE; break; $_358 = TRUE; break;
} }
$result = $res_354; $result = $res_355;
$this->pos = $pos_354; $this->pos = $pos_355;
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) { if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_357 = TRUE; break; $_358 = TRUE; break;
} }
$result = $res_354; $result = $res_355;
$this->pos = $pos_354; $this->pos = $pos_355;
$_357 = FALSE; break; $_358 = FALSE; break;
} }
while(0); while(0);
if( $_357 === FALSE) { $_359 = FALSE; break; } if( $_358 === FALSE) { $_360 = FALSE; break; }
$_359 = TRUE; break; $_360 = TRUE; break;
} }
while(0); while(0);
if( $_359 === TRUE ) { if( $_360 === TRUE ) {
$subres = $result; $result = array_pop($stack); $subres = $result; $result = array_pop($stack);
$this->store( $result, $subres, 'Conditional' ); $this->store( $result, $subres, 'Conditional' );
} }
if( $_359 === FALSE) { if( $_360 === FALSE) {
$result = array_pop($stack); $result = array_pop($stack);
$_363 = FALSE; break; $_364 = FALSE; break;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos;
@ -2325,87 +2337,87 @@ class SSTemplateParser extends Parser implements TemplateParser {
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Condition" ); $this->store( $result, $subres, "Condition" );
} }
else { $_363 = FALSE; break; } else { $_364 = FALSE; break; }
$_363 = TRUE; break; $_364 = TRUE; break;
} }
while(0); while(0);
if( $_363 === FALSE) { if( $_364 === FALSE) {
$result = $res_364; $result = $res_365;
$this->pos = $pos_364; $this->pos = $pos_365;
unset( $res_364 ); unset( $res_365 );
unset( $pos_364 ); unset( $pos_365 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
$res_367 = $result; $res_368 = $result;
$pos_367 = $this->pos; $pos_368 = $this->pos;
$matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos; $matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { else {
$result = $res_367; $result = $res_368;
$this->pos = $pos_367; $this->pos = $pos_368;
unset( $res_367 ); unset( $res_368 );
unset( $pos_367 ); unset( $pos_368 );
} }
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
$_380 = NULL; $_381 = NULL;
do { do {
$_378 = NULL; $_379 = NULL;
do { do {
$res_371 = $result; $res_372 = $result;
$pos_371 = $this->pos; $pos_372 = $this->pos;
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) { if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_378 = TRUE; break; $_379 = TRUE; break;
} }
$result = $res_371; $result = $res_372;
$this->pos = $pos_371; $this->pos = $pos_372;
$_376 = NULL; $_377 = NULL;
do { do {
$res_373 = $result; $res_374 = $result;
$pos_373 = $this->pos; $pos_374 = $this->pos;
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) { if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_376 = TRUE; break; $_377 = TRUE; break;
} }
$result = $res_373; $result = $res_374;
$this->pos = $pos_373; $this->pos = $pos_374;
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) { if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_376 = TRUE; break; $_377 = TRUE; break;
} }
$result = $res_373; $result = $res_374;
$this->pos = $pos_373; $this->pos = $pos_374;
$_376 = FALSE; break; $_377 = FALSE; break;
} }
while(0); while(0);
if( $_376 === TRUE ) { $_378 = TRUE; break; } if( $_377 === TRUE ) { $_379 = TRUE; break; }
$result = $res_371; $result = $res_372;
$this->pos = $pos_371; $this->pos = $pos_372;
$_378 = FALSE; break; $_379 = FALSE; break;
} }
while(0); while(0);
if( $_378 === FALSE) { $_380 = FALSE; break; } if( $_379 === FALSE) { $_381 = FALSE; break; }
$_380 = TRUE; break; $_381 = TRUE; break;
} }
while(0); while(0);
if( $_380 === FALSE) { $_384 = FALSE; break; } if( $_381 === FALSE) { $_385 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_384 = FALSE; break; } else { $_385 = FALSE; break; }
$_384 = TRUE; break; $_385 = TRUE; break;
} }
while(0); while(0);
if( $_384 === TRUE ) { return $this->finalise($result); } if( $_385 === TRUE ) { return $this->finalise($result); }
if( $_384 === FALSE) { return FALSE; } if( $_385 === FALSE) { return FALSE; }
} }
@ -2421,240 +2433,240 @@ class SSTemplateParser extends Parser implements TemplateParser {
$matchrule = "CacheRestrictedTemplate"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "CacheRestrictedTemplate"; $result = $this->construct($matchrule, $matchrule, null);
$count = 0; $count = 0;
while (true) { while (true) {
$res_436 = $result; $res_437 = $result;
$pos_436 = $this->pos; $pos_437 = $this->pos;
$_435 = NULL; $_436 = NULL;
do { do {
$_433 = NULL; $_434 = NULL;
do { do {
$res_386 = $result; $res_387 = $result;
$pos_386 = $this->pos; $pos_387 = $this->pos;
$matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_433 = TRUE; break; $_434 = TRUE; break;
} }
$result = $res_386; $result = $res_387;
$this->pos = $pos_386; $this->pos = $pos_387;
$_431 = NULL; $_432 = NULL;
do { do {
$res_388 = $result; $res_389 = $result;
$pos_388 = $this->pos; $pos_389 = $this->pos;
$matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_431 = TRUE; break; $_432 = TRUE; break;
} }
$result = $res_388; $result = $res_389;
$this->pos = $pos_388; $this->pos = $pos_389;
$_429 = NULL; $_430 = NULL;
do { do {
$res_390 = $result; $res_391 = $result;
$pos_390 = $this->pos; $pos_391 = $this->pos;
$matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_429 = TRUE; break; $_430 = TRUE; break;
} }
$result = $res_390; $result = $res_391;
$this->pos = $pos_390; $this->pos = $pos_391;
$_427 = NULL; $_428 = NULL;
do { do {
$res_392 = $result; $res_393 = $result;
$pos_392 = $this->pos; $pos_393 = $this->pos;
$matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_427 = TRUE; break; $_428 = TRUE; break;
} }
$result = $res_392; $result = $res_393;
$this->pos = $pos_392; $this->pos = $pos_393;
$_425 = NULL; $_426 = NULL;
do { do {
$res_394 = $result; $res_395 = $result;
$pos_394 = $this->pos; $pos_395 = $this->pos;
$matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_425 = TRUE; break; $_426 = TRUE; break;
} }
$result = $res_394; $result = $res_395;
$this->pos = $pos_394; $this->pos = $pos_395;
$_423 = NULL; $_424 = NULL;
do { do {
$res_396 = $result; $res_397 = $result;
$pos_396 = $this->pos; $pos_397 = $this->pos;
$matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_423 = TRUE; break; $_424 = TRUE; break;
} }
$result = $res_396; $result = $res_397;
$this->pos = $pos_396; $this->pos = $pos_397;
$_421 = NULL; $_422 = NULL;
do { do {
$res_398 = $result; $res_399 = $result;
$pos_398 = $this->pos; $pos_399 = $this->pos;
$matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_421 = TRUE; break; $_422 = TRUE; break;
} }
$result = $res_398; $result = $res_399;
$this->pos = $pos_398; $this->pos = $pos_399;
$_419 = NULL; $_420 = NULL;
do { do {
$res_400 = $result; $res_401 = $result;
$pos_400 = $this->pos; $pos_401 = $this->pos;
$matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_419 = TRUE; break; $_420 = TRUE; break;
} }
$result = $res_400; $result = $res_401;
$this->pos = $pos_400; $this->pos = $pos_401;
$_417 = NULL; $_418 = NULL;
do { do {
$res_402 = $result; $res_403 = $result;
$pos_402 = $this->pos; $pos_403 = $this->pos;
$matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_417 = TRUE; break; $_418 = TRUE; break;
} }
$result = $res_402; $result = $res_403;
$this->pos = $pos_402; $this->pos = $pos_403;
$_415 = NULL; $_416 = NULL;
do { do {
$res_404 = $result; $res_405 = $result;
$pos_404 = $this->pos; $pos_405 = $this->pos;
$matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_415 = TRUE; break; $_416 = TRUE; break;
} }
$result = $res_404; $result = $res_405;
$this->pos = $pos_404; $this->pos = $pos_405;
$_413 = NULL; $_414 = NULL;
do { do {
$res_406 = $result; $res_407 = $result;
$pos_406 = $this->pos; $pos_407 = $this->pos;
$matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_413 = TRUE; break; $_414 = TRUE; break;
} }
$result = $res_406; $result = $res_407;
$this->pos = $pos_406; $this->pos = $pos_407;
$_411 = NULL; $_412 = NULL;
do { do {
$res_408 = $result; $res_409 = $result;
$pos_408 = $this->pos; $pos_409 = $this->pos;
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_411 = TRUE; break; $_412 = TRUE; break;
} }
$result = $res_408; $result = $res_409;
$this->pos = $pos_408; $this->pos = $pos_409;
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_411 = TRUE; break; $_412 = TRUE; break;
} }
$result = $res_408; $result = $res_409;
$this->pos = $pos_408; $this->pos = $pos_409;
$_411 = FALSE; break; $_412 = FALSE; break;
} }
while(0); while(0);
if( $_411 === TRUE ) { $_413 = TRUE; break; } if( $_412 === TRUE ) { $_414 = TRUE; break; }
$result = $res_406; $result = $res_407;
$this->pos = $pos_406; $this->pos = $pos_407;
$_413 = FALSE; break; $_414 = FALSE; break;
} }
while(0); while(0);
if( $_413 === TRUE ) { $_415 = TRUE; break; } if( $_414 === TRUE ) { $_416 = TRUE; break; }
$result = $res_404; $result = $res_405;
$this->pos = $pos_404; $this->pos = $pos_405;
$_415 = FALSE; break; $_416 = FALSE; break;
} }
while(0); while(0);
if( $_415 === TRUE ) { $_417 = TRUE; break; } if( $_416 === TRUE ) { $_418 = TRUE; break; }
$result = $res_402; $result = $res_403;
$this->pos = $pos_402; $this->pos = $pos_403;
$_417 = FALSE; break; $_418 = FALSE; break;
} }
while(0); while(0);
if( $_417 === TRUE ) { $_419 = TRUE; break; } if( $_418 === TRUE ) { $_420 = TRUE; break; }
$result = $res_400; $result = $res_401;
$this->pos = $pos_400; $this->pos = $pos_401;
$_419 = FALSE; break; $_420 = FALSE; break;
} }
while(0); while(0);
if( $_419 === TRUE ) { $_421 = TRUE; break; } if( $_420 === TRUE ) { $_422 = TRUE; break; }
$result = $res_398; $result = $res_399;
$this->pos = $pos_398; $this->pos = $pos_399;
$_421 = FALSE; break; $_422 = FALSE; break;
} }
while(0); while(0);
if( $_421 === TRUE ) { $_423 = TRUE; break; } if( $_422 === TRUE ) { $_424 = TRUE; break; }
$result = $res_396; $result = $res_397;
$this->pos = $pos_396; $this->pos = $pos_397;
$_423 = FALSE; break; $_424 = FALSE; break;
} }
while(0); while(0);
if( $_423 === TRUE ) { $_425 = TRUE; break; } if( $_424 === TRUE ) { $_426 = TRUE; break; }
$result = $res_394; $result = $res_395;
$this->pos = $pos_394; $this->pos = $pos_395;
$_425 = FALSE; break; $_426 = FALSE; break;
} }
while(0); while(0);
if( $_425 === TRUE ) { $_427 = TRUE; break; } if( $_426 === TRUE ) { $_428 = TRUE; break; }
$result = $res_392; $result = $res_393;
$this->pos = $pos_392; $this->pos = $pos_393;
$_427 = FALSE; break; $_428 = FALSE; break;
} }
while(0); while(0);
if( $_427 === TRUE ) { $_429 = TRUE; break; } if( $_428 === TRUE ) { $_430 = TRUE; break; }
$result = $res_390; $result = $res_391;
$this->pos = $pos_390; $this->pos = $pos_391;
$_429 = FALSE; break; $_430 = FALSE; break;
} }
while(0); while(0);
if( $_429 === TRUE ) { $_431 = TRUE; break; } if( $_430 === TRUE ) { $_432 = TRUE; break; }
$result = $res_388; $result = $res_389;
$this->pos = $pos_388; $this->pos = $pos_389;
$_431 = FALSE; break; $_432 = FALSE; break;
} }
while(0); while(0);
if( $_431 === TRUE ) { $_433 = TRUE; break; } if( $_432 === TRUE ) { $_434 = TRUE; break; }
$result = $res_386; $result = $res_387;
$this->pos = $pos_386; $this->pos = $pos_387;
$_433 = FALSE; break; $_434 = FALSE; break;
} }
while(0); while(0);
if( $_433 === FALSE) { $_435 = FALSE; break; } if( $_434 === FALSE) { $_436 = FALSE; break; }
$_435 = TRUE; break; $_436 = TRUE; break;
} }
while(0); while(0);
if( $_435 === FALSE) { if( $_436 === FALSE) {
$result = $res_436; $result = $res_437;
$this->pos = $pos_436; $this->pos = $pos_437;
unset( $res_436 ); unset( $res_437 );
unset( $pos_436 ); unset( $pos_437 );
break; break;
} }
$count += 1; $count += 1;
@ -2683,101 +2695,101 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_CacheBlock_typestack = array('CacheBlock'); protected $match_CacheBlock_typestack = array('CacheBlock');
function match_CacheBlock ($stack = array()) { function match_CacheBlock ($stack = array()) {
$matchrule = "CacheBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "CacheBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_491 = NULL; $_492 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_491 = FALSE; break; } else { $_492 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$stack[] = $result; $result = $this->construct( $matchrule, "CacheTag" ); $stack[] = $result; $result = $this->construct( $matchrule, "CacheTag" );
$_444 = NULL; $_445 = NULL;
do { do {
$_442 = NULL; $_443 = NULL;
do { do {
$res_439 = $result; $res_440 = $result;
$pos_439 = $this->pos; $pos_440 = $this->pos;
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) { if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_442 = TRUE; break; $_443 = TRUE; break;
} }
$result = $res_439; $result = $res_440;
$this->pos = $pos_439; $this->pos = $pos_440;
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) { if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_442 = TRUE; break; $_443 = TRUE; break;
} }
$result = $res_439; $result = $res_440;
$this->pos = $pos_439; $this->pos = $pos_440;
$_442 = FALSE; break; $_443 = FALSE; break;
} }
while(0); while(0);
if( $_442 === FALSE) { $_444 = FALSE; break; } if( $_443 === FALSE) { $_445 = FALSE; break; }
$_444 = TRUE; break; $_445 = TRUE; break;
} }
while(0); while(0);
if( $_444 === TRUE ) { if( $_445 === TRUE ) {
$subres = $result; $result = array_pop($stack); $subres = $result; $result = array_pop($stack);
$this->store( $result, $subres, 'CacheTag' ); $this->store( $result, $subres, 'CacheTag' );
} }
if( $_444 === FALSE) { if( $_445 === FALSE) {
$result = array_pop($stack); $result = array_pop($stack);
$_491 = FALSE; break; $_492 = FALSE; break;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_449 = $result; $res_450 = $result;
$pos_449 = $this->pos; $pos_450 = $this->pos;
$_448 = NULL; $_449 = NULL;
do { do {
$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_448 = FALSE; break; } else { $_449 = FALSE; break; }
$_448 = TRUE; break; $_449 = TRUE; break;
} }
while(0); while(0);
if( $_448 === FALSE) { if( $_449 === FALSE) {
$result = $res_449; $result = $res_450;
$this->pos = $pos_449; $this->pos = $pos_450;
unset( $res_449 ); unset( $res_450 );
unset( $pos_449 ); unset( $pos_450 );
} }
$res_461 = $result; $res_462 = $result;
$pos_461 = $this->pos; $pos_462 = $this->pos;
$_460 = NULL; $_461 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$stack[] = $result; $result = $this->construct( $matchrule, "Conditional" ); $stack[] = $result; $result = $this->construct( $matchrule, "Conditional" );
$_456 = NULL; $_457 = NULL;
do { do {
$_454 = NULL; $_455 = NULL;
do { do {
$res_451 = $result; $res_452 = $result;
$pos_451 = $this->pos; $pos_452 = $this->pos;
if (( $subres = $this->literal( 'if' ) ) !== FALSE) { if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_454 = TRUE; break; $_455 = TRUE; break;
} }
$result = $res_451; $result = $res_452;
$this->pos = $pos_451; $this->pos = $pos_452;
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) { if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_454 = TRUE; break; $_455 = TRUE; break;
} }
$result = $res_451; $result = $res_452;
$this->pos = $pos_451; $this->pos = $pos_452;
$_454 = FALSE; break; $_455 = FALSE; break;
} }
while(0); while(0);
if( $_454 === FALSE) { $_456 = FALSE; break; } if( $_455 === FALSE) { $_457 = FALSE; break; }
$_456 = TRUE; break; $_457 = TRUE; break;
} }
while(0); while(0);
if( $_456 === TRUE ) { if( $_457 === TRUE ) {
$subres = $result; $result = array_pop($stack); $subres = $result; $result = array_pop($stack);
$this->store( $result, $subres, 'Conditional' ); $this->store( $result, $subres, 'Conditional' );
} }
if( $_456 === FALSE) { if( $_457 === FALSE) {
$result = array_pop($stack); $result = array_pop($stack);
$_460 = FALSE; break; $_461 = FALSE; break;
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'IfArgument'; $key = $matcher; $pos = $this->pos;
@ -2785,132 +2797,132 @@ class SSTemplateParser extends Parser implements TemplateParser {
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Condition" ); $this->store( $result, $subres, "Condition" );
} }
else { $_460 = FALSE; break; } else { $_461 = FALSE; break; }
$_460 = TRUE; break; $_461 = TRUE; break;
} }
while(0); while(0);
if( $_460 === FALSE) { if( $_461 === FALSE) {
$result = $res_461; $result = $res_462;
$this->pos = $pos_461; $this->pos = $pos_462;
unset( $res_461 ); unset( $res_462 );
unset( $pos_461 ); unset( $pos_462 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_491 = FALSE; break; } else { $_492 = FALSE; break; }
while (true) { while (true) {
$res_474 = $result; $res_475 = $result;
$pos_474 = $this->pos; $pos_475 = $this->pos;
$_473 = NULL; $_474 = NULL;
do { do {
$_471 = NULL; $_472 = NULL;
do { do {
$res_464 = $result; $res_465 = $result;
$pos_464 = $this->pos; $pos_465 = $this->pos;
$matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_471 = TRUE; break; $_472 = TRUE; break;
} }
$result = $res_464; $result = $res_465;
$this->pos = $pos_464; $this->pos = $pos_465;
$_469 = NULL; $_470 = NULL;
do { do {
$res_466 = $result; $res_467 = $result;
$pos_466 = $this->pos; $pos_467 = $this->pos;
$matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_469 = TRUE; break; $_470 = TRUE; break;
} }
$result = $res_466; $result = $res_467;
$this->pos = $pos_466; $this->pos = $pos_467;
$matcher = 'match_'.'CacheBlockTemplate'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlockTemplate'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_469 = TRUE; break; $_470 = TRUE; break;
} }
$result = $res_466; $result = $res_467;
$this->pos = $pos_466; $this->pos = $pos_467;
$_469 = FALSE; break; $_470 = FALSE; break;
} }
while(0); while(0);
if( $_469 === TRUE ) { $_471 = TRUE; break; } if( $_470 === TRUE ) { $_472 = TRUE; break; }
$result = $res_464; $result = $res_465;
$this->pos = $pos_464; $this->pos = $pos_465;
$_471 = FALSE; break; $_472 = FALSE; break;
} }
while(0); while(0);
if( $_471 === FALSE) { $_473 = FALSE; break; } if( $_472 === FALSE) { $_474 = FALSE; break; }
$_473 = TRUE; break; $_474 = TRUE; break;
} }
while(0); while(0);
if( $_473 === FALSE) { if( $_474 === FALSE) {
$result = $res_474; $result = $res_475;
$this->pos = $pos_474; $this->pos = $pos_475;
unset( $res_474 ); unset( $res_475 );
unset( $pos_474 ); unset( $pos_475 );
break; break;
} }
} }
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_491 = FALSE; break; } else { $_492 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_491 = FALSE; break; } else { $_492 = FALSE; break; }
$_487 = NULL; $_488 = NULL;
do { do {
$_485 = NULL; $_486 = NULL;
do { do {
$res_478 = $result; $res_479 = $result;
$pos_478 = $this->pos; $pos_479 = $this->pos;
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) { if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_485 = TRUE; break; $_486 = TRUE; break;
} }
$result = $res_478; $result = $res_479;
$this->pos = $pos_478; $this->pos = $pos_479;
$_483 = NULL; $_484 = NULL;
do { do {
$res_480 = $result; $res_481 = $result;
$pos_480 = $this->pos; $pos_481 = $this->pos;
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) { if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_483 = TRUE; break; $_484 = TRUE; break;
} }
$result = $res_480; $result = $res_481;
$this->pos = $pos_480; $this->pos = $pos_481;
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) { if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_483 = TRUE; break; $_484 = TRUE; break;
} }
$result = $res_480; $result = $res_481;
$this->pos = $pos_480; $this->pos = $pos_481;
$_483 = FALSE; break; $_484 = FALSE; break;
} }
while(0); while(0);
if( $_483 === TRUE ) { $_485 = TRUE; break; } if( $_484 === TRUE ) { $_486 = TRUE; break; }
$result = $res_478; $result = $res_479;
$this->pos = $pos_478; $this->pos = $pos_479;
$_485 = FALSE; break; $_486 = FALSE; break;
} }
while(0); while(0);
if( $_485 === FALSE) { $_487 = FALSE; break; } if( $_486 === FALSE) { $_488 = FALSE; break; }
$_487 = TRUE; break; $_488 = TRUE; break;
} }
while(0); while(0);
if( $_487 === FALSE) { $_491 = FALSE; break; } if( $_488 === FALSE) { $_492 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_491 = FALSE; break; } else { $_492 = FALSE; break; }
$_491 = TRUE; break; $_492 = TRUE; break;
} }
while(0); while(0);
if( $_491 === TRUE ) { return $this->finalise($result); } if( $_492 === TRUE ) { return $this->finalise($result); }
if( $_491 === FALSE) { return FALSE; } if( $_492 === FALSE) { return FALSE; }
} }
@ -2971,93 +2983,93 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_OldTPart_typestack = array('OldTPart'); protected $match_OldTPart_typestack = array('OldTPart');
function match_OldTPart ($stack = array()) { function match_OldTPart ($stack = array()) {
$matchrule = "OldTPart"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "OldTPart"; $result = $this->construct($matchrule, $matchrule, null);
$_510 = NULL; $_511 = NULL;
do { do {
if (( $subres = $this->literal( '_t' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '_t' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '(') { if (substr($this->string,$this->pos,1) == '(') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '('; $result["text"] .= '(';
} }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$res_503 = $result; $res_504 = $result;
$pos_503 = $this->pos; $pos_504 = $this->pos;
$_502 = NULL; $_503 = NULL;
do { do {
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_502 = FALSE; break; } else { $_503 = FALSE; break; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_502 = FALSE; break; } else { $_503 = FALSE; break; }
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_502 = FALSE; break; } else { $_503 = FALSE; break; }
$matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_502 = FALSE; break; } else { $_503 = FALSE; break; }
$_502 = TRUE; break; $_503 = TRUE; break;
} }
while(0); while(0);
if( $_502 === FALSE) { if( $_503 === FALSE) {
$result = $res_503; $result = $res_504;
$this->pos = $pos_503; $this->pos = $pos_504;
unset( $res_503 ); unset( $res_504 );
unset( $pos_503 ); unset( $pos_504 );
} }
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
if (substr($this->string,$this->pos,1) == ')') { if (substr($this->string,$this->pos,1) == ')') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ')'; $result["text"] .= ')';
} }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'N'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_510 = FALSE; break; } else { $_511 = FALSE; break; }
$res_509 = $result; $res_510 = $result;
$pos_509 = $this->pos; $pos_510 = $this->pos;
$_508 = NULL; $_509 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == ';') { if (substr($this->string,$this->pos,1) == ';') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ';'; $result["text"] .= ';';
} }
else { $_508 = FALSE; break; } else { $_509 = FALSE; break; }
$_508 = TRUE; break; $_509 = TRUE; break;
} }
while(0); while(0);
if( $_508 === FALSE) { if( $_509 === FALSE) {
$result = $res_509; $result = $res_510;
$this->pos = $pos_509; $this->pos = $pos_510;
unset( $res_509 ); unset( $res_510 );
unset( $pos_509 ); unset( $pos_510 );
} }
$_510 = TRUE; break; $_511 = TRUE; break;
} }
while(0); while(0);
if( $_510 === TRUE ) { return $this->finalise($result); } if( $_511 === TRUE ) { return $this->finalise($result); }
if( $_510 === FALSE) { return FALSE; } if( $_511 === FALSE) { return FALSE; }
} }
@ -3100,23 +3112,23 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_OldTTag_typestack = array('OldTTag'); protected $match_OldTTag_typestack = array('OldTTag');
function match_OldTTag ($stack = array()) { function match_OldTTag ($stack = array()) {
$matchrule = "OldTTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "OldTTag"; $result = $this->construct($matchrule, $matchrule, null);
$_518 = NULL; $_519 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_518 = FALSE; break; } else { $_519 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'OldTPart'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldTPart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_518 = FALSE; break; } else { $_519 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_518 = FALSE; break; } else { $_519 = FALSE; break; }
$_518 = TRUE; break; $_519 = TRUE; break;
} }
while(0); while(0);
if( $_518 === TRUE ) { return $this->finalise($result); } if( $_519 === TRUE ) { return $this->finalise($result); }
if( $_518 === FALSE) { return FALSE; } if( $_519 === FALSE) { return FALSE; }
} }
@ -3129,49 +3141,49 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_OldSprintfTag_typestack = array('OldSprintfTag'); protected $match_OldSprintfTag_typestack = array('OldSprintfTag');
function match_OldSprintfTag ($stack = array()) { function match_OldSprintfTag ($stack = array()) {
$matchrule = "OldSprintfTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "OldSprintfTag"; $result = $this->construct($matchrule, $matchrule, null);
$_535 = NULL; $_536 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'sprintf' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'sprintf' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == '(') { if (substr($this->string,$this->pos,1) == '(') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '('; $result["text"] .= '(';
} }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'OldTPart'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldTPart'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CallArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ')') { if (substr($this->string,$this->pos,1) == ')') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ')'; $result["text"] .= ')';
} }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_535 = FALSE; break; } else { $_536 = FALSE; break; }
$_535 = TRUE; break; $_536 = TRUE; break;
} }
while(0); while(0);
if( $_535 === TRUE ) { return $this->finalise($result); } if( $_536 === TRUE ) { return $this->finalise($result); }
if( $_535 === FALSE) { return FALSE; } if( $_536 === FALSE) { return FALSE; }
} }
@ -3192,31 +3204,31 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_OldI18NTag_typestack = array('OldI18NTag'); protected $match_OldI18NTag_typestack = array('OldI18NTag');
function match_OldI18NTag ($stack = array()) { function match_OldI18NTag ($stack = array()) {
$matchrule = "OldI18NTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "OldI18NTag"; $result = $this->construct($matchrule, $matchrule, null);
$_540 = NULL; $_541 = NULL;
do { do {
$res_537 = $result; $res_538 = $result;
$pos_537 = $this->pos; $pos_538 = $this->pos;
$matcher = 'match_'.'OldSprintfTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldSprintfTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_540 = TRUE; break; $_541 = TRUE; break;
} }
$result = $res_537; $result = $res_538;
$this->pos = $pos_537; $this->pos = $pos_538;
$matcher = 'match_'.'OldTTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldTTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_540 = TRUE; break; $_541 = TRUE; break;
} }
$result = $res_537; $result = $res_538;
$this->pos = $pos_537; $this->pos = $pos_538;
$_540 = FALSE; break; $_541 = FALSE; break;
} }
while(0); while(0);
if( $_540 === TRUE ) { return $this->finalise($result); } if( $_541 === TRUE ) { return $this->finalise($result); }
if( $_540 === FALSE) { return FALSE; } if( $_541 === FALSE) { return FALSE; }
} }
@ -3229,30 +3241,30 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_NamedArgument_typestack = array('NamedArgument'); protected $match_NamedArgument_typestack = array('NamedArgument');
function match_NamedArgument ($stack = array()) { function match_NamedArgument ($stack = array()) {
$matchrule = "NamedArgument"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "NamedArgument"; $result = $this->construct($matchrule, $matchrule, null);
$_545 = NULL; $_546 = NULL;
do { do {
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Name" ); $this->store( $result, $subres, "Name" );
} }
else { $_545 = FALSE; break; } else { $_546 = FALSE; break; }
if (substr($this->string,$this->pos,1) == '=') { if (substr($this->string,$this->pos,1) == '=') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '='; $result["text"] .= '=';
} }
else { $_545 = FALSE; break; } else { $_546 = FALSE; break; }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Value" ); $this->store( $result, $subres, "Value" );
} }
else { $_545 = FALSE; break; } else { $_546 = FALSE; break; }
$_545 = TRUE; break; $_546 = TRUE; break;
} }
while(0); while(0);
if( $_545 === TRUE ) { return $this->finalise($result); } if( $_546 === TRUE ) { return $this->finalise($result); }
if( $_545 === FALSE) { return FALSE; } if( $_546 === FALSE) { return FALSE; }
} }
@ -3277,79 +3289,79 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
} }
/* Include: "<%" < "include" < Template:Word < (NamedArgument ( < "," < NamedArgument )*)? > "%>" */ /* Include: "<%" < "include" < Template:NamespacedWord < (NamedArgument ( < "," < NamedArgument )*)? > "%>" */
protected $match_Include_typestack = array('Include'); protected $match_Include_typestack = array('Include');
function match_Include ($stack = array()) { function match_Include ($stack = array()) {
$matchrule = "Include"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Include"; $result = $this->construct($matchrule, $matchrule, null);
$_564 = NULL; $_565 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_564 = FALSE; break; } else { $_565 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'include' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'include' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_564 = FALSE; break; } else { $_565 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NamespacedWord'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { $_564 = FALSE; break; } else { $_565 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_561 = $result; $res_562 = $result;
$pos_561 = $this->pos; $pos_562 = $this->pos;
$_560 = NULL; $_561 = NULL;
do { do {
$matcher = 'match_'.'NamedArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NamedArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { $this->store( $result, $subres ); } if ($subres !== FALSE) { $this->store( $result, $subres ); }
else { $_560 = FALSE; break; } else { $_561 = FALSE; break; }
while (true) { while (true) {
$res_559 = $result; $res_560 = $result;
$pos_559 = $this->pos; $pos_560 = $this->pos;
$_558 = NULL; $_559 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_558 = FALSE; break; } else { $_559 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'NamedArgument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NamedArgument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
} }
else { $_558 = FALSE; break; } else { $_559 = FALSE; break; }
$_558 = TRUE; break; $_559 = TRUE; break;
} }
while(0); while(0);
if( $_558 === FALSE) { if( $_559 === FALSE) {
$result = $res_559; $result = $res_560;
$this->pos = $pos_559; $this->pos = $pos_560;
unset( $res_559 ); unset( $res_560 );
unset( $pos_559 ); unset( $pos_560 );
break; break;
} }
} }
$_560 = TRUE; break; $_561 = TRUE; break;
} }
while(0); while(0);
if( $_560 === FALSE) { if( $_561 === FALSE) {
$result = $res_561; $result = $res_562;
$this->pos = $pos_561; $this->pos = $pos_562;
unset( $res_561 ); unset( $res_562 );
unset( $pos_561 ); unset( $pos_562 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_564 = FALSE; break; } else { $_565 = FALSE; break; }
$_564 = TRUE; break; $_565 = TRUE; break;
} }
while(0); while(0);
if( $_564 === TRUE ) { return $this->finalise($result); } if( $_565 === TRUE ) { return $this->finalise($result); }
if( $_564 === FALSE) { return FALSE; } if( $_565 === FALSE) { return FALSE; }
} }
@ -3385,48 +3397,48 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_BlockArguments_typestack = array('BlockArguments'); protected $match_BlockArguments_typestack = array('BlockArguments');
function match_BlockArguments ($stack = array()) { function match_BlockArguments ($stack = array()) {
$matchrule = "BlockArguments"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "BlockArguments"; $result = $this->construct($matchrule, $matchrule, null);
$_573 = NULL; $_574 = NULL;
do { do {
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Argument" ); $this->store( $result, $subres, "Argument" );
} }
else { $_573 = FALSE; break; } else { $_574 = FALSE; break; }
while (true) { while (true) {
$res_572 = $result; $res_573 = $result;
$pos_572 = $this->pos; $pos_573 = $this->pos;
$_571 = NULL; $_572 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (substr($this->string,$this->pos,1) == ',') { if (substr($this->string,$this->pos,1) == ',') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= ','; $result["text"] .= ',';
} }
else { $_571 = FALSE; break; } else { $_572 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Argument'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Argument" ); $this->store( $result, $subres, "Argument" );
} }
else { $_571 = FALSE; break; } else { $_572 = FALSE; break; }
$_571 = TRUE; break; $_572 = TRUE; break;
} }
while(0); while(0);
if( $_571 === FALSE) { if( $_572 === FALSE) {
$result = $res_572; $result = $res_573;
$this->pos = $pos_572; $this->pos = $pos_573;
unset( $res_572 ); unset( $res_573 );
unset( $pos_572 ); unset( $pos_573 );
break; break;
} }
} }
$_573 = TRUE; break; $_574 = TRUE; break;
} }
while(0); while(0);
if( $_573 === TRUE ) { return $this->finalise($result); } if( $_574 === TRUE ) { return $this->finalise($result); }
if( $_573 === FALSE) { return FALSE; } if( $_574 === FALSE) { return FALSE; }
} }
@ -3434,153 +3446,153 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_NotBlockTag_typestack = array('NotBlockTag'); protected $match_NotBlockTag_typestack = array('NotBlockTag');
function match_NotBlockTag ($stack = array()) { function match_NotBlockTag ($stack = array()) {
$matchrule = "NotBlockTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "NotBlockTag"; $result = $this->construct($matchrule, $matchrule, null);
$_611 = NULL; $_612 = NULL;
do { do {
$res_575 = $result; $res_576 = $result;
$pos_575 = $this->pos; $pos_576 = $this->pos;
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { if (( $subres = $this->literal( 'end_' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_611 = TRUE; break; $_612 = TRUE; break;
} }
$result = $res_575; $result = $res_576;
$this->pos = $pos_575; $this->pos = $pos_576;
$_609 = NULL; $_610 = NULL;
do { do {
$_606 = NULL; $_607 = NULL;
do { do {
$_604 = NULL; $_605 = NULL;
do { do {
$res_577 = $result; $res_578 = $result;
$pos_577 = $this->pos; $pos_578 = $this->pos;
if (( $subres = $this->literal( 'if' ) ) !== FALSE) { if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_604 = TRUE; break; $_605 = TRUE; break;
} }
$result = $res_577; $result = $res_578;
$this->pos = $pos_577; $this->pos = $pos_578;
$_602 = NULL; $_603 = NULL;
do { do {
$res_579 = $result; $res_580 = $result;
$pos_579 = $this->pos; $pos_580 = $this->pos;
if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) { if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_602 = TRUE; break; $_603 = TRUE; break;
} }
$result = $res_579; $result = $res_580;
$this->pos = $pos_579; $this->pos = $pos_580;
$_600 = NULL; $_601 = NULL;
do { do {
$res_581 = $result; $res_582 = $result;
$pos_581 = $this->pos; $pos_582 = $this->pos;
if (( $subres = $this->literal( 'else' ) ) !== FALSE) { if (( $subres = $this->literal( 'else' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_600 = TRUE; break; $_601 = TRUE; break;
} }
$result = $res_581; $result = $res_582;
$this->pos = $pos_581; $this->pos = $pos_582;
$_598 = NULL; $_599 = NULL;
do { do {
$res_583 = $result; $res_584 = $result;
$pos_583 = $this->pos; $pos_584 = $this->pos;
if (( $subres = $this->literal( 'require' ) ) !== FALSE) { if (( $subres = $this->literal( 'require' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_598 = TRUE; break; $_599 = TRUE; break;
} }
$result = $res_583; $result = $res_584;
$this->pos = $pos_583; $this->pos = $pos_584;
$_596 = NULL; $_597 = NULL;
do { do {
$res_585 = $result; $res_586 = $result;
$pos_585 = $this->pos; $pos_586 = $this->pos;
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) { if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_596 = TRUE; break; $_597 = TRUE; break;
} }
$result = $res_585; $result = $res_586;
$this->pos = $pos_585; $this->pos = $pos_586;
$_594 = NULL; $_595 = NULL;
do { do {
$res_587 = $result; $res_588 = $result;
$pos_587 = $this->pos; $pos_588 = $this->pos;
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) { if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_594 = TRUE; break; $_595 = TRUE; break;
} }
$result = $res_587; $result = $res_588;
$this->pos = $pos_587; $this->pos = $pos_588;
$_592 = NULL; $_593 = NULL;
do { do {
$res_589 = $result; $res_590 = $result;
$pos_589 = $this->pos; $pos_590 = $this->pos;
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) { if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_592 = TRUE; break; $_593 = TRUE; break;
} }
$result = $res_589; $result = $res_590;
$this->pos = $pos_589; $this->pos = $pos_590;
if (( $subres = $this->literal( 'include' ) ) !== FALSE) { if (( $subres = $this->literal( 'include' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_592 = TRUE; break; $_593 = TRUE; break;
} }
$result = $res_589; $result = $res_590;
$this->pos = $pos_589; $this->pos = $pos_590;
$_592 = FALSE; break; $_593 = FALSE; break;
} }
while(0); while(0);
if( $_592 === TRUE ) { $_594 = TRUE; break; } if( $_593 === TRUE ) { $_595 = TRUE; break; }
$result = $res_587; $result = $res_588;
$this->pos = $pos_587; $this->pos = $pos_588;
$_594 = FALSE; break; $_595 = FALSE; break;
} }
while(0); while(0);
if( $_594 === TRUE ) { $_596 = TRUE; break; } if( $_595 === TRUE ) { $_597 = TRUE; break; }
$result = $res_585; $result = $res_586;
$this->pos = $pos_585; $this->pos = $pos_586;
$_596 = FALSE; break; $_597 = FALSE; break;
} }
while(0); while(0);
if( $_596 === TRUE ) { $_598 = TRUE; break; } if( $_597 === TRUE ) { $_599 = TRUE; break; }
$result = $res_583; $result = $res_584;
$this->pos = $pos_583; $this->pos = $pos_584;
$_598 = FALSE; break; $_599 = FALSE; break;
} }
while(0); while(0);
if( $_598 === TRUE ) { $_600 = TRUE; break; } if( $_599 === TRUE ) { $_601 = TRUE; break; }
$result = $res_581; $result = $res_582;
$this->pos = $pos_581; $this->pos = $pos_582;
$_600 = FALSE; break; $_601 = FALSE; break;
} }
while(0); while(0);
if( $_600 === TRUE ) { $_602 = TRUE; break; } if( $_601 === TRUE ) { $_603 = TRUE; break; }
$result = $res_579; $result = $res_580;
$this->pos = $pos_579; $this->pos = $pos_580;
$_602 = FALSE; break; $_603 = FALSE; break;
} }
while(0); while(0);
if( $_602 === TRUE ) { $_604 = TRUE; break; } if( $_603 === TRUE ) { $_605 = TRUE; break; }
$result = $res_577; $result = $res_578;
$this->pos = $pos_577; $this->pos = $pos_578;
$_604 = FALSE; break; $_605 = FALSE; break;
} }
while(0); while(0);
if( $_604 === FALSE) { $_606 = FALSE; break; } if( $_605 === FALSE) { $_607 = FALSE; break; }
$_606 = TRUE; break; $_607 = TRUE; break;
} }
while(0); while(0);
if( $_606 === FALSE) { $_609 = FALSE; break; } if( $_607 === FALSE) { $_610 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_609 = FALSE; break; } else { $_610 = FALSE; break; }
$_609 = TRUE; break; $_610 = TRUE; break;
} }
while(0); while(0);
if( $_609 === TRUE ) { $_611 = TRUE; break; } if( $_610 === TRUE ) { $_612 = TRUE; break; }
$result = $res_575; $result = $res_576;
$this->pos = $pos_575; $this->pos = $pos_576;
$_611 = FALSE; break; $_612 = FALSE; break;
} }
while(0); while(0);
if( $_611 === TRUE ) { return $this->finalise($result); } if( $_612 === TRUE ) { return $this->finalise($result); }
if( $_611 === FALSE) { return FALSE; } if( $_612 === FALSE) { return FALSE; }
} }
@ -3589,53 +3601,53 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_ClosedBlock_typestack = array('ClosedBlock'); protected $match_ClosedBlock_typestack = array('ClosedBlock');
function match_ClosedBlock ($stack = array()) { function match_ClosedBlock ($stack = array()) {
$matchrule = "ClosedBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "ClosedBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_631 = NULL; $_632 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_615 = $result; $res_616 = $result;
$pos_615 = $this->pos; $pos_616 = $this->pos;
$matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$result = $res_615; $result = $res_616;
$this->pos = $pos_615; $this->pos = $pos_616;
$_631 = FALSE; break; $_632 = FALSE; break;
} }
else { else {
$result = $res_615; $result = $res_616;
$this->pos = $pos_615; $this->pos = $pos_616;
} }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BlockName" ); $this->store( $result, $subres, "BlockName" );
} }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
$res_621 = $result; $res_622 = $result;
$pos_621 = $this->pos; $pos_622 = $this->pos;
$_620 = NULL; $_621 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_620 = FALSE; break; } else { $_621 = FALSE; break; }
$matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BlockArguments" ); $this->store( $result, $subres, "BlockArguments" );
} }
else { $_620 = FALSE; break; } else { $_621 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_620 = FALSE; break; } else { $_621 = FALSE; break; }
$_620 = TRUE; break; $_621 = TRUE; break;
} }
while(0); while(0);
if( $_620 === FALSE) { if( $_621 === FALSE) {
$result = $res_621; $result = $res_622;
$this->pos = $pos_621; $this->pos = $pos_622;
unset( $res_621 ); unset( $res_622 );
unset( $pos_621 ); unset( $pos_622 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$stack[] = $result; $result = $this->construct( $matchrule, "Zap" ); $stack[] = $result; $result = $this->construct( $matchrule, "Zap" );
@ -3646,36 +3658,36 @@ class SSTemplateParser extends Parser implements TemplateParser {
} }
else { else {
$result = array_pop($stack); $result = array_pop($stack);
$_631 = FALSE; break; $_632 = FALSE; break;
} }
$res_624 = $result; $res_625 = $result;
$pos_624 = $this->pos; $pos_625 = $this->pos;
$matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos; $matcher = 'match_'.$this->expression($result, $stack, 'TemplateMatcher'); $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Template" ); $this->store( $result, $subres, "Template" );
} }
else { else {
$result = $res_624; $result = $res_625;
$this->pos = $pos_624; $this->pos = $pos_625;
unset( $res_624 ); unset( $res_625 );
unset( $pos_624 ); unset( $pos_625 );
} }
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
if (( $subres = $this->literal( ''.$this->expression($result, $stack, 'BlockName').'' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( ''.$this->expression($result, $stack, 'BlockName').'' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_631 = FALSE; break; } else { $_632 = FALSE; break; }
$_631 = TRUE; break; $_632 = TRUE; break;
} }
while(0); while(0);
if( $_631 === TRUE ) { return $this->finalise($result); } if( $_632 === TRUE ) { return $this->finalise($result); }
if( $_631 === FALSE) { return FALSE; } if( $_632 === FALSE) { return FALSE; }
} }
@ -3776,62 +3788,62 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_OpenBlock_typestack = array('OpenBlock'); protected $match_OpenBlock_typestack = array('OpenBlock');
function match_OpenBlock ($stack = array()) { function match_OpenBlock ($stack = array()) {
$matchrule = "OpenBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "OpenBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_644 = NULL; $_645 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_644 = FALSE; break; } else { $_645 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_635 = $result; $res_636 = $result;
$pos_635 = $this->pos; $pos_636 = $this->pos;
$matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$result = $res_635; $result = $res_636;
$this->pos = $pos_635; $this->pos = $pos_636;
$_644 = FALSE; break; $_645 = FALSE; break;
} }
else { else {
$result = $res_635; $result = $res_636;
$this->pos = $pos_635; $this->pos = $pos_636;
} }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BlockName" ); $this->store( $result, $subres, "BlockName" );
} }
else { $_644 = FALSE; break; } else { $_645 = FALSE; break; }
$res_641 = $result; $res_642 = $result;
$pos_641 = $this->pos; $pos_642 = $this->pos;
$_640 = NULL; $_641 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_640 = FALSE; break; } else { $_641 = FALSE; break; }
$matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BlockArguments" ); $this->store( $result, $subres, "BlockArguments" );
} }
else { $_640 = FALSE; break; } else { $_641 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_640 = FALSE; break; } else { $_641 = FALSE; break; }
$_640 = TRUE; break; $_641 = TRUE; break;
} }
while(0); while(0);
if( $_640 === FALSE) { if( $_641 === FALSE) {
$result = $res_641; $result = $res_642;
$this->pos = $pos_641; $this->pos = $pos_642;
unset( $res_641 ); unset( $res_642 );
unset( $pos_641 ); unset( $pos_642 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_644 = FALSE; break; } else { $_645 = FALSE; break; }
$_644 = TRUE; break; $_645 = TRUE; break;
} }
while(0); while(0);
if( $_644 === TRUE ) { return $this->finalise($result); } if( $_645 === TRUE ) { return $this->finalise($result); }
if( $_644 === FALSE) { return FALSE; } if( $_645 === FALSE) { return FALSE; }
} }
@ -3903,27 +3915,27 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_MismatchedEndBlock_typestack = array('MismatchedEndBlock'); protected $match_MismatchedEndBlock_typestack = array('MismatchedEndBlock');
function match_MismatchedEndBlock ($stack = array()) { function match_MismatchedEndBlock ($stack = array()) {
$matchrule = "MismatchedEndBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "MismatchedEndBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_652 = NULL; $_653 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_652 = FALSE; break; } else { $_653 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_652 = FALSE; break; } else { $_653 = FALSE; break; }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Word" ); $this->store( $result, $subres, "Word" );
} }
else { $_652 = FALSE; break; } else { $_653 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_652 = FALSE; break; } else { $_653 = FALSE; break; }
$_652 = TRUE; break; $_653 = TRUE; break;
} }
while(0); while(0);
if( $_652 === TRUE ) { return $this->finalise($result); } if( $_653 === TRUE ) { return $this->finalise($result); }
if( $_652 === FALSE) { return FALSE; } if( $_653 === FALSE) { return FALSE; }
} }
@ -3938,78 +3950,78 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_MalformedOpenTag_typestack = array('MalformedOpenTag'); protected $match_MalformedOpenTag_typestack = array('MalformedOpenTag');
function match_MalformedOpenTag ($stack = array()) { function match_MalformedOpenTag ($stack = array()) {
$matchrule = "MalformedOpenTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "MalformedOpenTag"; $result = $this->construct($matchrule, $matchrule, null);
$_667 = NULL; $_668 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_667 = FALSE; break; } else { $_668 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$res_656 = $result; $res_657 = $result;
$pos_656 = $this->pos; $pos_657 = $this->pos;
$matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'NotBlockTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$result = $res_656; $result = $res_657;
$this->pos = $pos_656; $this->pos = $pos_657;
$_667 = FALSE; break; $_668 = FALSE; break;
} }
else { else {
$result = $res_656; $result = $res_657;
$this->pos = $pos_656; $this->pos = $pos_657;
} }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Tag" ); $this->store( $result, $subres, "Tag" );
} }
else { $_667 = FALSE; break; } else { $_668 = FALSE; break; }
$res_666 = $result; $res_667 = $result;
$pos_666 = $this->pos; $pos_667 = $this->pos;
$_665 = NULL; $_666 = NULL;
do { do {
$res_662 = $result; $res_663 = $result;
$pos_662 = $this->pos; $pos_663 = $this->pos;
$_661 = NULL; $_662 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_661 = FALSE; break; } else { $_662 = FALSE; break; }
$matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'BlockArguments'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "BlockArguments" ); $this->store( $result, $subres, "BlockArguments" );
} }
else { $_661 = FALSE; break; } else { $_662 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_661 = FALSE; break; } else { $_662 = FALSE; break; }
$_661 = TRUE; break; $_662 = TRUE; break;
} }
while(0); while(0);
if( $_661 === FALSE) { if( $_662 === FALSE) {
$result = $res_662; $result = $res_663;
$this->pos = $pos_662; $this->pos = $pos_663;
unset( $res_662 ); unset( $res_663 );
unset( $pos_662 ); unset( $pos_663 );
} }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_665 = FALSE; break; } else { $_666 = FALSE; break; }
$_665 = TRUE; break; $_666 = TRUE; break;
} }
while(0); while(0);
if( $_665 === TRUE ) { if( $_666 === TRUE ) {
$result = $res_666; $result = $res_667;
$this->pos = $pos_666; $this->pos = $pos_667;
$_667 = FALSE; break; $_668 = FALSE; break;
} }
if( $_665 === FALSE) { if( $_666 === FALSE) {
$result = $res_666; $result = $res_667;
$this->pos = $pos_666; $this->pos = $pos_667;
} }
$_667 = TRUE; break; $_668 = TRUE; break;
} }
while(0); while(0);
if( $_667 === TRUE ) { return $this->finalise($result); } if( $_668 === TRUE ) { return $this->finalise($result); }
if( $_667 === FALSE) { return FALSE; } if( $_668 === FALSE) { return FALSE; }
} }
@ -4024,57 +4036,57 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_MalformedCloseTag_typestack = array('MalformedCloseTag'); protected $match_MalformedCloseTag_typestack = array('MalformedCloseTag');
function match_MalformedCloseTag ($stack = array()) { function match_MalformedCloseTag ($stack = array()) {
$matchrule = "MalformedCloseTag"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "MalformedCloseTag"; $result = $this->construct($matchrule, $matchrule, null);
$_679 = NULL; $_680 = NULL;
do { do {
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_679 = FALSE; break; } else { $_680 = FALSE; break; }
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
$stack[] = $result; $result = $this->construct( $matchrule, "Tag" ); $stack[] = $result; $result = $this->construct( $matchrule, "Tag" );
$_673 = NULL; $_674 = NULL;
do { do {
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_673 = FALSE; break; } else { $_674 = FALSE; break; }
$matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Word'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres, "Word" ); $this->store( $result, $subres, "Word" );
} }
else { $_673 = FALSE; break; } else { $_674 = FALSE; break; }
$_673 = TRUE; break; $_674 = TRUE; break;
} }
while(0); while(0);
if( $_673 === TRUE ) { if( $_674 === TRUE ) {
$subres = $result; $result = array_pop($stack); $subres = $result; $result = array_pop($stack);
$this->store( $result, $subres, 'Tag' ); $this->store( $result, $subres, 'Tag' );
} }
if( $_673 === FALSE) { if( $_674 === FALSE) {
$result = array_pop($stack); $result = array_pop($stack);
$_679 = FALSE; break; $_680 = FALSE; break;
} }
$res_678 = $result; $res_679 = $result;
$pos_678 = $this->pos; $pos_679 = $this->pos;
$_677 = NULL; $_678 = NULL;
do { do {
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_677 = FALSE; break; } else { $_678 = FALSE; break; }
$_677 = TRUE; break; $_678 = TRUE; break;
} }
while(0); while(0);
if( $_677 === TRUE ) { if( $_678 === TRUE ) {
$result = $res_678; $result = $res_679;
$this->pos = $pos_678; $this->pos = $pos_679;
$_679 = FALSE; break; $_680 = FALSE; break;
} }
if( $_677 === FALSE) { if( $_678 === FALSE) {
$result = $res_678; $result = $res_679;
$this->pos = $pos_678; $this->pos = $pos_679;
} }
$_679 = TRUE; break; $_680 = TRUE; break;
} }
while(0); while(0);
if( $_679 === TRUE ) { return $this->finalise($result); } if( $_680 === TRUE ) { return $this->finalise($result); }
if( $_679 === FALSE) { return FALSE; } if( $_680 === FALSE) { return FALSE; }
} }
@ -4089,31 +4101,31 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_MalformedBlock_typestack = array('MalformedBlock'); protected $match_MalformedBlock_typestack = array('MalformedBlock');
function match_MalformedBlock ($stack = array()) { function match_MalformedBlock ($stack = array()) {
$matchrule = "MalformedBlock"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "MalformedBlock"; $result = $this->construct($matchrule, $matchrule, null);
$_684 = NULL; $_685 = NULL;
do { do {
$res_681 = $result; $res_682 = $result;
$pos_681 = $this->pos; $pos_682 = $this->pos;
$matcher = 'match_'.'MalformedOpenTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MalformedOpenTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_684 = TRUE; break; $_685 = TRUE; break;
} }
$result = $res_681; $result = $res_682;
$this->pos = $pos_681; $this->pos = $pos_682;
$matcher = 'match_'.'MalformedCloseTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MalformedCloseTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_684 = TRUE; break; $_685 = TRUE; break;
} }
$result = $res_681; $result = $res_682;
$this->pos = $pos_681; $this->pos = $pos_682;
$_684 = FALSE; break; $_685 = FALSE; break;
} }
while(0); while(0);
if( $_684 === TRUE ) { return $this->finalise($result); } if( $_685 === TRUE ) { return $this->finalise($result); }
if( $_684 === FALSE) { return FALSE; } if( $_685 === FALSE) { return FALSE; }
} }
@ -4123,51 +4135,51 @@ class SSTemplateParser extends Parser implements TemplateParser {
protected $match_Comment_typestack = array('Comment'); protected $match_Comment_typestack = array('Comment');
function match_Comment ($stack = array()) { function match_Comment ($stack = array()) {
$matchrule = "Comment"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Comment"; $result = $this->construct($matchrule, $matchrule, null);
$_692 = NULL; $_693 = NULL;
do { do {
if (( $subres = $this->literal( '<%--' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '<%--' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_692 = FALSE; break; } else { $_693 = FALSE; break; }
$count = 0; $count = 0;
while (true) { while (true) {
$res_690 = $result; $res_691 = $result;
$pos_690 = $this->pos; $pos_691 = $this->pos;
$_689 = NULL; $_690 = NULL;
do { do {
$res_687 = $result; $res_688 = $result;
$pos_687 = $this->pos; $pos_688 = $this->pos;
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) { if (( $subres = $this->literal( '--%>' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$result = $res_687; $result = $res_688;
$this->pos = $pos_687; $this->pos = $pos_688;
$_689 = FALSE; break; $_690 = FALSE; break;
} }
else { else {
$result = $res_687; $result = $res_688;
$this->pos = $pos_687; $this->pos = $pos_688;
} }
if (( $subres = $this->rx( '/(?s)./' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->rx( '/(?s)./' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_689 = FALSE; break; } else { $_690 = FALSE; break; }
$_689 = TRUE; break; $_690 = TRUE; break;
} }
while(0); while(0);
if( $_689 === FALSE) { if( $_690 === FALSE) {
$result = $res_690; $result = $res_691;
$this->pos = $pos_690; $this->pos = $pos_691;
unset( $res_690 ); unset( $res_691 );
unset( $pos_690 ); unset( $pos_691 );
break; break;
} }
$count += 1; $count += 1;
} }
if ($count > 0) { } if ($count > 0) { }
else { $_692 = FALSE; break; } else { $_693 = FALSE; break; }
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '--%>' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_692 = FALSE; break; } else { $_693 = FALSE; break; }
$_692 = TRUE; break; $_693 = TRUE; break;
} }
while(0); while(0);
if( $_692 === TRUE ) { return $this->finalise($result); } if( $_693 === TRUE ) { return $this->finalise($result); }
if( $_692 === FALSE) { return FALSE; } if( $_693 === FALSE) { return FALSE; }
} }
@ -4183,258 +4195,258 @@ class SSTemplateParser extends Parser implements TemplateParser {
$matchrule = "TopTemplate"; $result = $this->construct($matchrule, $matchrule, array('TemplateMatcher' => 'Template')); $matchrule = "TopTemplate"; $result = $this->construct($matchrule, $matchrule, array('TemplateMatcher' => 'Template'));
$count = 0; $count = 0;
while (true) { while (true) {
$res_748 = $result; $res_749 = $result;
$pos_748 = $this->pos; $pos_749 = $this->pos;
$_747 = NULL; $_748 = NULL;
do { do {
$_745 = NULL; $_746 = NULL;
do { do {
$res_694 = $result; $res_695 = $result;
$pos_694 = $this->pos; $pos_695 = $this->pos;
$matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Comment'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_745 = TRUE; break; $_746 = TRUE; break;
} }
$result = $res_694; $result = $res_695;
$this->pos = $pos_694; $this->pos = $pos_695;
$_743 = NULL; $_744 = NULL;
do { do {
$res_696 = $result; $res_697 = $result;
$pos_696 = $this->pos; $pos_697 = $this->pos;
$matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Translate'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_743 = TRUE; break; $_744 = TRUE; break;
} }
$result = $res_696; $result = $res_697;
$this->pos = $pos_696; $this->pos = $pos_697;
$_741 = NULL; $_742 = NULL;
do { do {
$res_698 = $result; $res_699 = $result;
$pos_698 = $this->pos; $pos_699 = $this->pos;
$matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'If'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_741 = TRUE; break; $_742 = TRUE; break;
} }
$result = $res_698; $result = $res_699;
$this->pos = $pos_698; $this->pos = $pos_699;
$_739 = NULL; $_740 = NULL;
do { do {
$res_700 = $result; $res_701 = $result;
$pos_700 = $this->pos; $pos_701 = $this->pos;
$matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Require'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_739 = TRUE; break; $_740 = TRUE; break;
} }
$result = $res_700; $result = $res_701;
$this->pos = $pos_700; $this->pos = $pos_701;
$_737 = NULL; $_738 = NULL;
do { do {
$res_702 = $result; $res_703 = $result;
$pos_702 = $this->pos; $pos_703 = $this->pos;
$matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_737 = TRUE; break; $_738 = TRUE; break;
} }
$result = $res_702; $result = $res_703;
$this->pos = $pos_702; $this->pos = $pos_703;
$_735 = NULL; $_736 = NULL;
do { do {
$res_704 = $result; $res_705 = $result;
$pos_704 = $this->pos; $pos_705 = $this->pos;
$matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_735 = TRUE; break; $_736 = TRUE; break;
} }
$result = $res_704; $result = $res_705;
$this->pos = $pos_704; $this->pos = $pos_705;
$_733 = NULL; $_734 = NULL;
do { do {
$res_706 = $result; $res_707 = $result;
$pos_706 = $this->pos; $pos_707 = $this->pos;
$matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OldI18NTag'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_733 = TRUE; break; $_734 = TRUE; break;
} }
$result = $res_706; $result = $res_707;
$this->pos = $pos_706; $this->pos = $pos_707;
$_731 = NULL; $_732 = NULL;
do { do {
$res_708 = $result; $res_709 = $result;
$pos_708 = $this->pos; $pos_709 = $this->pos;
$matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Include'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_731 = TRUE; break; $_732 = TRUE; break;
} }
$result = $res_708; $result = $res_709;
$this->pos = $pos_708; $this->pos = $pos_709;
$_729 = NULL; $_730 = NULL;
do { do {
$res_710 = $result; $res_711 = $result;
$pos_710 = $this->pos; $pos_711 = $this->pos;
$matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'ClosedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_729 = TRUE; break; $_730 = TRUE; break;
} }
$result = $res_710; $result = $res_711;
$this->pos = $pos_710; $this->pos = $pos_711;
$_727 = NULL; $_728 = NULL;
do { do {
$res_712 = $result; $res_713 = $result;
$pos_712 = $this->pos; $pos_713 = $this->pos;
$matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'OpenBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_727 = TRUE; break; $_728 = TRUE; break;
} }
$result = $res_712; $result = $res_713;
$this->pos = $pos_712; $this->pos = $pos_713;
$_725 = NULL; $_726 = NULL;
do { do {
$res_714 = $result; $res_715 = $result;
$pos_714 = $this->pos; $pos_715 = $this->pos;
$matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MalformedBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_725 = TRUE; break; $_726 = TRUE; break;
} }
$result = $res_714; $result = $res_715;
$this->pos = $pos_714; $this->pos = $pos_715;
$_723 = NULL; $_724 = NULL;
do { do {
$res_716 = $result; $res_717 = $result;
$pos_716 = $this->pos; $pos_717 = $this->pos;
$matcher = 'match_'.'MismatchedEndBlock'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'MismatchedEndBlock'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_723 = TRUE; break; $_724 = TRUE; break;
} }
$result = $res_716; $result = $res_717;
$this->pos = $pos_716; $this->pos = $pos_717;
$_721 = NULL; $_722 = NULL;
do { do {
$res_718 = $result; $res_719 = $result;
$pos_718 = $this->pos; $pos_719 = $this->pos;
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_721 = TRUE; break; $_722 = TRUE; break;
} }
$result = $res_718; $result = $res_719;
$this->pos = $pos_718; $this->pos = $pos_719;
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos; $matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) ); $subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
if ($subres !== FALSE) { if ($subres !== FALSE) {
$this->store( $result, $subres ); $this->store( $result, $subres );
$_721 = TRUE; break; $_722 = TRUE; break;
} }
$result = $res_718; $result = $res_719;
$this->pos = $pos_718; $this->pos = $pos_719;
$_721 = FALSE; break; $_722 = FALSE; break;
} }
while(0); while(0);
if( $_721 === TRUE ) { $_723 = TRUE; break; } if( $_722 === TRUE ) { $_724 = TRUE; break; }
$result = $res_716; $result = $res_717;
$this->pos = $pos_716; $this->pos = $pos_717;
$_723 = FALSE; break; $_724 = FALSE; break;
} }
while(0); while(0);
if( $_723 === TRUE ) { $_725 = TRUE; break; } if( $_724 === TRUE ) { $_726 = TRUE; break; }
$result = $res_714; $result = $res_715;
$this->pos = $pos_714; $this->pos = $pos_715;
$_725 = FALSE; break; $_726 = FALSE; break;
} }
while(0); while(0);
if( $_725 === TRUE ) { $_727 = TRUE; break; } if( $_726 === TRUE ) { $_728 = TRUE; break; }
$result = $res_712; $result = $res_713;
$this->pos = $pos_712; $this->pos = $pos_713;
$_727 = FALSE; break; $_728 = FALSE; break;
} }
while(0); while(0);
if( $_727 === TRUE ) { $_729 = TRUE; break; } if( $_728 === TRUE ) { $_730 = TRUE; break; }
$result = $res_710; $result = $res_711;
$this->pos = $pos_710; $this->pos = $pos_711;
$_729 = FALSE; break; $_730 = FALSE; break;
} }
while(0); while(0);
if( $_729 === TRUE ) { $_731 = TRUE; break; } if( $_730 === TRUE ) { $_732 = TRUE; break; }
$result = $res_708; $result = $res_709;
$this->pos = $pos_708; $this->pos = $pos_709;
$_731 = FALSE; break; $_732 = FALSE; break;
} }
while(0); while(0);
if( $_731 === TRUE ) { $_733 = TRUE; break; } if( $_732 === TRUE ) { $_734 = TRUE; break; }
$result = $res_706; $result = $res_707;
$this->pos = $pos_706; $this->pos = $pos_707;
$_733 = FALSE; break; $_734 = FALSE; break;
} }
while(0); while(0);
if( $_733 === TRUE ) { $_735 = TRUE; break; } if( $_734 === TRUE ) { $_736 = TRUE; break; }
$result = $res_704; $result = $res_705;
$this->pos = $pos_704; $this->pos = $pos_705;
$_735 = FALSE; break; $_736 = FALSE; break;
} }
while(0); while(0);
if( $_735 === TRUE ) { $_737 = TRUE; break; } if( $_736 === TRUE ) { $_738 = TRUE; break; }
$result = $res_702; $result = $res_703;
$this->pos = $pos_702; $this->pos = $pos_703;
$_737 = FALSE; break; $_738 = FALSE; break;
} }
while(0); while(0);
if( $_737 === TRUE ) { $_739 = TRUE; break; } if( $_738 === TRUE ) { $_740 = TRUE; break; }
$result = $res_700; $result = $res_701;
$this->pos = $pos_700; $this->pos = $pos_701;
$_739 = FALSE; break; $_740 = FALSE; break;
} }
while(0); while(0);
if( $_739 === TRUE ) { $_741 = TRUE; break; } if( $_740 === TRUE ) { $_742 = TRUE; break; }
$result = $res_698; $result = $res_699;
$this->pos = $pos_698; $this->pos = $pos_699;
$_741 = FALSE; break; $_742 = FALSE; break;
} }
while(0); while(0);
if( $_741 === TRUE ) { $_743 = TRUE; break; } if( $_742 === TRUE ) { $_744 = TRUE; break; }
$result = $res_696; $result = $res_697;
$this->pos = $pos_696; $this->pos = $pos_697;
$_743 = FALSE; break; $_744 = FALSE; break;
} }
while(0); while(0);
if( $_743 === TRUE ) { $_745 = TRUE; break; } if( $_744 === TRUE ) { $_746 = TRUE; break; }
$result = $res_694; $result = $res_695;
$this->pos = $pos_694; $this->pos = $pos_695;
$_745 = FALSE; break; $_746 = FALSE; break;
} }
while(0); while(0);
if( $_745 === FALSE) { $_747 = FALSE; break; } if( $_746 === FALSE) { $_748 = FALSE; break; }
$_747 = TRUE; break; $_748 = TRUE; break;
} }
while(0); while(0);
if( $_747 === FALSE) { if( $_748 === FALSE) {
$result = $res_748; $result = $res_749;
$this->pos = $pos_748; $this->pos = $pos_749;
unset( $res_748 ); unset( $res_749 );
unset( $pos_748 ); unset( $pos_749 );
break; break;
} }
$count += 1; $count += 1;
@ -4466,189 +4478,189 @@ class SSTemplateParser extends Parser implements TemplateParser {
$matchrule = "Text"; $result = $this->construct($matchrule, $matchrule, null); $matchrule = "Text"; $result = $this->construct($matchrule, $matchrule, null);
$count = 0; $count = 0;
while (true) { while (true) {
$res_787 = $result; $res_788 = $result;
$pos_787 = $this->pos; $pos_788 = $this->pos;
$_786 = NULL; $_787 = NULL;
do { do {
$_784 = NULL; $_785 = NULL;
do { do {
$res_749 = $result; $res_750 = $result;
$pos_749 = $this->pos; $pos_750 = $this->pos;
if (( $subres = $this->rx( '/ [^<${\\\\]+ /' ) ) !== FALSE) { if (( $subres = $this->rx( '/ [^<${\\\\]+ /' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_784 = TRUE; break; $_785 = TRUE; break;
} }
$result = $res_749; $result = $res_750;
$this->pos = $pos_749; $this->pos = $pos_750;
$_782 = NULL; $_783 = NULL;
do { do {
$res_751 = $result; $res_752 = $result;
$pos_751 = $this->pos; $pos_752 = $this->pos;
if (( $subres = $this->rx( '/ (\\\\.) /' ) ) !== FALSE) { if (( $subres = $this->rx( '/ (\\\\.) /' ) ) !== FALSE) {
$result["text"] .= $subres; $result["text"] .= $subres;
$_782 = TRUE; break; $_783 = TRUE; break;
} }
$result = $res_751; $result = $res_752;
$this->pos = $pos_751; $this->pos = $pos_752;
$_780 = NULL; $_781 = NULL;
do { do {
$res_753 = $result; $res_754 = $result;
$pos_753 = $this->pos; $pos_754 = $this->pos;
$_756 = NULL; $_757 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '<') { if (substr($this->string,$this->pos,1) == '<') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '<'; $result["text"] .= '<';
} }
else { $_756 = FALSE; break; } else { $_757 = FALSE; break; }
$res_755 = $result; $res_756 = $result;
$pos_755 = $this->pos; $pos_756 = $this->pos;
if (substr($this->string,$this->pos,1) == '%') { if (substr($this->string,$this->pos,1) == '%') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '%'; $result["text"] .= '%';
$result = $res_755; $result = $res_756;
$this->pos = $pos_755; $this->pos = $pos_756;
$_756 = FALSE; break; $_757 = FALSE; break;
} }
else { else {
$result = $res_755; $result = $res_756;
$this->pos = $pos_755; $this->pos = $pos_756;
} }
$_756 = TRUE; break; $_757 = TRUE; break;
} }
while(0); while(0);
if( $_756 === TRUE ) { $_780 = TRUE; break; } if( $_757 === TRUE ) { $_781 = TRUE; break; }
$result = $res_753; $result = $res_754;
$this->pos = $pos_753; $this->pos = $pos_754;
$_778 = NULL; $_779 = NULL;
do { do {
$res_758 = $result; $res_759 = $result;
$pos_758 = $this->pos; $pos_759 = $this->pos;
$_763 = NULL; $_764 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '$') { if (substr($this->string,$this->pos,1) == '$') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '$'; $result["text"] .= '$';
} }
else { $_763 = FALSE; break; } else { $_764 = FALSE; break; }
$res_762 = $result; $res_763 = $result;
$pos_762 = $this->pos; $pos_763 = $this->pos;
$_761 = NULL; $_762 = NULL;
do { do {
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_761 = FALSE; break; } else { $_762 = FALSE; break; }
$_761 = TRUE; break; $_762 = TRUE; break;
} }
while(0); while(0);
if( $_761 === TRUE ) { if( $_762 === TRUE ) {
$result = $res_762; $result = $res_763;
$this->pos = $pos_762; $this->pos = $pos_763;
$_763 = FALSE; break; $_764 = FALSE; break;
} }
if( $_761 === FALSE) { if( $_762 === FALSE) {
$result = $res_762; $result = $res_763;
$this->pos = $pos_762; $this->pos = $pos_763;
} }
$_763 = TRUE; break; $_764 = TRUE; break;
} }
while(0); while(0);
if( $_763 === TRUE ) { $_778 = TRUE; break; } if( $_764 === TRUE ) { $_779 = TRUE; break; }
$result = $res_758; $result = $res_759;
$this->pos = $pos_758; $this->pos = $pos_759;
$_776 = NULL; $_777 = NULL;
do { do {
$res_765 = $result; $res_766 = $result;
$pos_765 = $this->pos; $pos_766 = $this->pos;
$_768 = NULL; $_769 = NULL;
do { do {
if (substr($this->string,$this->pos,1) == '{') { if (substr($this->string,$this->pos,1) == '{') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '{'; $result["text"] .= '{';
} }
else { $_768 = FALSE; break; } else { $_769 = FALSE; break; }
$res_767 = $result; $res_768 = $result;
$pos_767 = $this->pos; $pos_768 = $this->pos;
if (substr($this->string,$this->pos,1) == '$') { if (substr($this->string,$this->pos,1) == '$') {
$this->pos += 1; $this->pos += 1;
$result["text"] .= '$'; $result["text"] .= '$';
$result = $res_767; $result = $res_768;
$this->pos = $pos_767; $this->pos = $pos_768;
$_768 = FALSE; break; $_769 = FALSE; break;
} }
else { else {
$result = $res_767; $result = $res_768;
$this->pos = $pos_767; $this->pos = $pos_768;
} }
$_768 = TRUE; break; $_769 = TRUE; break;
} }
while(0); while(0);
if( $_768 === TRUE ) { $_776 = TRUE; break; } if( $_769 === TRUE ) { $_777 = TRUE; break; }
$result = $res_765; $result = $res_766;
$this->pos = $pos_765; $this->pos = $pos_766;
$_774 = NULL; $_775 = NULL;
do { do {
if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_774 = FALSE; break; } else { $_775 = FALSE; break; }
$res_773 = $result; $res_774 = $result;
$pos_773 = $this->pos; $pos_774 = $this->pos;
$_772 = NULL; $_773 = NULL;
do { do {
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) { $result["text"] .= $subres; } if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) { $result["text"] .= $subres; }
else { $_772 = FALSE; break; } else { $_773 = FALSE; break; }
$_772 = TRUE; break; $_773 = TRUE; break;
} }
while(0); while(0);
if( $_772 === TRUE ) { if( $_773 === TRUE ) {
$result = $res_773; $result = $res_774;
$this->pos = $pos_773; $this->pos = $pos_774;
$_774 = FALSE; break; $_775 = FALSE; break;
} }
if( $_772 === FALSE) { if( $_773 === FALSE) {
$result = $res_773; $result = $res_774;
$this->pos = $pos_773; $this->pos = $pos_774;
} }
$_774 = TRUE; break; $_775 = TRUE; break;
} }
while(0); while(0);
if( $_774 === TRUE ) { $_776 = TRUE; break; } if( $_775 === TRUE ) { $_777 = TRUE; break; }
$result = $res_765; $result = $res_766;
$this->pos = $pos_765; $this->pos = $pos_766;
$_776 = FALSE; break; $_777 = FALSE; break;
} }
while(0); while(0);
if( $_776 === TRUE ) { $_778 = TRUE; break; } if( $_777 === TRUE ) { $_779 = TRUE; break; }
$result = $res_758; $result = $res_759;
$this->pos = $pos_758; $this->pos = $pos_759;
$_778 = FALSE; break; $_779 = FALSE; break;
} }
while(0); while(0);
if( $_778 === TRUE ) { $_780 = TRUE; break; } if( $_779 === TRUE ) { $_781 = TRUE; break; }
$result = $res_753; $result = $res_754;
$this->pos = $pos_753; $this->pos = $pos_754;
$_780 = FALSE; break; $_781 = FALSE; break;
} }
while(0); while(0);
if( $_780 === TRUE ) { $_782 = TRUE; break; } if( $_781 === TRUE ) { $_783 = TRUE; break; }
$result = $res_751; $result = $res_752;
$this->pos = $pos_751; $this->pos = $pos_752;
$_782 = FALSE; break; $_783 = FALSE; break;
} }
while(0); while(0);
if( $_782 === TRUE ) { $_784 = TRUE; break; } if( $_783 === TRUE ) { $_785 = TRUE; break; }
$result = $res_749; $result = $res_750;
$this->pos = $pos_749; $this->pos = $pos_750;
$_784 = FALSE; break; $_785 = FALSE; break;
} }
while(0); while(0);
if( $_784 === FALSE) { $_786 = FALSE; break; } if( $_785 === FALSE) { $_787 = FALSE; break; }
$_786 = TRUE; break; $_787 = TRUE; break;
} }
while(0); while(0);
if( $_786 === FALSE) { if( $_787 === FALSE) {
$result = $res_787; $result = $res_788;
$this->pos = $pos_787; $this->pos = $pos_788;
unset( $res_787 ); unset( $res_788 );
unset( $pos_787 ); unset( $pos_788 );
break; break;
} }
$count += 1; $count += 1;

View File

@ -233,6 +233,7 @@ class SSTemplateParser extends Parser implements TemplateParser {
/*!* /*!*
Word: / [A-Za-z_] [A-Za-z0-9_]* / Word: / [A-Za-z_] [A-Za-z0-9_]* /
NamespacedWord: / [A-Za-z_\/\\] [A-Za-z0-9_\/\\]* /
Number: / [0-9]+ / Number: / [0-9]+ /
Value: / [A-Za-z0-9_]+ / Value: / [A-Za-z0-9_]+ /
@ -810,7 +811,7 @@ class SSTemplateParser extends Parser implements TemplateParser {
# The include tag # The include tag
Include: "<%" < "include" < Template:Word < (NamedArgument ( < "," < NamedArgument )*)? > "%>" Include: "<%" < "include" < Template:NamespacedWord < (NamedArgument ( < "," < NamedArgument )*)? > "%>"
*/ */
function Include__construct(&$res){ function Include__construct(&$res){