mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '4.6' into 4
This commit is contained in:
commit
544b137328
@ -147,7 +147,7 @@ class DevelopmentAdmin extends Controller
|
|||||||
$controllerClass = null;
|
$controllerClass = null;
|
||||||
|
|
||||||
$baseUrlPart = $request->param('Action');
|
$baseUrlPart = $request->param('Action');
|
||||||
$reg = Config::inst()->get(__CLASS__, 'registered_controllers');
|
$reg = Config::inst()->get(static::class, 'registered_controllers');
|
||||||
if (isset($reg[$baseUrlPart])) {
|
if (isset($reg[$baseUrlPart])) {
|
||||||
$controllerClass = $reg[$baseUrlPart]['controller'];
|
$controllerClass = $reg[$baseUrlPart]['controller'];
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ class DevelopmentAdmin extends Controller
|
|||||||
return $controllerClass::create();
|
return $controllerClass::create();
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = 'Error: no controller registered in ' . __CLASS__ . ' for: ' . $request->param('Action');
|
$msg = 'Error: no controller registered in ' . static::class . ' for: ' . $request->param('Action');
|
||||||
if (Director::is_cli()) {
|
if (Director::is_cli()) {
|
||||||
// in CLI we cant use httpError because of a bug with stuff being in the output already, see DevAdminControllerTest
|
// in CLI we cant use httpError because of a bug with stuff being in the output already, see DevAdminControllerTest
|
||||||
throw new Exception($msg);
|
throw new Exception($msg);
|
||||||
@ -179,7 +179,7 @@ class DevelopmentAdmin extends Controller
|
|||||||
{
|
{
|
||||||
$links = [];
|
$links = [];
|
||||||
|
|
||||||
$reg = Config::inst()->get(__CLASS__, 'registered_controllers');
|
$reg = Config::inst()->get(static::class, 'registered_controllers');
|
||||||
foreach ($reg as $registeredController) {
|
foreach ($reg as $registeredController) {
|
||||||
if (isset($registeredController['links'])) {
|
if (isset($registeredController['links'])) {
|
||||||
foreach ($registeredController['links'] as $url => $desc) {
|
foreach ($registeredController['links'] as $url => $desc) {
|
||||||
@ -192,7 +192,7 @@ class DevelopmentAdmin extends Controller
|
|||||||
|
|
||||||
protected function getRegisteredController($baseUrlPart)
|
protected function getRegisteredController($baseUrlPart)
|
||||||
{
|
{
|
||||||
$reg = Config::inst()->get(__CLASS__, 'registered_controllers');
|
$reg = Config::inst()->get(static::class, 'registered_controllers');
|
||||||
|
|
||||||
if (isset($reg[$baseUrlPart])) {
|
if (isset($reg[$baseUrlPart])) {
|
||||||
$controllerClass = $reg[$baseUrlPart]['controller'];
|
$controllerClass = $reg[$baseUrlPart]['controller'];
|
||||||
|
@ -216,7 +216,7 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
# Any new template elements need to be included in this list, if they are to work.
|
# Any new template elements need to be included in this list, if they are to work.
|
||||||
|
|
||||||
Template: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
Template: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
||||||
OpenBlock | MalformedBlock | Injection | Text)+
|
OpenBlock | MalformedBlock | MalformedBracketInjection | Injection | Text)+
|
||||||
*/
|
*/
|
||||||
function Template_STR(&$res, $sub)
|
function Template_STR(&$res, $sub)
|
||||||
{
|
{
|
||||||
@ -367,6 +367,18 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$res['php'] .= ']';
|
$res['php'] .= ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!*
|
||||||
|
|
||||||
|
# This is used to detect a malformed bracket injection - where the closing '}' is missing
|
||||||
|
|
||||||
|
MalformedBracketInjection: "{$" :Lookup !( "}" )
|
||||||
|
*/
|
||||||
|
function MalformedBracketInjection__finalise(&$res)
|
||||||
|
{
|
||||||
|
$lookup = $res['text'];
|
||||||
|
throw new SSTemplateParseException("Malformed bracket injection $lookup. Perhaps you have forgotten the " .
|
||||||
|
"closing bracket (})?", $this);
|
||||||
|
}
|
||||||
|
|
||||||
/*!*
|
/*!*
|
||||||
|
|
||||||
@ -1156,7 +1168,9 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
|
|
||||||
# This is used to remove template comments
|
# This is used to remove template comments
|
||||||
|
|
||||||
Comment: "<%--" (!"--%>" /(?s)./)+ "--%>"
|
CommentWithContent: '<%--' ( !"--%>" /(?s)./ )+ '--%>'
|
||||||
|
EmptyComment: '<%----%>'
|
||||||
|
Comment: :EmptyComment | :CommentWithContent
|
||||||
*/
|
*/
|
||||||
function Comment__construct(&$res)
|
function Comment__construct(&$res)
|
||||||
{
|
{
|
||||||
|
@ -189,17 +189,17 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Template: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
/* Template: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
||||||
OpenBlock | MalformedBlock | Injection | Text)+ */
|
OpenBlock | MalformedBlock | MalformedBracketInjection | Injection | Text)+ */
|
||||||
protected $match_Template_typestack = array('Template');
|
protected $match_Template_typestack = array('Template');
|
||||||
function match_Template ($stack = array()) {
|
function match_Template ($stack = array()) {
|
||||||
$matchrule = "Template"; $result = $this->construct($matchrule, $matchrule, null);
|
$matchrule = "Template"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
$count = 0;
|
$count = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_50 = $result;
|
$res_54 = $result;
|
||||||
$pos_50 = $this->pos;
|
$pos_54 = $this->pos;
|
||||||
$_49 = NULL;
|
$_53 = NULL;
|
||||||
do {
|
do {
|
||||||
$_47 = NULL;
|
$_51 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_0 = $result;
|
$res_0 = $result;
|
||||||
$pos_0 = $this->pos;
|
$pos_0 = $this->pos;
|
||||||
@ -207,11 +207,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_47 = TRUE; break;
|
$_51 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_0;
|
$result = $res_0;
|
||||||
$this->pos = $pos_0;
|
$this->pos = $pos_0;
|
||||||
$_45 = NULL;
|
$_49 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_2 = $result;
|
$res_2 = $result;
|
||||||
$pos_2 = $this->pos;
|
$pos_2 = $this->pos;
|
||||||
@ -219,11 +219,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_45 = TRUE; break;
|
$_49 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_2;
|
$result = $res_2;
|
||||||
$this->pos = $pos_2;
|
$this->pos = $pos_2;
|
||||||
$_43 = NULL;
|
$_47 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_4 = $result;
|
$res_4 = $result;
|
||||||
$pos_4 = $this->pos;
|
$pos_4 = $this->pos;
|
||||||
@ -231,11 +231,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_43 = TRUE; break;
|
$_47 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_4;
|
$result = $res_4;
|
||||||
$this->pos = $pos_4;
|
$this->pos = $pos_4;
|
||||||
$_41 = NULL;
|
$_45 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_6 = $result;
|
$res_6 = $result;
|
||||||
$pos_6 = $this->pos;
|
$pos_6 = $this->pos;
|
||||||
@ -243,11 +243,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_41 = TRUE; break;
|
$_45 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_6;
|
$result = $res_6;
|
||||||
$this->pos = $pos_6;
|
$this->pos = $pos_6;
|
||||||
$_39 = NULL;
|
$_43 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_8 = $result;
|
$res_8 = $result;
|
||||||
$pos_8 = $this->pos;
|
$pos_8 = $this->pos;
|
||||||
@ -255,11 +255,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_39 = TRUE; break;
|
$_43 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_8;
|
$result = $res_8;
|
||||||
$this->pos = $pos_8;
|
$this->pos = $pos_8;
|
||||||
$_37 = NULL;
|
$_41 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_10 = $result;
|
$res_10 = $result;
|
||||||
$pos_10 = $this->pos;
|
$pos_10 = $this->pos;
|
||||||
@ -267,11 +267,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_37 = TRUE; break;
|
$_41 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_10;
|
$result = $res_10;
|
||||||
$this->pos = $pos_10;
|
$this->pos = $pos_10;
|
||||||
$_35 = NULL;
|
$_39 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_12 = $result;
|
$res_12 = $result;
|
||||||
$pos_12 = $this->pos;
|
$pos_12 = $this->pos;
|
||||||
@ -279,11 +279,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_35 = TRUE; break;
|
$_39 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_12;
|
$result = $res_12;
|
||||||
$this->pos = $pos_12;
|
$this->pos = $pos_12;
|
||||||
$_33 = NULL;
|
$_37 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_14 = $result;
|
$res_14 = $result;
|
||||||
$pos_14 = $this->pos;
|
$pos_14 = $this->pos;
|
||||||
@ -291,11 +291,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_33 = TRUE; break;
|
$_37 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_14;
|
$result = $res_14;
|
||||||
$this->pos = $pos_14;
|
$this->pos = $pos_14;
|
||||||
$_31 = NULL;
|
$_35 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_16 = $result;
|
$res_16 = $result;
|
||||||
$pos_16 = $this->pos;
|
$pos_16 = $this->pos;
|
||||||
@ -303,11 +303,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_31 = TRUE; break;
|
$_35 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_16;
|
$result = $res_16;
|
||||||
$this->pos = $pos_16;
|
$this->pos = $pos_16;
|
||||||
$_29 = NULL;
|
$_33 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_18 = $result;
|
$res_18 = $result;
|
||||||
$pos_18 = $this->pos;
|
$pos_18 = $this->pos;
|
||||||
@ -315,11 +315,11 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_29 = TRUE; break;
|
$_33 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_18;
|
$result = $res_18;
|
||||||
$this->pos = $pos_18;
|
$this->pos = $pos_18;
|
||||||
$_27 = NULL;
|
$_31 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_20 = $result;
|
$res_20 = $result;
|
||||||
$pos_20 = $this->pos;
|
$pos_20 = $this->pos;
|
||||||
@ -327,108 +327,126 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$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 );
|
||||||
$_27 = TRUE; break;
|
$_31 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_20;
|
$result = $res_20;
|
||||||
$this->pos = $pos_20;
|
$this->pos = $pos_20;
|
||||||
$_25 = NULL;
|
$_29 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_22 = $result;
|
$res_22 = $result;
|
||||||
$pos_22 = $this->pos;
|
$pos_22 = $this->pos;
|
||||||
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
|
$matcher = 'match_'.'MalformedBracketInjection'; $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 );
|
||||||
$_25 = TRUE; break;
|
$_29 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_22;
|
$result = $res_22;
|
||||||
$this->pos = $pos_22;
|
$this->pos = $pos_22;
|
||||||
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
|
$_27 = NULL;
|
||||||
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
|
do {
|
||||||
if ($subres !== FALSE) {
|
$res_24 = $result;
|
||||||
$this->store( $result, $subres );
|
$pos_24 = $this->pos;
|
||||||
$_25 = TRUE; break;
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_27 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_24;
|
||||||
|
$this->pos = $pos_24;
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_27 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_24;
|
||||||
|
$this->pos = $pos_24;
|
||||||
|
$_27 = FALSE; break;
|
||||||
}
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_27 === TRUE ) { $_29 = TRUE; break; }
|
||||||
$result = $res_22;
|
$result = $res_22;
|
||||||
$this->pos = $pos_22;
|
$this->pos = $pos_22;
|
||||||
$_25 = FALSE; break;
|
$_29 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_25 === TRUE ) { $_27 = TRUE; break; }
|
if( $_29 === TRUE ) { $_31 = TRUE; break; }
|
||||||
$result = $res_20;
|
$result = $res_20;
|
||||||
$this->pos = $pos_20;
|
$this->pos = $pos_20;
|
||||||
$_27 = FALSE; break;
|
$_31 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_27 === TRUE ) { $_29 = TRUE; break; }
|
if( $_31 === TRUE ) { $_33 = TRUE; break; }
|
||||||
$result = $res_18;
|
$result = $res_18;
|
||||||
$this->pos = $pos_18;
|
$this->pos = $pos_18;
|
||||||
$_29 = FALSE; break;
|
$_33 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_29 === TRUE ) { $_31 = TRUE; break; }
|
if( $_33 === TRUE ) { $_35 = TRUE; break; }
|
||||||
$result = $res_16;
|
$result = $res_16;
|
||||||
$this->pos = $pos_16;
|
$this->pos = $pos_16;
|
||||||
$_31 = FALSE; break;
|
$_35 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_31 === TRUE ) { $_33 = TRUE; break; }
|
if( $_35 === TRUE ) { $_37 = TRUE; break; }
|
||||||
$result = $res_14;
|
$result = $res_14;
|
||||||
$this->pos = $pos_14;
|
$this->pos = $pos_14;
|
||||||
$_33 = FALSE; break;
|
$_37 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_33 === TRUE ) { $_35 = TRUE; break; }
|
if( $_37 === TRUE ) { $_39 = TRUE; break; }
|
||||||
$result = $res_12;
|
$result = $res_12;
|
||||||
$this->pos = $pos_12;
|
$this->pos = $pos_12;
|
||||||
$_35 = FALSE; break;
|
$_39 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_35 === TRUE ) { $_37 = TRUE; break; }
|
if( $_39 === TRUE ) { $_41 = TRUE; break; }
|
||||||
$result = $res_10;
|
$result = $res_10;
|
||||||
$this->pos = $pos_10;
|
$this->pos = $pos_10;
|
||||||
$_37 = FALSE; break;
|
$_41 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_37 === TRUE ) { $_39 = TRUE; break; }
|
if( $_41 === TRUE ) { $_43 = TRUE; break; }
|
||||||
$result = $res_8;
|
$result = $res_8;
|
||||||
$this->pos = $pos_8;
|
$this->pos = $pos_8;
|
||||||
$_39 = FALSE; break;
|
$_43 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_39 === TRUE ) { $_41 = TRUE; break; }
|
if( $_43 === TRUE ) { $_45 = TRUE; break; }
|
||||||
$result = $res_6;
|
$result = $res_6;
|
||||||
$this->pos = $pos_6;
|
$this->pos = $pos_6;
|
||||||
$_41 = FALSE; break;
|
$_45 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_41 === TRUE ) { $_43 = TRUE; break; }
|
if( $_45 === TRUE ) { $_47 = TRUE; break; }
|
||||||
$result = $res_4;
|
$result = $res_4;
|
||||||
$this->pos = $pos_4;
|
$this->pos = $pos_4;
|
||||||
$_43 = FALSE; break;
|
$_47 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_43 === TRUE ) { $_45 = TRUE; break; }
|
if( $_47 === TRUE ) { $_49 = TRUE; break; }
|
||||||
$result = $res_2;
|
$result = $res_2;
|
||||||
$this->pos = $pos_2;
|
$this->pos = $pos_2;
|
||||||
$_45 = FALSE; break;
|
$_49 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_45 === TRUE ) { $_47 = TRUE; break; }
|
if( $_49 === TRUE ) { $_51 = TRUE; break; }
|
||||||
$result = $res_0;
|
$result = $res_0;
|
||||||
$this->pos = $pos_0;
|
$this->pos = $pos_0;
|
||||||
$_47 = FALSE; break;
|
$_51 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_47 === FALSE) { $_49 = FALSE; break; }
|
if( $_51 === FALSE) { $_53 = FALSE; break; }
|
||||||
$_49 = TRUE; break;
|
$_53 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_49 === FALSE) {
|
if( $_53 === FALSE) {
|
||||||
$result = $res_50;
|
$result = $res_54;
|
||||||
$this->pos = $pos_50;
|
$this->pos = $pos_54;
|
||||||
unset( $res_50 );
|
unset( $res_54 );
|
||||||
unset( $pos_50 );
|
unset( $pos_54 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
@ -496,48 +514,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);
|
||||||
$_62 = NULL;
|
$_66 = 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 { $_62 = FALSE; break; }
|
else { $_66 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_61 = $result;
|
$res_65 = $result;
|
||||||
$pos_61 = $this->pos;
|
$pos_65 = $this->pos;
|
||||||
$_60 = NULL;
|
$_64 = 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 { $_60 = FALSE; break; }
|
else { $_64 = 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 { $_60 = FALSE; break; }
|
else { $_64 = FALSE; break; }
|
||||||
$_60 = TRUE; break;
|
$_64 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_60 === FALSE) {
|
if( $_64 === FALSE) {
|
||||||
$result = $res_61;
|
$result = $res_65;
|
||||||
$this->pos = $pos_61;
|
$this->pos = $pos_65;
|
||||||
unset( $res_61 );
|
unset( $res_65 );
|
||||||
unset( $pos_61 );
|
unset( $pos_65 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_62 = TRUE; break;
|
$_66 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_62 === TRUE ) { return $this->finalise($result); }
|
if( $_66 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_62 === FALSE) { return FALSE; }
|
if( $_66 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -561,57 +579,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);
|
||||||
$_72 = NULL;
|
$_76 = 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 { $_72 = FALSE; break; }
|
else { $_76 = FALSE; break; }
|
||||||
$res_71 = $result;
|
$res_75 = $result;
|
||||||
$pos_71 = $this->pos;
|
$pos_75 = $this->pos;
|
||||||
$_70 = NULL;
|
$_74 = 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 { $_70 = FALSE; break; }
|
else { $_74 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_67 = $result;
|
$res_71 = $result;
|
||||||
$pos_67 = $this->pos;
|
$pos_71 = $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_67;
|
$result = $res_71;
|
||||||
$this->pos = $pos_67;
|
$this->pos = $pos_71;
|
||||||
unset( $res_67 );
|
unset( $res_71 );
|
||||||
unset( $pos_67 );
|
unset( $pos_71 );
|
||||||
}
|
}
|
||||||
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 { $_70 = FALSE; break; }
|
else { $_74 = FALSE; break; }
|
||||||
$_70 = TRUE; break;
|
$_74 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_70 === FALSE) {
|
if( $_74 === FALSE) {
|
||||||
$result = $res_71;
|
$result = $res_75;
|
||||||
$this->pos = $pos_71;
|
$this->pos = $pos_75;
|
||||||
unset( $res_71 );
|
unset( $res_75 );
|
||||||
unset( $pos_71 );
|
unset( $pos_75 );
|
||||||
}
|
}
|
||||||
$_72 = TRUE; break;
|
$_76 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_72 === TRUE ) { return $this->finalise($result); }
|
if( $_76 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_72 === FALSE) { return FALSE; }
|
if( $_76 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -619,32 +637,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);
|
||||||
$_76 = NULL;
|
$_80 = 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 { $_76 = FALSE; break; }
|
else { $_80 = FALSE; break; }
|
||||||
$res_75 = $result;
|
$res_79 = $result;
|
||||||
$pos_75 = $this->pos;
|
$pos_79 = $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_75;
|
$result = $res_79;
|
||||||
$this->pos = $pos_75;
|
$this->pos = $pos_79;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_75;
|
$result = $res_79;
|
||||||
$this->pos = $pos_75;
|
$this->pos = $pos_79;
|
||||||
$_76 = FALSE; break;
|
$_80 = FALSE; break;
|
||||||
}
|
}
|
||||||
$_76 = TRUE; break;
|
$_80 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_76 === TRUE ) { return $this->finalise($result); }
|
if( $_80 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_76 === FALSE) { return FALSE; }
|
if( $_80 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -666,42 +684,42 @@ 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);
|
||||||
$_90 = NULL;
|
$_94 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_79 = $result;
|
$res_83 = $result;
|
||||||
$pos_79 = $this->pos;
|
$pos_83 = $this->pos;
|
||||||
$_87 = NULL;
|
$_91 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_87 = FALSE; break; }
|
else { $_91 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_84 = $result;
|
$res_88 = $result;
|
||||||
$pos_84 = $this->pos;
|
$pos_88 = $this->pos;
|
||||||
$_83 = NULL;
|
$_87 = 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 { $_83 = FALSE; break; }
|
else { $_87 = 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 { $_83 = FALSE; break; }
|
else { $_87 = FALSE; break; }
|
||||||
$_83 = TRUE; break;
|
$_87 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_83 === FALSE) {
|
if( $_87 === FALSE) {
|
||||||
$result = $res_84;
|
$result = $res_88;
|
||||||
$this->pos = $pos_84;
|
$this->pos = $pos_88;
|
||||||
unset( $res_84 );
|
unset( $res_88 );
|
||||||
unset( $pos_84 );
|
unset( $pos_88 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -709,32 +727,32 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$this->pos += 1;
|
$this->pos += 1;
|
||||||
$result["text"] .= '.';
|
$result["text"] .= '.';
|
||||||
}
|
}
|
||||||
else { $_87 = FALSE; break; }
|
else { $_91 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_87 = FALSE; break; }
|
else { $_91 = FALSE; break; }
|
||||||
$_87 = TRUE; break;
|
$_91 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_87 === TRUE ) { $_90 = TRUE; break; }
|
if( $_91 === TRUE ) { $_94 = TRUE; break; }
|
||||||
$result = $res_79;
|
$result = $res_83;
|
||||||
$this->pos = $pos_79;
|
$this->pos = $pos_83;
|
||||||
$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 );
|
||||||
$_90 = TRUE; break;
|
$_94 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_79;
|
$result = $res_83;
|
||||||
$this->pos = $pos_79;
|
$this->pos = $pos_83;
|
||||||
$_90 = FALSE; break;
|
$_94 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_90 === TRUE ) { return $this->finalise($result); }
|
if( $_94 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_90 === FALSE) { return FALSE; }
|
if( $_94 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -780,93 +798,73 @@ 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);
|
||||||
$_116 = NULL;
|
$_120 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%t' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%t' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_116 = FALSE; break; }
|
else { $_120 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_116 = FALSE; break; }
|
else { $_120 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_98 = $result;
|
$res_102 = $result;
|
||||||
$pos_98 = $this->pos;
|
$pos_102 = $this->pos;
|
||||||
$_97 = NULL;
|
$_101 = 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 { $_97 = FALSE; break; }
|
else { $_101 = FALSE; break; }
|
||||||
$_97 = TRUE; break;
|
$_101 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_97 === FALSE) {
|
if( $_101 === FALSE) {
|
||||||
$result = $res_98;
|
$result = $res_102;
|
||||||
$this->pos = $pos_98;
|
$this->pos = $pos_102;
|
||||||
unset( $res_98 );
|
unset( $res_102 );
|
||||||
unset( $pos_98 );
|
unset( $pos_102 );
|
||||||
}
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
$res_109 = $result;
|
|
||||||
$pos_109 = $this->pos;
|
|
||||||
$_108 = NULL;
|
|
||||||
do {
|
|
||||||
$res_103 = $result;
|
|
||||||
$pos_103 = $this->pos;
|
|
||||||
$_102 = NULL;
|
|
||||||
do {
|
|
||||||
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
else { $_102 = FALSE; break; }
|
|
||||||
if (substr($this->string,$this->pos,1) == '=') {
|
|
||||||
$this->pos += 1;
|
|
||||||
$result["text"] .= '=';
|
|
||||||
}
|
|
||||||
else { $_102 = FALSE; break; }
|
|
||||||
$_102 = TRUE; break;
|
|
||||||
}
|
|
||||||
while(0);
|
|
||||||
if( $_102 === TRUE ) {
|
|
||||||
$result = $res_103;
|
|
||||||
$this->pos = $pos_103;
|
|
||||||
$_108 = FALSE; break;
|
|
||||||
}
|
|
||||||
if( $_102 === FALSE) {
|
|
||||||
$result = $res_103;
|
|
||||||
$this->pos = $pos_103;
|
|
||||||
}
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
else { $_108 = FALSE; break; }
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
$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))) ) );
|
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "Context" );
|
|
||||||
}
|
|
||||||
else { $_108 = FALSE; break; }
|
|
||||||
$_108 = TRUE; break;
|
|
||||||
}
|
|
||||||
while(0);
|
|
||||||
if( $_108 === FALSE) {
|
|
||||||
$result = $res_109;
|
|
||||||
$this->pos = $pos_109;
|
|
||||||
unset( $res_109 );
|
|
||||||
unset( $pos_109 );
|
|
||||||
}
|
}
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_113 = $result;
|
$res_113 = $result;
|
||||||
$pos_113 = $this->pos;
|
$pos_113 = $this->pos;
|
||||||
$_112 = NULL;
|
$_112 = NULL;
|
||||||
do {
|
do {
|
||||||
$matcher = 'match_'.'InjectionVariables'; $key = $matcher; $pos = $this->pos;
|
$res_107 = $result;
|
||||||
|
$pos_107 = $this->pos;
|
||||||
|
$_106 = NULL;
|
||||||
|
do {
|
||||||
|
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
else { $_106 = FALSE; break; }
|
||||||
|
if (substr($this->string,$this->pos,1) == '=') {
|
||||||
|
$this->pos += 1;
|
||||||
|
$result["text"] .= '=';
|
||||||
|
}
|
||||||
|
else { $_106 = FALSE; break; }
|
||||||
|
$_106 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_106 === TRUE ) {
|
||||||
|
$result = $res_107;
|
||||||
|
$this->pos = $pos_107;
|
||||||
|
$_112 = FALSE; break;
|
||||||
|
}
|
||||||
|
if( $_106 === FALSE) {
|
||||||
|
$result = $res_107;
|
||||||
|
$this->pos = $pos_107;
|
||||||
|
}
|
||||||
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
if (( $subres = $this->literal( 'is' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
else { $_112 = FALSE; break; }
|
||||||
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
$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 );
|
$this->store( $result, $subres, "Context" );
|
||||||
}
|
}
|
||||||
else { $_112 = FALSE; break; }
|
else { $_112 = FALSE; break; }
|
||||||
$_112 = TRUE; break;
|
$_112 = TRUE; break;
|
||||||
@ -879,13 +877,33 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
unset( $pos_113 );
|
unset( $pos_113 );
|
||||||
}
|
}
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
$res_117 = $result;
|
||||||
|
$pos_117 = $this->pos;
|
||||||
|
$_116 = NULL;
|
||||||
|
do {
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
}
|
||||||
|
else { $_116 = FALSE; break; }
|
||||||
|
$_116 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_116 === FALSE) {
|
||||||
|
$result = $res_117;
|
||||||
|
$this->pos = $pos_117;
|
||||||
|
unset( $res_117 );
|
||||||
|
unset( $pos_117 );
|
||||||
|
}
|
||||||
|
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 { $_116 = FALSE; break; }
|
else { $_120 = FALSE; break; }
|
||||||
$_116 = TRUE; break;
|
$_120 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_116 === TRUE ) { return $this->finalise($result); }
|
if( $_120 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_116 === FALSE) { return FALSE; }
|
if( $_120 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -895,9 +913,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_123 = $result;
|
$res_127 = $result;
|
||||||
$pos_123 = $this->pos;
|
$pos_127 = $this->pos;
|
||||||
$_122 = NULL;
|
$_126 = 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;
|
||||||
@ -905,26 +923,26 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
if ($subres !== FALSE) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres, "InjectionName" );
|
$this->store( $result, $subres, "InjectionName" );
|
||||||
}
|
}
|
||||||
else { $_122 = FALSE; break; }
|
else { $_126 = 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 { $_122 = FALSE; break; }
|
else { $_126 = 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 );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_122 = FALSE; break; }
|
else { $_126 = FALSE; break; }
|
||||||
$_122 = TRUE; break;
|
$_126 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_122 === FALSE) {
|
if( $_126 === FALSE) {
|
||||||
$result = $res_123;
|
$result = $res_127;
|
||||||
$this->pos = $pos_123;
|
$this->pos = $pos_127;
|
||||||
unset( $res_123 );
|
unset( $res_127 );
|
||||||
unset( $pos_123 );
|
unset( $pos_127 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
@ -1001,29 +1019,79 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$res['php'] .= ']';
|
$res['php'] .= ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* MalformedBracketInjection: "{$" :Lookup !( "}" ) */
|
||||||
/* SimpleInjection: '$' :Lookup */
|
protected $match_MalformedBracketInjection_typestack = array('MalformedBracketInjection');
|
||||||
protected $match_SimpleInjection_typestack = array('SimpleInjection');
|
function match_MalformedBracketInjection ($stack = array()) {
|
||||||
function match_SimpleInjection ($stack = array()) {
|
$matchrule = "MalformedBracketInjection"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
$matchrule = "SimpleInjection"; $result = $this->construct($matchrule, $matchrule, null);
|
$_134 = NULL;
|
||||||
$_127 = NULL;
|
|
||||||
do {
|
do {
|
||||||
if (substr($this->string,$this->pos,1) == '$') {
|
if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$this->pos += 1;
|
else { $_134 = FALSE; break; }
|
||||||
$result["text"] .= '$';
|
|
||||||
}
|
|
||||||
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 { $_127 = FALSE; break; }
|
else { $_134 = FALSE; break; }
|
||||||
$_127 = TRUE; break;
|
$res_133 = $result;
|
||||||
|
$pos_133 = $this->pos;
|
||||||
|
$_132 = NULL;
|
||||||
|
do {
|
||||||
|
if (substr($this->string,$this->pos,1) == '}') {
|
||||||
|
$this->pos += 1;
|
||||||
|
$result["text"] .= '}';
|
||||||
|
}
|
||||||
|
else { $_132 = FALSE; break; }
|
||||||
|
$_132 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_132 === TRUE ) {
|
||||||
|
$result = $res_133;
|
||||||
|
$this->pos = $pos_133;
|
||||||
|
$_134 = FALSE; break;
|
||||||
|
}
|
||||||
|
if( $_132 === FALSE) {
|
||||||
|
$result = $res_133;
|
||||||
|
$this->pos = $pos_133;
|
||||||
|
}
|
||||||
|
$_134 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_127 === TRUE ) { return $this->finalise($result); }
|
if( $_134 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_127 === FALSE) { return FALSE; }
|
if( $_134 === FALSE) { return FALSE; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function MalformedBracketInjection__finalise(&$res)
|
||||||
|
{
|
||||||
|
$lookup = $res['text'];
|
||||||
|
throw new SSTemplateParseException("Malformed bracket injection $lookup. Perhaps you have forgotten the " .
|
||||||
|
"closing bracket (})?", $this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SimpleInjection: '$' :Lookup */
|
||||||
|
protected $match_SimpleInjection_typestack = array('SimpleInjection');
|
||||||
|
function match_SimpleInjection ($stack = array()) {
|
||||||
|
$matchrule = "SimpleInjection"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
|
$_138 = NULL;
|
||||||
|
do {
|
||||||
|
if (substr($this->string,$this->pos,1) == '$') {
|
||||||
|
$this->pos += 1;
|
||||||
|
$result["text"] .= '$';
|
||||||
|
}
|
||||||
|
else { $_138 = FALSE; break; }
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "Lookup" );
|
||||||
|
}
|
||||||
|
else { $_138 = FALSE; break; }
|
||||||
|
$_138 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_138 === TRUE ) { return $this->finalise($result); }
|
||||||
|
if( $_138 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1031,26 +1099,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);
|
||||||
$_132 = NULL;
|
$_143 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '{$' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_132 = FALSE; break; }
|
else { $_143 = 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 { $_132 = FALSE; break; }
|
else { $_143 = 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 { $_132 = FALSE; break; }
|
else { $_143 = FALSE; break; }
|
||||||
$_132 = TRUE; break;
|
$_143 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_132 === TRUE ) { return $this->finalise($result); }
|
if( $_143 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_132 === FALSE) { return FALSE; }
|
if( $_143 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1058,31 +1126,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);
|
||||||
$_137 = NULL;
|
$_148 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_134 = $result;
|
$res_145 = $result;
|
||||||
$pos_134 = $this->pos;
|
$pos_145 = $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 );
|
||||||
$_137 = TRUE; break;
|
$_148 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_134;
|
$result = $res_145;
|
||||||
$this->pos = $pos_134;
|
$this->pos = $pos_145;
|
||||||
$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 );
|
||||||
$_137 = TRUE; break;
|
$_148 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_134;
|
$result = $res_145;
|
||||||
$this->pos = $pos_134;
|
$this->pos = $pos_145;
|
||||||
$_137 = FALSE; break;
|
$_148 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_137 === TRUE ) { return $this->finalise($result); }
|
if( $_148 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_137 === FALSE) { return FALSE; }
|
if( $_148 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1116,7 +1184,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);
|
||||||
$_143 = NULL;
|
$_154 = 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) {
|
||||||
@ -1126,7 +1194,7 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_143 = FALSE; break;
|
$_154 = 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) {
|
||||||
@ -1136,15 +1204,15 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_143 = FALSE; break;
|
$_154 = 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 { $_143 = FALSE; break; }
|
else { $_154 = FALSE; break; }
|
||||||
$_143 = TRUE; break;
|
$_154 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_143 === TRUE ) { return $this->finalise($result); }
|
if( $_154 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_143 === FALSE) { return FALSE; }
|
if( $_154 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1168,45 +1236,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);
|
||||||
$_163 = NULL;
|
$_174 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_146 = $result;
|
$res_157 = $result;
|
||||||
$pos_146 = $this->pos;
|
$pos_157 = $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" );
|
||||||
$_163 = TRUE; break;
|
$_174 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_146;
|
$result = $res_157;
|
||||||
$this->pos = $pos_146;
|
$this->pos = $pos_157;
|
||||||
$_161 = NULL;
|
$_172 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_148 = $result;
|
$res_159 = $result;
|
||||||
$pos_148 = $this->pos;
|
$pos_159 = $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" );
|
||||||
$_161 = TRUE; break;
|
$_172 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_148;
|
$result = $res_159;
|
||||||
$this->pos = $pos_148;
|
$this->pos = $pos_159;
|
||||||
$_159 = NULL;
|
$_170 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_150 = $result;
|
$res_161 = $result;
|
||||||
$pos_150 = $this->pos;
|
$pos_161 = $this->pos;
|
||||||
$_156 = NULL;
|
$_167 = 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 { $_156 = FALSE; break; }
|
else { $_167 = FALSE; break; }
|
||||||
$res_155 = $result;
|
$res_166 = $result;
|
||||||
$pos_155 = $this->pos;
|
$pos_166 = $this->pos;
|
||||||
$_154 = NULL;
|
$_165 = 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;
|
||||||
@ -1214,50 +1282,50 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
if ($subres !== FALSE) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_154 = FALSE; break; }
|
else { $_165 = FALSE; break; }
|
||||||
$_154 = TRUE; break;
|
$_165 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_154 === TRUE ) {
|
if( $_165 === TRUE ) {
|
||||||
$result = $res_155;
|
$result = $res_166;
|
||||||
$this->pos = $pos_155;
|
$this->pos = $pos_166;
|
||||||
$_156 = FALSE; break;
|
$_167 = FALSE; break;
|
||||||
}
|
}
|
||||||
if( $_154 === FALSE) {
|
if( $_165 === FALSE) {
|
||||||
$result = $res_155;
|
$result = $res_166;
|
||||||
$this->pos = $pos_155;
|
$this->pos = $pos_166;
|
||||||
}
|
}
|
||||||
$_156 = TRUE; break;
|
$_167 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_156 === TRUE ) { $_159 = TRUE; break; }
|
if( $_167 === TRUE ) { $_170 = TRUE; break; }
|
||||||
$result = $res_150;
|
$result = $res_161;
|
||||||
$this->pos = $pos_150;
|
$this->pos = $pos_161;
|
||||||
$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" );
|
||||||
$_159 = TRUE; break;
|
$_170 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_150;
|
$result = $res_161;
|
||||||
$this->pos = $pos_150;
|
$this->pos = $pos_161;
|
||||||
$_159 = FALSE; break;
|
$_170 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_159 === TRUE ) { $_161 = TRUE; break; }
|
if( $_170 === TRUE ) { $_172 = TRUE; break; }
|
||||||
$result = $res_148;
|
$result = $res_159;
|
||||||
$this->pos = $pos_148;
|
$this->pos = $pos_159;
|
||||||
$_161 = FALSE; break;
|
$_172 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_161 === TRUE ) { $_163 = TRUE; break; }
|
if( $_172 === TRUE ) { $_174 = TRUE; break; }
|
||||||
$result = $res_146;
|
$result = $res_157;
|
||||||
$this->pos = $pos_146;
|
$this->pos = $pos_157;
|
||||||
$_163 = FALSE; break;
|
$_174 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_163 === TRUE ) { return $this->finalise($result); }
|
if( $_174 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_163 === FALSE) { return FALSE; }
|
if( $_174 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1311,110 +1379,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);
|
||||||
$_188 = NULL;
|
$_199 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_165 = $result;
|
$res_176 = $result;
|
||||||
$pos_165 = $this->pos;
|
$pos_176 = $this->pos;
|
||||||
if (( $subres = $this->literal( '!=' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '!=' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_188 = TRUE; break;
|
$_199 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_165;
|
$result = $res_176;
|
||||||
$this->pos = $pos_165;
|
$this->pos = $pos_176;
|
||||||
$_186 = NULL;
|
$_197 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_167 = $result;
|
$res_178 = $result;
|
||||||
$pos_167 = $this->pos;
|
$pos_178 = $this->pos;
|
||||||
if (( $subres = $this->literal( '==' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '==' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_186 = TRUE; break;
|
$_197 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_167;
|
$result = $res_178;
|
||||||
$this->pos = $pos_167;
|
$this->pos = $pos_178;
|
||||||
$_184 = NULL;
|
$_195 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_169 = $result;
|
$res_180 = $result;
|
||||||
$pos_169 = $this->pos;
|
$pos_180 = $this->pos;
|
||||||
if (( $subres = $this->literal( '>=' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '>=' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_184 = TRUE; break;
|
$_195 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_169;
|
$result = $res_180;
|
||||||
$this->pos = $pos_169;
|
$this->pos = $pos_180;
|
||||||
$_182 = NULL;
|
$_193 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_171 = $result;
|
$res_182 = $result;
|
||||||
$pos_171 = $this->pos;
|
$pos_182 = $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"] .= '>';
|
||||||
$_182 = TRUE; break;
|
$_193 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_171;
|
$result = $res_182;
|
||||||
$this->pos = $pos_171;
|
$this->pos = $pos_182;
|
||||||
$_180 = NULL;
|
$_191 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_173 = $result;
|
$res_184 = $result;
|
||||||
$pos_173 = $this->pos;
|
$pos_184 = $this->pos;
|
||||||
if (( $subres = $this->literal( '<=' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '<=' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_180 = TRUE; break;
|
$_191 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_173;
|
$result = $res_184;
|
||||||
$this->pos = $pos_173;
|
$this->pos = $pos_184;
|
||||||
$_178 = NULL;
|
$_189 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_175 = $result;
|
$res_186 = $result;
|
||||||
$pos_175 = $this->pos;
|
$pos_186 = $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"] .= '<';
|
||||||
$_178 = TRUE; break;
|
$_189 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_175;
|
$result = $res_186;
|
||||||
$this->pos = $pos_175;
|
$this->pos = $pos_186;
|
||||||
if (substr($this->string,$this->pos,1) == '=') {
|
if (substr($this->string,$this->pos,1) == '=') {
|
||||||
$this->pos += 1;
|
$this->pos += 1;
|
||||||
$result["text"] .= '=';
|
$result["text"] .= '=';
|
||||||
$_178 = TRUE; break;
|
$_189 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_175;
|
$result = $res_186;
|
||||||
$this->pos = $pos_175;
|
$this->pos = $pos_186;
|
||||||
$_178 = FALSE; break;
|
$_189 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_178 === TRUE ) { $_180 = TRUE; break; }
|
if( $_189 === TRUE ) { $_191 = TRUE; break; }
|
||||||
$result = $res_173;
|
$result = $res_184;
|
||||||
$this->pos = $pos_173;
|
$this->pos = $pos_184;
|
||||||
$_180 = FALSE; break;
|
$_191 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_180 === TRUE ) { $_182 = TRUE; break; }
|
if( $_191 === TRUE ) { $_193 = TRUE; break; }
|
||||||
$result = $res_171;
|
$result = $res_182;
|
||||||
$this->pos = $pos_171;
|
$this->pos = $pos_182;
|
||||||
$_182 = FALSE; break;
|
$_193 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_182 === TRUE ) { $_184 = TRUE; break; }
|
if( $_193 === TRUE ) { $_195 = TRUE; break; }
|
||||||
$result = $res_169;
|
$result = $res_180;
|
||||||
$this->pos = $pos_169;
|
$this->pos = $pos_180;
|
||||||
$_184 = FALSE; break;
|
$_195 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_184 === TRUE ) { $_186 = TRUE; break; }
|
if( $_195 === TRUE ) { $_197 = TRUE; break; }
|
||||||
$result = $res_167;
|
$result = $res_178;
|
||||||
$this->pos = $pos_167;
|
$this->pos = $pos_178;
|
||||||
$_186 = FALSE; break;
|
$_197 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_186 === TRUE ) { $_188 = TRUE; break; }
|
if( $_197 === TRUE ) { $_199 = TRUE; break; }
|
||||||
$result = $res_165;
|
$result = $res_176;
|
||||||
$this->pos = $pos_165;
|
$this->pos = $pos_176;
|
||||||
$_188 = FALSE; break;
|
$_199 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_188 === TRUE ) { return $this->finalise($result); }
|
if( $_199 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_188 === FALSE) { return FALSE; }
|
if( $_199 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1422,33 +1490,33 @@ 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);
|
||||||
$_195 = NULL;
|
$_206 = 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 );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_195 = FALSE; break; }
|
else { $_206 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_195 = FALSE; break; }
|
else { $_206 = 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 );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_195 = FALSE; break; }
|
else { $_206 = FALSE; break; }
|
||||||
$_195 = TRUE; break;
|
$_206 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_195 === TRUE ) { return $this->finalise($result); }
|
if( $_206 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_195 === FALSE) { return FALSE; }
|
if( $_206 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1475,11 +1543,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);
|
||||||
$_202 = NULL;
|
$_213 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_200 = $result;
|
$res_211 = $result;
|
||||||
$pos_200 = $this->pos;
|
$pos_211 = $this->pos;
|
||||||
$_199 = NULL;
|
$_210 = 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) {
|
||||||
@ -1489,29 +1557,29 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_199 = FALSE; break;
|
$_210 = FALSE; break;
|
||||||
}
|
}
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$_199 = TRUE; break;
|
$_210 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_199 === FALSE) {
|
if( $_210 === FALSE) {
|
||||||
$result = $res_200;
|
$result = $res_211;
|
||||||
$this->pos = $pos_200;
|
$this->pos = $pos_211;
|
||||||
unset( $res_200 );
|
unset( $res_211 );
|
||||||
unset( $pos_200 );
|
unset( $pos_211 );
|
||||||
}
|
}
|
||||||
$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 );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_202 = FALSE; break; }
|
else { $_213 = FALSE; break; }
|
||||||
$_202 = TRUE; break;
|
$_213 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_202 === TRUE ) { return $this->finalise($result); }
|
if( $_213 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_202 === FALSE) { return FALSE; }
|
if( $_213 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1537,31 +1605,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);
|
||||||
$_207 = NULL;
|
$_218 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_204 = $result;
|
$res_215 = $result;
|
||||||
$pos_204 = $this->pos;
|
$pos_215 = $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 );
|
||||||
$_207 = TRUE; break;
|
$_218 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_204;
|
$result = $res_215;
|
||||||
$this->pos = $pos_204;
|
$this->pos = $pos_215;
|
||||||
$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 );
|
||||||
$_207 = TRUE; break;
|
$_218 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_204;
|
$result = $res_215;
|
||||||
$this->pos = $pos_204;
|
$this->pos = $pos_215;
|
||||||
$_207 = FALSE; break;
|
$_218 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_207 === TRUE ) { return $this->finalise($result); }
|
if( $_218 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_207 === FALSE) { return FALSE; }
|
if( $_218 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1575,27 +1643,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);
|
||||||
$_212 = NULL;
|
$_223 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_209 = $result;
|
$res_220 = $result;
|
||||||
$pos_209 = $this->pos;
|
$pos_220 = $this->pos;
|
||||||
if (( $subres = $this->literal( '||' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '||' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_212 = TRUE; break;
|
$_223 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_209;
|
$result = $res_220;
|
||||||
$this->pos = $pos_209;
|
$this->pos = $pos_220;
|
||||||
if (( $subres = $this->literal( '&&' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '&&' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_212 = TRUE; break;
|
$_223 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_209;
|
$result = $res_220;
|
||||||
$this->pos = $pos_209;
|
$this->pos = $pos_220;
|
||||||
$_212 = FALSE; break;
|
$_223 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_212 === TRUE ) { return $this->finalise($result); }
|
if( $_223 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_212 === FALSE) { return FALSE; }
|
if( $_223 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1603,18 +1671,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);
|
||||||
$_221 = NULL;
|
$_232 = 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 { $_221 = FALSE; break; }
|
else { $_232 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_220 = $result;
|
$res_231 = $result;
|
||||||
$pos_220 = $this->pos;
|
$pos_231 = $this->pos;
|
||||||
$_219 = NULL;
|
$_230 = 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;
|
||||||
@ -1622,30 +1690,30 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
if ($subres !== FALSE) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres, "BooleanOperator" );
|
$this->store( $result, $subres, "BooleanOperator" );
|
||||||
}
|
}
|
||||||
else { $_219 = FALSE; break; }
|
else { $_230 = 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 { $_219 = FALSE; break; }
|
else { $_230 = FALSE; break; }
|
||||||
$_219 = TRUE; break;
|
$_230 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_219 === FALSE) {
|
if( $_230 === FALSE) {
|
||||||
$result = $res_220;
|
$result = $res_231;
|
||||||
$this->pos = $pos_220;
|
$this->pos = $pos_231;
|
||||||
unset( $res_220 );
|
unset( $res_231 );
|
||||||
unset( $pos_220 );
|
unset( $pos_231 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_221 = TRUE; break;
|
$_232 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_221 === TRUE ) { return $this->finalise($result); }
|
if( $_232 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_221 === FALSE) { return FALSE; }
|
if( $_232 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1664,42 +1732,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);
|
||||||
$_231 = NULL;
|
$_242 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_231 = FALSE; break; }
|
else { $_242 = 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 { $_231 = FALSE; break; }
|
else { $_242 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_231 = FALSE; break; }
|
else { $_242 = 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 { $_231 = FALSE; break; }
|
else { $_242 = 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 { $_231 = FALSE; break; }
|
else { $_242 = FALSE; break; }
|
||||||
$res_230 = $result;
|
$res_241 = $result;
|
||||||
$pos_230 = $this->pos;
|
$pos_241 = $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_230;
|
$result = $res_241;
|
||||||
$this->pos = $pos_230;
|
$this->pos = $pos_241;
|
||||||
unset( $res_230 );
|
unset( $res_241 );
|
||||||
unset( $pos_230 );
|
unset( $pos_241 );
|
||||||
}
|
}
|
||||||
$_231 = TRUE; break;
|
$_242 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_231 === TRUE ) { return $this->finalise($result); }
|
if( $_242 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_231 === FALSE) { return FALSE; }
|
if( $_242 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1707,42 +1775,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);
|
||||||
$_241 = NULL;
|
$_252 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_241 = FALSE; break; }
|
else { $_252 = 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 { $_241 = FALSE; break; }
|
else { $_252 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_241 = FALSE; break; }
|
else { $_252 = 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 { $_241 = FALSE; break; }
|
else { $_252 = 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 { $_241 = FALSE; break; }
|
else { $_252 = FALSE; break; }
|
||||||
$res_240 = $result;
|
$res_251 = $result;
|
||||||
$pos_240 = $this->pos;
|
$pos_251 = $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_240;
|
$result = $res_251;
|
||||||
$this->pos = $pos_240;
|
$this->pos = $pos_251;
|
||||||
unset( $res_240 );
|
unset( $res_251 );
|
||||||
unset( $pos_240 );
|
unset( $pos_251 );
|
||||||
}
|
}
|
||||||
$_241 = TRUE; break;
|
$_252 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_241 === TRUE ) { return $this->finalise($result); }
|
if( $_252 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_241 === FALSE) { return FALSE; }
|
if( $_252 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1750,34 +1818,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);
|
||||||
$_249 = NULL;
|
$_260 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_249 = FALSE; break; }
|
else { $_260 = 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 { $_249 = FALSE; break; }
|
else { $_260 = 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 { $_249 = FALSE; break; }
|
else { $_260 = FALSE; break; }
|
||||||
$res_248 = $result;
|
$res_259 = $result;
|
||||||
$pos_248 = $this->pos;
|
$pos_259 = $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_248;
|
$result = $res_259;
|
||||||
$this->pos = $pos_248;
|
$this->pos = $pos_259;
|
||||||
unset( $res_248 );
|
unset( $res_259 );
|
||||||
unset( $pos_248 );
|
unset( $pos_259 );
|
||||||
}
|
}
|
||||||
$_249 = TRUE; break;
|
$_260 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_249 === TRUE ) { return $this->finalise($result); }
|
if( $_260 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_249 === FALSE) { return FALSE; }
|
if( $_260 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1785,56 +1853,56 @@ 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);
|
||||||
$_259 = NULL;
|
$_270 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_259 = FALSE; break; }
|
else { $_270 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_252 = $result;
|
$res_263 = $result;
|
||||||
$pos_252 = $this->pos;
|
$pos_263 = $this->pos;
|
||||||
$matcher = 'match_'.'ElseIfPart'; $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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_252;
|
$result = $res_263;
|
||||||
$this->pos = $pos_252;
|
$this->pos = $pos_263;
|
||||||
unset( $res_252 );
|
unset( $res_263 );
|
||||||
unset( $pos_252 );
|
unset( $pos_263 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$res_253 = $result;
|
$res_264 = $result;
|
||||||
$pos_253 = $this->pos;
|
$pos_264 = $this->pos;
|
||||||
$matcher = 'match_'.'ElsePart'; $key = $matcher; $pos = $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))) ) );
|
$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 {
|
else {
|
||||||
$result = $res_253;
|
$result = $res_264;
|
||||||
$this->pos = $pos_253;
|
$this->pos = $pos_264;
|
||||||
unset( $res_253 );
|
unset( $res_264 );
|
||||||
unset( $pos_253 );
|
unset( $pos_264 );
|
||||||
}
|
}
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_259 = FALSE; break; }
|
else { $_270 = 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 { $_259 = FALSE; break; }
|
else { $_270 = 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 { $_259 = FALSE; break; }
|
else { $_270 = FALSE; break; }
|
||||||
$_259 = TRUE; break;
|
$_270 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_259 === TRUE ) { return $this->finalise($result); }
|
if( $_270 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_259 === FALSE) { return FALSE; }
|
if( $_270 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1867,61 +1935,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);
|
||||||
$_275 = NULL;
|
$_286 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_275 = FALSE; break; }
|
else { $_286 = 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 { $_275 = FALSE; break; }
|
else { $_286 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_275 = FALSE; break; }
|
else { $_286 = FALSE; break; }
|
||||||
$stack[] = $result; $result = $this->construct( $matchrule, "Call" );
|
$stack[] = $result; $result = $this->construct( $matchrule, "Call" );
|
||||||
$_271 = NULL;
|
$_282 = 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 { $_271 = FALSE; break; }
|
else { $_282 = 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 { $_271 = FALSE; break; }
|
else { $_282 = 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 { $_271 = FALSE; break; }
|
else { $_282 = 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 { $_271 = FALSE; break; }
|
else { $_282 = FALSE; break; }
|
||||||
$_271 = TRUE; break;
|
$_282 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_271 === TRUE ) {
|
if( $_282 === TRUE ) {
|
||||||
$subres = $result; $result = array_pop($stack);
|
$subres = $result; $result = array_pop($stack);
|
||||||
$this->store( $result, $subres, 'Call' );
|
$this->store( $result, $subres, 'Call' );
|
||||||
}
|
}
|
||||||
if( $_271 === FALSE) {
|
if( $_282 === FALSE) {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_275 = FALSE; break;
|
$_286 = 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 { $_275 = FALSE; break; }
|
else { $_286 = FALSE; break; }
|
||||||
$_275 = TRUE; break;
|
$_286 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_275 === TRUE ) { return $this->finalise($result); }
|
if( $_286 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_275 === FALSE) { return FALSE; }
|
if( $_286 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1943,84 +2011,28 @@ 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);
|
||||||
$_295 = NULL;
|
$_306 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_283 = $result;
|
$res_294 = $result;
|
||||||
$pos_283 = $this->pos;
|
$pos_294 = $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;
|
$_293 = NULL;
|
||||||
do {
|
do {
|
||||||
$_291 = NULL;
|
$_291 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_284 = $result;
|
$res_288 = $result;
|
||||||
$pos_284 = $this->pos;
|
$pos_288 = $this->pos;
|
||||||
$matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos;
|
if (( $subres = $this->literal( 'if ' ) ) !== FALSE) {
|
||||||
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
|
$result["text"] .= $subres;
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "DollarMarkedLookup" );
|
|
||||||
$_291 = TRUE; break;
|
$_291 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_284;
|
$result = $res_288;
|
||||||
$this->pos = $pos_284;
|
$this->pos = $pos_288;
|
||||||
$_289 = NULL;
|
if (( $subres = $this->literal( 'unless ' ) ) !== FALSE) {
|
||||||
do {
|
$result["text"] .= $subres;
|
||||||
$res_286 = $result;
|
$_291 = TRUE; break;
|
||||||
$pos_286 = $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))) ) );
|
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "QuotedString" );
|
|
||||||
$_289 = TRUE; break;
|
|
||||||
}
|
|
||||||
$result = $res_286;
|
|
||||||
$this->pos = $pos_286;
|
|
||||||
$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))) ) );
|
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "Lookup" );
|
|
||||||
$_289 = TRUE; break;
|
|
||||||
}
|
|
||||||
$result = $res_286;
|
|
||||||
$this->pos = $pos_286;
|
|
||||||
$_289 = FALSE; break;
|
|
||||||
}
|
}
|
||||||
while(0);
|
$result = $res_288;
|
||||||
if( $_289 === TRUE ) { $_291 = TRUE; break; }
|
$this->pos = $pos_288;
|
||||||
$result = $res_284;
|
|
||||||
$this->pos = $pos_284;
|
|
||||||
$_291 = FALSE; break;
|
$_291 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
@ -2028,12 +2040,68 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
$_293 = TRUE; break;
|
$_293 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_293 === FALSE) { $_295 = FALSE; break; }
|
if( $_293 === TRUE ) {
|
||||||
$_295 = TRUE; break;
|
$result = $res_294;
|
||||||
|
$this->pos = $pos_294;
|
||||||
|
$_306 = FALSE; break;
|
||||||
|
}
|
||||||
|
if( $_293 === FALSE) {
|
||||||
|
$result = $res_294;
|
||||||
|
$this->pos = $pos_294;
|
||||||
|
}
|
||||||
|
$_304 = NULL;
|
||||||
|
do {
|
||||||
|
$_302 = NULL;
|
||||||
|
do {
|
||||||
|
$res_295 = $result;
|
||||||
|
$pos_295 = $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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "DollarMarkedLookup" );
|
||||||
|
$_302 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_295;
|
||||||
|
$this->pos = $pos_295;
|
||||||
|
$_300 = NULL;
|
||||||
|
do {
|
||||||
|
$res_297 = $result;
|
||||||
|
$pos_297 = $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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "QuotedString" );
|
||||||
|
$_300 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_297;
|
||||||
|
$this->pos = $pos_297;
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "Lookup" );
|
||||||
|
$_300 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_297;
|
||||||
|
$this->pos = $pos_297;
|
||||||
|
$_300 = FALSE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_300 === TRUE ) { $_302 = TRUE; break; }
|
||||||
|
$result = $res_295;
|
||||||
|
$this->pos = $pos_295;
|
||||||
|
$_302 = FALSE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_302 === FALSE) { $_304 = FALSE; break; }
|
||||||
|
$_304 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_304 === FALSE) { $_306 = FALSE; break; }
|
||||||
|
$_306 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_295 === TRUE ) { return $this->finalise($result); }
|
if( $_306 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_295 === FALSE) { return FALSE; }
|
if( $_306 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2057,48 +2125,48 @@ 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);
|
||||||
$_304 = NULL;
|
$_315 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_304 = FALSE; break; }
|
else { $_315 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_303 = $result;
|
$res_314 = $result;
|
||||||
$pos_303 = $this->pos;
|
$pos_314 = $this->pos;
|
||||||
$_302 = NULL;
|
$_313 = 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 { $_302 = FALSE; break; }
|
else { $_313 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_302 = FALSE; break; }
|
else { $_313 = FALSE; break; }
|
||||||
$_302 = TRUE; break;
|
$_313 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_302 === FALSE) {
|
if( $_313 === FALSE) {
|
||||||
$result = $res_303;
|
$result = $res_314;
|
||||||
$this->pos = $pos_303;
|
$this->pos = $pos_314;
|
||||||
unset( $res_303 );
|
unset( $res_314 );
|
||||||
unset( $pos_303 );
|
unset( $pos_314 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_304 = TRUE; break;
|
$_315 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_304 === TRUE ) { return $this->finalise($result); }
|
if( $_315 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_304 === FALSE) { return FALSE; }
|
if( $_315 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2115,210 +2183,228 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* CacheBlockTemplate: (Comment | Translate | If | Require | OldI18NTag | Include | ClosedBlock |
|
/* CacheBlockTemplate: (Comment | Translate | If | Require | OldI18NTag | Include | ClosedBlock |
|
||||||
OpenBlock | MalformedBlock | Injection | Text)+ */
|
OpenBlock | MalformedBlock | MalformedBracketInjection | Injection | Text)+ */
|
||||||
protected $match_CacheBlockTemplate_typestack = array('CacheBlockTemplate','Template');
|
protected $match_CacheBlockTemplate_typestack = array('CacheBlockTemplate','Template');
|
||||||
function match_CacheBlockTemplate ($stack = array()) {
|
function match_CacheBlockTemplate ($stack = array()) {
|
||||||
$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_348 = $result;
|
$res_363 = $result;
|
||||||
$pos_348 = $this->pos;
|
$pos_363 = $this->pos;
|
||||||
$_347 = NULL;
|
$_362 = NULL;
|
||||||
do {
|
do {
|
||||||
$_345 = NULL;
|
$_360 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_306 = $result;
|
$res_317 = $result;
|
||||||
$pos_306 = $this->pos;
|
$pos_317 = $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 );
|
||||||
$_345 = TRUE; break;
|
$_360 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_306;
|
$result = $res_317;
|
||||||
$this->pos = $pos_306;
|
$this->pos = $pos_317;
|
||||||
$_343 = NULL;
|
$_358 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_308 = $result;
|
$res_319 = $result;
|
||||||
$pos_308 = $this->pos;
|
$pos_319 = $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 );
|
||||||
$_343 = TRUE; break;
|
$_358 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_308;
|
$result = $res_319;
|
||||||
$this->pos = $pos_308;
|
$this->pos = $pos_319;
|
||||||
$_341 = NULL;
|
$_356 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_310 = $result;
|
$res_321 = $result;
|
||||||
$pos_310 = $this->pos;
|
$pos_321 = $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 );
|
||||||
$_341 = TRUE; break;
|
$_356 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_310;
|
$result = $res_321;
|
||||||
$this->pos = $pos_310;
|
$this->pos = $pos_321;
|
||||||
$_339 = NULL;
|
$_354 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_312 = $result;
|
$res_323 = $result;
|
||||||
$pos_312 = $this->pos;
|
$pos_323 = $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 );
|
||||||
$_339 = TRUE; break;
|
$_354 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_312;
|
$result = $res_323;
|
||||||
$this->pos = $pos_312;
|
$this->pos = $pos_323;
|
||||||
$_337 = NULL;
|
$_352 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_314 = $result;
|
$res_325 = $result;
|
||||||
$pos_314 = $this->pos;
|
$pos_325 = $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 );
|
||||||
$_337 = TRUE; break;
|
$_352 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_314;
|
$result = $res_325;
|
||||||
$this->pos = $pos_314;
|
$this->pos = $pos_325;
|
||||||
$_335 = NULL;
|
$_350 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_316 = $result;
|
$res_327 = $result;
|
||||||
$pos_316 = $this->pos;
|
$pos_327 = $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 );
|
||||||
$_335 = TRUE; break;
|
$_350 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_316;
|
$result = $res_327;
|
||||||
$this->pos = $pos_316;
|
$this->pos = $pos_327;
|
||||||
$_333 = NULL;
|
$_348 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_318 = $result;
|
$res_329 = $result;
|
||||||
$pos_318 = $this->pos;
|
$pos_329 = $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 );
|
||||||
$_333 = TRUE; break;
|
$_348 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_318;
|
$result = $res_329;
|
||||||
$this->pos = $pos_318;
|
$this->pos = $pos_329;
|
||||||
$_331 = NULL;
|
$_346 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_320 = $result;
|
$res_331 = $result;
|
||||||
$pos_320 = $this->pos;
|
$pos_331 = $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 );
|
||||||
$_331 = TRUE; break;
|
$_346 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_320;
|
$result = $res_331;
|
||||||
$this->pos = $pos_320;
|
$this->pos = $pos_331;
|
||||||
$_329 = NULL;
|
$_344 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_322 = $result;
|
$res_333 = $result;
|
||||||
$pos_322 = $this->pos;
|
$pos_333 = $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 );
|
||||||
$_329 = TRUE; break;
|
$_344 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_322;
|
$result = $res_333;
|
||||||
$this->pos = $pos_322;
|
$this->pos = $pos_333;
|
||||||
$_327 = NULL;
|
$_342 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_324 = $result;
|
$res_335 = $result;
|
||||||
$pos_324 = $this->pos;
|
$pos_335 = $this->pos;
|
||||||
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
|
$matcher = 'match_'.'MalformedBracketInjection'; $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 );
|
||||||
$_327 = TRUE; break;
|
$_342 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_324;
|
$result = $res_335;
|
||||||
$this->pos = $pos_324;
|
$this->pos = $pos_335;
|
||||||
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
|
$_340 = NULL;
|
||||||
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
|
do {
|
||||||
if ($subres !== FALSE) {
|
$res_337 = $result;
|
||||||
$this->store( $result, $subres );
|
$pos_337 = $this->pos;
|
||||||
$_327 = TRUE; break;
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_340 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_337;
|
||||||
|
$this->pos = $pos_337;
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_340 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_337;
|
||||||
|
$this->pos = $pos_337;
|
||||||
|
$_340 = FALSE; break;
|
||||||
}
|
}
|
||||||
$result = $res_324;
|
while(0);
|
||||||
$this->pos = $pos_324;
|
if( $_340 === TRUE ) { $_342 = TRUE; break; }
|
||||||
$_327 = FALSE; break;
|
$result = $res_335;
|
||||||
|
$this->pos = $pos_335;
|
||||||
|
$_342 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_327 === TRUE ) { $_329 = TRUE; break; }
|
if( $_342 === TRUE ) { $_344 = TRUE; break; }
|
||||||
$result = $res_322;
|
$result = $res_333;
|
||||||
$this->pos = $pos_322;
|
$this->pos = $pos_333;
|
||||||
$_329 = FALSE; break;
|
$_344 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_329 === TRUE ) { $_331 = TRUE; break; }
|
if( $_344 === TRUE ) { $_346 = TRUE; break; }
|
||||||
$result = $res_320;
|
$result = $res_331;
|
||||||
$this->pos = $pos_320;
|
$this->pos = $pos_331;
|
||||||
$_331 = FALSE; break;
|
$_346 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_331 === TRUE ) { $_333 = TRUE; break; }
|
if( $_346 === TRUE ) { $_348 = TRUE; break; }
|
||||||
$result = $res_318;
|
$result = $res_329;
|
||||||
$this->pos = $pos_318;
|
$this->pos = $pos_329;
|
||||||
$_333 = FALSE; break;
|
$_348 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_333 === TRUE ) { $_335 = TRUE; break; }
|
if( $_348 === TRUE ) { $_350 = TRUE; break; }
|
||||||
$result = $res_316;
|
$result = $res_327;
|
||||||
$this->pos = $pos_316;
|
$this->pos = $pos_327;
|
||||||
$_335 = FALSE; break;
|
$_350 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_335 === TRUE ) { $_337 = TRUE; break; }
|
if( $_350 === TRUE ) { $_352 = TRUE; break; }
|
||||||
$result = $res_314;
|
$result = $res_325;
|
||||||
$this->pos = $pos_314;
|
$this->pos = $pos_325;
|
||||||
$_337 = FALSE; break;
|
$_352 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_337 === TRUE ) { $_339 = TRUE; break; }
|
if( $_352 === TRUE ) { $_354 = TRUE; break; }
|
||||||
$result = $res_312;
|
$result = $res_323;
|
||||||
$this->pos = $pos_312;
|
$this->pos = $pos_323;
|
||||||
$_339 = FALSE; break;
|
$_354 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_339 === TRUE ) { $_341 = TRUE; break; }
|
if( $_354 === TRUE ) { $_356 = TRUE; break; }
|
||||||
$result = $res_310;
|
$result = $res_321;
|
||||||
$this->pos = $pos_310;
|
$this->pos = $pos_321;
|
||||||
$_341 = FALSE; break;
|
$_356 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_341 === TRUE ) { $_343 = TRUE; break; }
|
if( $_356 === TRUE ) { $_358 = TRUE; break; }
|
||||||
$result = $res_308;
|
$result = $res_319;
|
||||||
$this->pos = $pos_308;
|
$this->pos = $pos_319;
|
||||||
$_343 = FALSE; break;
|
$_358 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_343 === TRUE ) { $_345 = TRUE; break; }
|
if( $_358 === TRUE ) { $_360 = TRUE; break; }
|
||||||
$result = $res_306;
|
$result = $res_317;
|
||||||
$this->pos = $pos_306;
|
$this->pos = $pos_317;
|
||||||
$_345 = FALSE; break;
|
$_360 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_345 === FALSE) { $_347 = FALSE; break; }
|
if( $_360 === FALSE) { $_362 = FALSE; break; }
|
||||||
$_347 = TRUE; break;
|
$_362 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_347 === FALSE) {
|
if( $_362 === FALSE) {
|
||||||
$result = $res_348;
|
$result = $res_363;
|
||||||
$this->pos = $pos_348;
|
$this->pos = $pos_363;
|
||||||
unset( $res_348 );
|
unset( $res_363 );
|
||||||
unset( $pos_348 );
|
unset( $pos_363 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
@ -2337,153 +2423,153 @@ 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);
|
||||||
$_385 = NULL;
|
$_400 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_385 = FALSE; break; }
|
else { $_400 = 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 { $_385 = FALSE; break; }
|
else { $_400 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_353 = $result;
|
$res_368 = $result;
|
||||||
$pos_353 = $this->pos;
|
$pos_368 = $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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$result = $res_353;
|
|
||||||
$this->pos = $pos_353;
|
|
||||||
unset( $res_353 );
|
|
||||||
unset( $pos_353 );
|
|
||||||
}
|
|
||||||
$res_365 = $result;
|
|
||||||
$pos_365 = $this->pos;
|
|
||||||
$_364 = NULL;
|
|
||||||
do {
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
$stack[] = $result; $result = $this->construct( $matchrule, "Conditional" );
|
|
||||||
$_360 = NULL;
|
|
||||||
do {
|
|
||||||
$_358 = NULL;
|
|
||||||
do {
|
|
||||||
$res_355 = $result;
|
|
||||||
$pos_355 = $this->pos;
|
|
||||||
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
|
||||||
$result["text"] .= $subres;
|
|
||||||
$_358 = TRUE; break;
|
|
||||||
}
|
|
||||||
$result = $res_355;
|
|
||||||
$this->pos = $pos_355;
|
|
||||||
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
|
|
||||||
$result["text"] .= $subres;
|
|
||||||
$_358 = TRUE; break;
|
|
||||||
}
|
|
||||||
$result = $res_355;
|
|
||||||
$this->pos = $pos_355;
|
|
||||||
$_358 = FALSE; break;
|
|
||||||
}
|
|
||||||
while(0);
|
|
||||||
if( $_358 === FALSE) { $_360 = FALSE; break; }
|
|
||||||
$_360 = TRUE; break;
|
|
||||||
}
|
|
||||||
while(0);
|
|
||||||
if( $_360 === TRUE ) {
|
|
||||||
$subres = $result; $result = array_pop($stack);
|
|
||||||
$this->store( $result, $subres, 'Conditional' );
|
|
||||||
}
|
|
||||||
if( $_360 === FALSE) {
|
|
||||||
$result = array_pop($stack);
|
|
||||||
$_364 = FALSE; break;
|
|
||||||
}
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
$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))) ) );
|
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "Condition" );
|
|
||||||
}
|
|
||||||
else { $_364 = FALSE; break; }
|
|
||||||
$_364 = TRUE; break;
|
|
||||||
}
|
|
||||||
while(0);
|
|
||||||
if( $_364 === FALSE) {
|
|
||||||
$result = $res_365;
|
|
||||||
$this->pos = $pos_365;
|
|
||||||
unset( $res_365 );
|
|
||||||
unset( $pos_365 );
|
|
||||||
}
|
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
else { $_385 = FALSE; break; }
|
|
||||||
$res_368 = $result;
|
|
||||||
$pos_368 = $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))) ) );
|
|
||||||
if ($subres !== FALSE) {
|
|
||||||
$this->store( $result, $subres, "Template" );
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
$result = $res_368;
|
$result = $res_368;
|
||||||
$this->pos = $pos_368;
|
$this->pos = $pos_368;
|
||||||
unset( $res_368 );
|
unset( $res_368 );
|
||||||
unset( $pos_368 );
|
unset( $pos_368 );
|
||||||
}
|
}
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
$res_380 = $result;
|
||||||
else { $_385 = FALSE; break; }
|
$pos_380 = $this->pos;
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
$_379 = NULL;
|
||||||
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
|
|
||||||
else { $_385 = FALSE; break; }
|
|
||||||
$_381 = NULL;
|
|
||||||
do {
|
do {
|
||||||
$_379 = NULL;
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
$stack[] = $result; $result = $this->construct( $matchrule, "Conditional" );
|
||||||
|
$_375 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_372 = $result;
|
$_373 = NULL;
|
||||||
$pos_372 = $this->pos;
|
|
||||||
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
|
||||||
$result["text"] .= $subres;
|
|
||||||
$_379 = TRUE; break;
|
|
||||||
}
|
|
||||||
$result = $res_372;
|
|
||||||
$this->pos = $pos_372;
|
|
||||||
$_377 = NULL;
|
|
||||||
do {
|
do {
|
||||||
$res_374 = $result;
|
$res_370 = $result;
|
||||||
$pos_374 = $this->pos;
|
$pos_370 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_377 = TRUE; break;
|
$_373 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_374;
|
$result = $res_370;
|
||||||
$this->pos = $pos_374;
|
$this->pos = $pos_370;
|
||||||
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_377 = TRUE; break;
|
$_373 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_374;
|
$result = $res_370;
|
||||||
$this->pos = $pos_374;
|
$this->pos = $pos_370;
|
||||||
$_377 = FALSE; break;
|
$_373 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_377 === TRUE ) { $_379 = TRUE; break; }
|
if( $_373 === FALSE) { $_375 = FALSE; break; }
|
||||||
$result = $res_372;
|
$_375 = TRUE; break;
|
||||||
$this->pos = $pos_372;
|
|
||||||
$_379 = FALSE; break;
|
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_379 === FALSE) { $_381 = FALSE; break; }
|
if( $_375 === TRUE ) {
|
||||||
$_381 = TRUE; break;
|
$subres = $result; $result = array_pop($stack);
|
||||||
|
$this->store( $result, $subres, 'Conditional' );
|
||||||
|
}
|
||||||
|
if( $_375 === FALSE) {
|
||||||
|
$result = array_pop($stack);
|
||||||
|
$_379 = FALSE; break;
|
||||||
|
}
|
||||||
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "Condition" );
|
||||||
|
}
|
||||||
|
else { $_379 = FALSE; break; }
|
||||||
|
$_379 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_381 === FALSE) { $_385 = FALSE; break; }
|
if( $_379 === FALSE) {
|
||||||
|
$result = $res_380;
|
||||||
|
$this->pos = $pos_380;
|
||||||
|
unset( $res_380 );
|
||||||
|
unset( $pos_380 );
|
||||||
|
}
|
||||||
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 { $_385 = FALSE; break; }
|
else { $_400 = FALSE; break; }
|
||||||
$_385 = TRUE; break;
|
$res_383 = $result;
|
||||||
|
$pos_383 = $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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres, "Template" );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$result = $res_383;
|
||||||
|
$this->pos = $pos_383;
|
||||||
|
unset( $res_383 );
|
||||||
|
unset( $pos_383 );
|
||||||
|
}
|
||||||
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
else { $_400 = FALSE; break; }
|
||||||
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
else { $_400 = FALSE; break; }
|
||||||
|
$_396 = NULL;
|
||||||
|
do {
|
||||||
|
$_394 = NULL;
|
||||||
|
do {
|
||||||
|
$res_387 = $result;
|
||||||
|
$pos_387 = $this->pos;
|
||||||
|
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
||||||
|
$result["text"] .= $subres;
|
||||||
|
$_394 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_387;
|
||||||
|
$this->pos = $pos_387;
|
||||||
|
$_392 = NULL;
|
||||||
|
do {
|
||||||
|
$res_389 = $result;
|
||||||
|
$pos_389 = $this->pos;
|
||||||
|
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
||||||
|
$result["text"] .= $subres;
|
||||||
|
$_392 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_389;
|
||||||
|
$this->pos = $pos_389;
|
||||||
|
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
||||||
|
$result["text"] .= $subres;
|
||||||
|
$_392 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_389;
|
||||||
|
$this->pos = $pos_389;
|
||||||
|
$_392 = FALSE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_392 === TRUE ) { $_394 = TRUE; break; }
|
||||||
|
$result = $res_387;
|
||||||
|
$this->pos = $pos_387;
|
||||||
|
$_394 = FALSE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_394 === FALSE) { $_396 = FALSE; break; }
|
||||||
|
$_396 = TRUE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_396 === FALSE) { $_400 = FALSE; break; }
|
||||||
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
if (( $subres = $this->literal( '%>' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
|
else { $_400 = FALSE; break; }
|
||||||
|
$_400 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_385 === TRUE ) { return $this->finalise($result); }
|
if( $_400 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_385 === FALSE) { return FALSE; }
|
if( $_400 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2494,246 +2580,266 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* CacheRestrictedTemplate: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
/* CacheRestrictedTemplate: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
||||||
OpenBlock | MalformedBlock | Injection | Text)+ */
|
OpenBlock | MalformedBlock | MalformedBracketInjection | Injection | Text)+ */
|
||||||
protected $match_CacheRestrictedTemplate_typestack = array('CacheRestrictedTemplate','Template');
|
protected $match_CacheRestrictedTemplate_typestack = array('CacheRestrictedTemplate','Template');
|
||||||
function match_CacheRestrictedTemplate ($stack = array()) {
|
function match_CacheRestrictedTemplate ($stack = array()) {
|
||||||
$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_437 = $result;
|
$res_456 = $result;
|
||||||
$pos_437 = $this->pos;
|
$pos_456 = $this->pos;
|
||||||
$_436 = NULL;
|
$_455 = NULL;
|
||||||
do {
|
do {
|
||||||
$_434 = NULL;
|
$_453 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_387 = $result;
|
$res_402 = $result;
|
||||||
$pos_387 = $this->pos;
|
$pos_402 = $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 );
|
||||||
$_434 = TRUE; break;
|
$_453 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_387;
|
$result = $res_402;
|
||||||
$this->pos = $pos_387;
|
$this->pos = $pos_402;
|
||||||
$_432 = NULL;
|
$_451 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_389 = $result;
|
$res_404 = $result;
|
||||||
$pos_389 = $this->pos;
|
$pos_404 = $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 );
|
||||||
$_432 = TRUE; break;
|
$_451 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_389;
|
$result = $res_404;
|
||||||
$this->pos = $pos_389;
|
$this->pos = $pos_404;
|
||||||
$_430 = NULL;
|
$_449 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_391 = $result;
|
$res_406 = $result;
|
||||||
$pos_391 = $this->pos;
|
$pos_406 = $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 );
|
||||||
$_430 = TRUE; break;
|
$_449 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_391;
|
$result = $res_406;
|
||||||
$this->pos = $pos_391;
|
$this->pos = $pos_406;
|
||||||
$_428 = NULL;
|
$_447 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_393 = $result;
|
$res_408 = $result;
|
||||||
$pos_393 = $this->pos;
|
$pos_408 = $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 );
|
||||||
$_428 = TRUE; break;
|
$_447 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_393;
|
$result = $res_408;
|
||||||
$this->pos = $pos_393;
|
$this->pos = $pos_408;
|
||||||
$_426 = NULL;
|
$_445 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_395 = $result;
|
$res_410 = $result;
|
||||||
$pos_395 = $this->pos;
|
$pos_410 = $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 );
|
||||||
$_426 = TRUE; break;
|
$_445 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_395;
|
$result = $res_410;
|
||||||
$this->pos = $pos_395;
|
$this->pos = $pos_410;
|
||||||
$_424 = NULL;
|
$_443 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_397 = $result;
|
$res_412 = $result;
|
||||||
$pos_397 = $this->pos;
|
$pos_412 = $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 );
|
||||||
$_424 = TRUE; break;
|
$_443 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_397;
|
$result = $res_412;
|
||||||
$this->pos = $pos_397;
|
$this->pos = $pos_412;
|
||||||
$_422 = NULL;
|
$_441 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_399 = $result;
|
$res_414 = $result;
|
||||||
$pos_399 = $this->pos;
|
$pos_414 = $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 );
|
||||||
$_422 = TRUE; break;
|
$_441 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_399;
|
$result = $res_414;
|
||||||
$this->pos = $pos_399;
|
$this->pos = $pos_414;
|
||||||
$_420 = NULL;
|
$_439 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_401 = $result;
|
$res_416 = $result;
|
||||||
$pos_401 = $this->pos;
|
$pos_416 = $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 );
|
||||||
$_420 = TRUE; break;
|
$_439 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_401;
|
$result = $res_416;
|
||||||
$this->pos = $pos_401;
|
$this->pos = $pos_416;
|
||||||
$_418 = NULL;
|
$_437 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_403 = $result;
|
$res_418 = $result;
|
||||||
$pos_403 = $this->pos;
|
$pos_418 = $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 );
|
||||||
$_418 = TRUE; break;
|
$_437 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_403;
|
$result = $res_418;
|
||||||
$this->pos = $pos_403;
|
$this->pos = $pos_418;
|
||||||
$_416 = NULL;
|
$_435 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_405 = $result;
|
$res_420 = $result;
|
||||||
$pos_405 = $this->pos;
|
$pos_420 = $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 );
|
||||||
$_416 = TRUE; break;
|
$_435 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_405;
|
$result = $res_420;
|
||||||
$this->pos = $pos_405;
|
$this->pos = $pos_420;
|
||||||
$_414 = NULL;
|
$_433 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_407 = $result;
|
$res_422 = $result;
|
||||||
$pos_407 = $this->pos;
|
$pos_422 = $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 );
|
||||||
$_414 = TRUE; break;
|
$_433 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_407;
|
$result = $res_422;
|
||||||
$this->pos = $pos_407;
|
$this->pos = $pos_422;
|
||||||
$_412 = NULL;
|
$_431 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_409 = $result;
|
$res_424 = $result;
|
||||||
$pos_409 = $this->pos;
|
$pos_424 = $this->pos;
|
||||||
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
|
$matcher = 'match_'.'MalformedBracketInjection'; $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 );
|
||||||
$_412 = TRUE; break;
|
$_431 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_409;
|
$result = $res_424;
|
||||||
$this->pos = $pos_409;
|
$this->pos = $pos_424;
|
||||||
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
|
$_429 = NULL;
|
||||||
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
|
do {
|
||||||
if ($subres !== FALSE) {
|
$res_426 = $result;
|
||||||
$this->store( $result, $subres );
|
$pos_426 = $this->pos;
|
||||||
$_412 = TRUE; break;
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_429 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_426;
|
||||||
|
$this->pos = $pos_426;
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_429 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_426;
|
||||||
|
$this->pos = $pos_426;
|
||||||
|
$_429 = FALSE; break;
|
||||||
}
|
}
|
||||||
$result = $res_409;
|
while(0);
|
||||||
$this->pos = $pos_409;
|
if( $_429 === TRUE ) {
|
||||||
$_412 = FALSE; break;
|
$_431 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_424;
|
||||||
|
$this->pos = $pos_424;
|
||||||
|
$_431 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_412 === TRUE ) { $_414 = TRUE; break; }
|
if( $_431 === TRUE ) { $_433 = TRUE; break; }
|
||||||
$result = $res_407;
|
$result = $res_422;
|
||||||
$this->pos = $pos_407;
|
$this->pos = $pos_422;
|
||||||
$_414 = FALSE; break;
|
$_433 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_414 === TRUE ) { $_416 = TRUE; break; }
|
if( $_433 === TRUE ) { $_435 = TRUE; break; }
|
||||||
$result = $res_405;
|
$result = $res_420;
|
||||||
$this->pos = $pos_405;
|
$this->pos = $pos_420;
|
||||||
$_416 = FALSE; break;
|
$_435 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_416 === TRUE ) { $_418 = TRUE; break; }
|
if( $_435 === TRUE ) { $_437 = TRUE; break; }
|
||||||
$result = $res_403;
|
$result = $res_418;
|
||||||
$this->pos = $pos_403;
|
$this->pos = $pos_418;
|
||||||
$_418 = FALSE; break;
|
$_437 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_418 === TRUE ) { $_420 = TRUE; break; }
|
if( $_437 === TRUE ) { $_439 = TRUE; break; }
|
||||||
$result = $res_401;
|
$result = $res_416;
|
||||||
$this->pos = $pos_401;
|
$this->pos = $pos_416;
|
||||||
$_420 = FALSE; break;
|
$_439 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_420 === TRUE ) { $_422 = TRUE; break; }
|
if( $_439 === TRUE ) { $_441 = TRUE; break; }
|
||||||
$result = $res_399;
|
$result = $res_414;
|
||||||
$this->pos = $pos_399;
|
$this->pos = $pos_414;
|
||||||
$_422 = FALSE; break;
|
$_441 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_422 === TRUE ) { $_424 = TRUE; break; }
|
if( $_441 === TRUE ) { $_443 = TRUE; break; }
|
||||||
$result = $res_397;
|
$result = $res_412;
|
||||||
$this->pos = $pos_397;
|
$this->pos = $pos_412;
|
||||||
$_424 = FALSE; break;
|
$_443 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_424 === TRUE ) { $_426 = TRUE; break; }
|
if( $_443 === TRUE ) { $_445 = TRUE; break; }
|
||||||
$result = $res_395;
|
$result = $res_410;
|
||||||
$this->pos = $pos_395;
|
$this->pos = $pos_410;
|
||||||
$_426 = FALSE; break;
|
$_445 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_426 === TRUE ) { $_428 = TRUE; break; }
|
if( $_445 === TRUE ) { $_447 = TRUE; break; }
|
||||||
$result = $res_393;
|
$result = $res_408;
|
||||||
$this->pos = $pos_393;
|
$this->pos = $pos_408;
|
||||||
$_428 = FALSE; break;
|
$_447 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_428 === TRUE ) { $_430 = TRUE; break; }
|
if( $_447 === TRUE ) { $_449 = TRUE; break; }
|
||||||
$result = $res_391;
|
$result = $res_406;
|
||||||
$this->pos = $pos_391;
|
$this->pos = $pos_406;
|
||||||
$_430 = FALSE; break;
|
$_449 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_430 === TRUE ) { $_432 = TRUE; break; }
|
if( $_449 === TRUE ) { $_451 = TRUE; break; }
|
||||||
$result = $res_389;
|
$result = $res_404;
|
||||||
$this->pos = $pos_389;
|
$this->pos = $pos_404;
|
||||||
$_432 = FALSE; break;
|
$_451 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_432 === TRUE ) { $_434 = TRUE; break; }
|
if( $_451 === TRUE ) { $_453 = TRUE; break; }
|
||||||
$result = $res_387;
|
$result = $res_402;
|
||||||
$this->pos = $pos_387;
|
$this->pos = $pos_402;
|
||||||
$_434 = FALSE; break;
|
$_453 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_434 === FALSE) { $_436 = FALSE; break; }
|
if( $_453 === FALSE) { $_455 = FALSE; break; }
|
||||||
$_436 = TRUE; break;
|
$_455 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_436 === FALSE) {
|
if( $_455 === FALSE) {
|
||||||
$result = $res_437;
|
$result = $res_456;
|
||||||
$this->pos = $pos_437;
|
$this->pos = $pos_456;
|
||||||
unset( $res_437 );
|
unset( $res_456 );
|
||||||
unset( $pos_437 );
|
unset( $pos_456 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
@ -2764,103 +2870,103 @@ 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);
|
||||||
$_492 = NULL;
|
$_511 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_492 = FALSE; break; }
|
else { $_511 = 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" );
|
||||||
$_445 = NULL;
|
$_464 = NULL;
|
||||||
do {
|
do {
|
||||||
$_443 = NULL;
|
$_462 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_440 = $result;
|
$res_459 = $result;
|
||||||
$pos_440 = $this->pos;
|
$pos_459 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_443 = TRUE; break;
|
$_462 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_440;
|
$result = $res_459;
|
||||||
$this->pos = $pos_440;
|
$this->pos = $pos_459;
|
||||||
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_443 = TRUE; break;
|
$_462 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_440;
|
$result = $res_459;
|
||||||
$this->pos = $pos_440;
|
$this->pos = $pos_459;
|
||||||
$_443 = FALSE; break;
|
$_462 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_443 === FALSE) { $_445 = FALSE; break; }
|
if( $_462 === FALSE) { $_464 = FALSE; break; }
|
||||||
$_445 = TRUE; break;
|
$_464 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_445 === TRUE ) {
|
if( $_464 === TRUE ) {
|
||||||
$subres = $result; $result = array_pop($stack);
|
$subres = $result; $result = array_pop($stack);
|
||||||
$this->store( $result, $subres, 'CacheTag' );
|
$this->store( $result, $subres, 'CacheTag' );
|
||||||
}
|
}
|
||||||
if( $_445 === FALSE) {
|
if( $_464 === FALSE) {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_492 = FALSE; break;
|
$_511 = FALSE; break;
|
||||||
}
|
}
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_450 = $result;
|
$res_469 = $result;
|
||||||
$pos_450 = $this->pos;
|
$pos_469 = $this->pos;
|
||||||
$_449 = NULL;
|
$_468 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_449 = FALSE; break; }
|
else { $_468 = FALSE; break; }
|
||||||
$_449 = TRUE; break;
|
$_468 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_449 === FALSE) {
|
if( $_468 === FALSE) {
|
||||||
$result = $res_450;
|
$result = $res_469;
|
||||||
$this->pos = $pos_450;
|
$this->pos = $pos_469;
|
||||||
unset( $res_450 );
|
unset( $res_469 );
|
||||||
unset( $pos_450 );
|
unset( $pos_469 );
|
||||||
}
|
}
|
||||||
$res_462 = $result;
|
$res_481 = $result;
|
||||||
$pos_462 = $this->pos;
|
$pos_481 = $this->pos;
|
||||||
$_461 = NULL;
|
$_480 = 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" );
|
||||||
$_457 = NULL;
|
$_476 = NULL;
|
||||||
do {
|
do {
|
||||||
$_455 = NULL;
|
$_474 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_452 = $result;
|
$res_471 = $result;
|
||||||
$pos_452 = $this->pos;
|
$pos_471 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_455 = TRUE; break;
|
$_474 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_452;
|
$result = $res_471;
|
||||||
$this->pos = $pos_452;
|
$this->pos = $pos_471;
|
||||||
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'unless' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_455 = TRUE; break;
|
$_474 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_452;
|
$result = $res_471;
|
||||||
$this->pos = $pos_452;
|
$this->pos = $pos_471;
|
||||||
$_455 = FALSE; break;
|
$_474 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_455 === FALSE) { $_457 = FALSE; break; }
|
if( $_474 === FALSE) { $_476 = FALSE; break; }
|
||||||
$_457 = TRUE; break;
|
$_476 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_457 === TRUE ) {
|
if( $_476 === TRUE ) {
|
||||||
$subres = $result; $result = array_pop($stack);
|
$subres = $result; $result = array_pop($stack);
|
||||||
$this->store( $result, $subres, 'Conditional' );
|
$this->store( $result, $subres, 'Conditional' );
|
||||||
}
|
}
|
||||||
if( $_457 === FALSE) {
|
if( $_476 === FALSE) {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_461 = FALSE; break;
|
$_480 = 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;
|
||||||
@ -2868,132 +2974,132 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
if ($subres !== FALSE) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres, "Condition" );
|
$this->store( $result, $subres, "Condition" );
|
||||||
}
|
}
|
||||||
else { $_461 = FALSE; break; }
|
else { $_480 = FALSE; break; }
|
||||||
$_461 = TRUE; break;
|
$_480 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_461 === FALSE) {
|
if( $_480 === FALSE) {
|
||||||
$result = $res_462;
|
$result = $res_481;
|
||||||
$this->pos = $pos_462;
|
$this->pos = $pos_481;
|
||||||
unset( $res_462 );
|
unset( $res_481 );
|
||||||
unset( $pos_462 );
|
unset( $pos_481 );
|
||||||
}
|
}
|
||||||
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 { $_492 = FALSE; break; }
|
else { $_511 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_475 = $result;
|
$res_494 = $result;
|
||||||
$pos_475 = $this->pos;
|
$pos_494 = $this->pos;
|
||||||
$_474 = NULL;
|
$_493 = NULL;
|
||||||
do {
|
do {
|
||||||
$_472 = NULL;
|
$_491 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_465 = $result;
|
$res_484 = $result;
|
||||||
$pos_465 = $this->pos;
|
$pos_484 = $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 );
|
||||||
$_472 = TRUE; break;
|
$_491 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_465;
|
$result = $res_484;
|
||||||
$this->pos = $pos_465;
|
$this->pos = $pos_484;
|
||||||
$_470 = NULL;
|
$_489 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_467 = $result;
|
$res_486 = $result;
|
||||||
$pos_467 = $this->pos;
|
$pos_486 = $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 );
|
||||||
$_470 = TRUE; break;
|
$_489 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_467;
|
$result = $res_486;
|
||||||
$this->pos = $pos_467;
|
$this->pos = $pos_486;
|
||||||
$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 );
|
||||||
$_470 = TRUE; break;
|
$_489 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_467;
|
$result = $res_486;
|
||||||
$this->pos = $pos_467;
|
$this->pos = $pos_486;
|
||||||
$_470 = FALSE; break;
|
$_489 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_470 === TRUE ) { $_472 = TRUE; break; }
|
if( $_489 === TRUE ) { $_491 = TRUE; break; }
|
||||||
$result = $res_465;
|
$result = $res_484;
|
||||||
$this->pos = $pos_465;
|
$this->pos = $pos_484;
|
||||||
$_472 = FALSE; break;
|
$_491 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_472 === FALSE) { $_474 = FALSE; break; }
|
if( $_491 === FALSE) { $_493 = FALSE; break; }
|
||||||
$_474 = TRUE; break;
|
$_493 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_474 === FALSE) {
|
if( $_493 === FALSE) {
|
||||||
$result = $res_475;
|
$result = $res_494;
|
||||||
$this->pos = $pos_475;
|
$this->pos = $pos_494;
|
||||||
unset( $res_475 );
|
unset( $res_494 );
|
||||||
unset( $pos_475 );
|
unset( $pos_494 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_492 = FALSE; break; }
|
else { $_511 = 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 { $_492 = FALSE; break; }
|
else { $_511 = FALSE; break; }
|
||||||
$_488 = NULL;
|
$_507 = NULL;
|
||||||
do {
|
do {
|
||||||
$_486 = NULL;
|
$_505 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_479 = $result;
|
$res_498 = $result;
|
||||||
$pos_479 = $this->pos;
|
$pos_498 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_486 = TRUE; break;
|
$_505 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_479;
|
$result = $res_498;
|
||||||
$this->pos = $pos_479;
|
$this->pos = $pos_498;
|
||||||
$_484 = NULL;
|
$_503 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_481 = $result;
|
$res_500 = $result;
|
||||||
$pos_481 = $this->pos;
|
$pos_500 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_484 = TRUE; break;
|
$_503 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_481;
|
$result = $res_500;
|
||||||
$this->pos = $pos_481;
|
$this->pos = $pos_500;
|
||||||
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_484 = TRUE; break;
|
$_503 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_481;
|
$result = $res_500;
|
||||||
$this->pos = $pos_481;
|
$this->pos = $pos_500;
|
||||||
$_484 = FALSE; break;
|
$_503 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_484 === TRUE ) { $_486 = TRUE; break; }
|
if( $_503 === TRUE ) { $_505 = TRUE; break; }
|
||||||
$result = $res_479;
|
$result = $res_498;
|
||||||
$this->pos = $pos_479;
|
$this->pos = $pos_498;
|
||||||
$_486 = FALSE; break;
|
$_505 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_486 === FALSE) { $_488 = FALSE; break; }
|
if( $_505 === FALSE) { $_507 = FALSE; break; }
|
||||||
$_488 = TRUE; break;
|
$_507 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_488 === FALSE) { $_492 = FALSE; break; }
|
if( $_507 === FALSE) { $_511 = 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 { $_492 = FALSE; break; }
|
else { $_511 = FALSE; break; }
|
||||||
$_492 = TRUE; break;
|
$_511 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_492 === TRUE ) { return $this->finalise($result); }
|
if( $_511 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_492 === FALSE) { return FALSE; }
|
if( $_511 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3062,109 +3168,109 @@ 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);
|
||||||
$_511 = NULL;
|
$_530 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '_t' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '_t' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = 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 { $_511 = FALSE; break; }
|
else { $_530 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = FALSE; break; }
|
||||||
$res_504 = $result;
|
$res_523 = $result;
|
||||||
$pos_504 = $this->pos;
|
$pos_523 = $this->pos;
|
||||||
$_503 = NULL;
|
$_522 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_503 = FALSE; break; }
|
else { $_522 = 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 { $_503 = FALSE; break; }
|
else { $_522 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_503 = FALSE; break; }
|
else { $_522 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_503 = FALSE; break; }
|
else { $_522 = FALSE; break; }
|
||||||
$_503 = TRUE; break;
|
$_522 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_503 === FALSE) {
|
if( $_522 === FALSE) {
|
||||||
$result = $res_504;
|
$result = $res_523;
|
||||||
$this->pos = $pos_504;
|
$this->pos = $pos_523;
|
||||||
unset( $res_504 );
|
unset( $res_523 );
|
||||||
unset( $pos_504 );
|
unset( $pos_523 );
|
||||||
}
|
}
|
||||||
$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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = 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 { $_511 = FALSE; break; }
|
else { $_530 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_511 = FALSE; break; }
|
else { $_530 = FALSE; break; }
|
||||||
$res_510 = $result;
|
$res_529 = $result;
|
||||||
$pos_510 = $this->pos;
|
$pos_529 = $this->pos;
|
||||||
$_509 = NULL;
|
$_528 = 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 { $_509 = FALSE; break; }
|
else { $_528 = FALSE; break; }
|
||||||
$_509 = TRUE; break;
|
$_528 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_509 === FALSE) {
|
if( $_528 === FALSE) {
|
||||||
$result = $res_510;
|
$result = $res_529;
|
||||||
$this->pos = $pos_510;
|
$this->pos = $pos_529;
|
||||||
unset( $res_510 );
|
unset( $res_529 );
|
||||||
unset( $pos_510 );
|
unset( $pos_529 );
|
||||||
}
|
}
|
||||||
$_511 = TRUE; break;
|
$_530 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_511 === TRUE ) { return $this->finalise($result); }
|
if( $_530 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_511 === FALSE) { return FALSE; }
|
if( $_530 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3210,25 +3316,25 @@ 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);
|
||||||
$_519 = NULL;
|
$_538 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_519 = FALSE; break; }
|
else { $_538 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_519 = FALSE; break; }
|
else { $_538 = 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 { $_519 = FALSE; break; }
|
else { $_538 = FALSE; break; }
|
||||||
$_519 = TRUE; break;
|
$_538 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_519 === TRUE ) { return $this->finalise($result); }
|
if( $_538 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_519 === FALSE) { return FALSE; }
|
if( $_538 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3242,53 +3348,53 @@ 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);
|
||||||
$_536 = NULL;
|
$_555 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_536 = FALSE; break; }
|
else { $_555 = 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 { $_536 = FALSE; break; }
|
else { $_555 = 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 { $_536 = FALSE; break; }
|
else { $_555 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_536 = FALSE; break; }
|
else { $_555 = 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 { $_536 = FALSE; break; }
|
else { $_555 = 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 );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_536 = FALSE; break; }
|
else { $_555 = 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 { $_536 = FALSE; break; }
|
else { $_555 = 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 { $_536 = FALSE; break; }
|
else { $_555 = FALSE; break; }
|
||||||
$_536 = TRUE; break;
|
$_555 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_536 === TRUE ) { return $this->finalise($result); }
|
if( $_555 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_536 === FALSE) { return FALSE; }
|
if( $_555 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3312,31 +3418,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);
|
||||||
$_541 = NULL;
|
$_560 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_538 = $result;
|
$res_557 = $result;
|
||||||
$pos_538 = $this->pos;
|
$pos_557 = $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 );
|
||||||
$_541 = TRUE; break;
|
$_560 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_538;
|
$result = $res_557;
|
||||||
$this->pos = $pos_538;
|
$this->pos = $pos_557;
|
||||||
$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 );
|
||||||
$_541 = TRUE; break;
|
$_560 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_538;
|
$result = $res_557;
|
||||||
$this->pos = $pos_538;
|
$this->pos = $pos_557;
|
||||||
$_541 = FALSE; break;
|
$_560 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_541 === TRUE ) { return $this->finalise($result); }
|
if( $_560 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_541 === FALSE) { return FALSE; }
|
if( $_560 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3350,30 +3456,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);
|
||||||
$_546 = NULL;
|
$_565 = 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 { $_546 = FALSE; break; }
|
else { $_565 = 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 { $_546 = FALSE; break; }
|
else { $_565 = 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 { $_546 = FALSE; break; }
|
else { $_565 = FALSE; break; }
|
||||||
$_546 = TRUE; break;
|
$_565 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_546 === TRUE ) { return $this->finalise($result); }
|
if( $_565 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_546 === FALSE) { return FALSE; }
|
if( $_565 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3404,77 +3510,77 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
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);
|
||||||
$_565 = NULL;
|
$_584 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_565 = FALSE; break; }
|
else { $_584 = 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 { $_565 = FALSE; break; }
|
else { $_584 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$matcher = 'match_'.'NamespacedWord'; $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 { $_565 = FALSE; break; }
|
else { $_584 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_562 = $result;
|
$res_581 = $result;
|
||||||
$pos_562 = $this->pos;
|
$pos_581 = $this->pos;
|
||||||
$_561 = NULL;
|
$_580 = 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) {
|
if ($subres !== FALSE) {
|
||||||
$this->store( $result, $subres );
|
$this->store( $result, $subres );
|
||||||
}
|
}
|
||||||
else { $_561 = FALSE; break; }
|
else { $_580 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_560 = $result;
|
$res_579 = $result;
|
||||||
$pos_560 = $this->pos;
|
$pos_579 = $this->pos;
|
||||||
$_559 = NULL;
|
$_578 = 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 { $_559 = FALSE; break; }
|
else { $_578 = 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 { $_559 = FALSE; break; }
|
else { $_578 = FALSE; break; }
|
||||||
$_559 = TRUE; break;
|
$_578 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_559 === FALSE) {
|
if( $_578 === FALSE) {
|
||||||
$result = $res_560;
|
$result = $res_579;
|
||||||
$this->pos = $pos_560;
|
$this->pos = $pos_579;
|
||||||
unset( $res_560 );
|
unset( $res_579 );
|
||||||
unset( $pos_560 );
|
unset( $pos_579 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_561 = TRUE; break;
|
$_580 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_561 === FALSE) {
|
if( $_580 === FALSE) {
|
||||||
$result = $res_562;
|
$result = $res_581;
|
||||||
$this->pos = $pos_562;
|
$this->pos = $pos_581;
|
||||||
unset( $res_562 );
|
unset( $res_581 );
|
||||||
unset( $pos_562 );
|
unset( $pos_581 );
|
||||||
}
|
}
|
||||||
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 { $_565 = FALSE; break; }
|
else { $_584 = FALSE; break; }
|
||||||
$_565 = TRUE; break;
|
$_584 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_565 === TRUE ) { return $this->finalise($result); }
|
if( $_584 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_565 === FALSE) { return FALSE; }
|
if( $_584 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3515,48 +3621,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);
|
||||||
$_574 = NULL;
|
$_593 = 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 { $_574 = FALSE; break; }
|
else { $_593 = FALSE; break; }
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_573 = $result;
|
$res_592 = $result;
|
||||||
$pos_573 = $this->pos;
|
$pos_592 = $this->pos;
|
||||||
$_572 = NULL;
|
$_591 = 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 { $_572 = FALSE; break; }
|
else { $_591 = 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 { $_572 = FALSE; break; }
|
else { $_591 = FALSE; break; }
|
||||||
$_572 = TRUE; break;
|
$_591 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_572 === FALSE) {
|
if( $_591 === FALSE) {
|
||||||
$result = $res_573;
|
$result = $res_592;
|
||||||
$this->pos = $pos_573;
|
$this->pos = $pos_592;
|
||||||
unset( $res_573 );
|
unset( $res_592 );
|
||||||
unset( $pos_573 );
|
unset( $pos_592 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_574 = TRUE; break;
|
$_593 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_574 === TRUE ) { return $this->finalise($result); }
|
if( $_593 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_574 === FALSE) { return FALSE; }
|
if( $_593 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3564,153 +3670,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);
|
||||||
$_612 = NULL;
|
$_631 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_576 = $result;
|
$res_595 = $result;
|
||||||
$pos_576 = $this->pos;
|
$pos_595 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_612 = TRUE; break;
|
$_631 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_576;
|
$result = $res_595;
|
||||||
$this->pos = $pos_576;
|
$this->pos = $pos_595;
|
||||||
$_610 = NULL;
|
$_629 = NULL;
|
||||||
do {
|
do {
|
||||||
$_607 = NULL;
|
$_626 = NULL;
|
||||||
do {
|
do {
|
||||||
$_605 = NULL;
|
$_624 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_578 = $result;
|
$res_597 = $result;
|
||||||
$pos_578 = $this->pos;
|
$pos_597 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'if' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_605 = TRUE; break;
|
$_624 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_578;
|
$result = $res_597;
|
||||||
$this->pos = $pos_578;
|
$this->pos = $pos_597;
|
||||||
$_603 = NULL;
|
$_622 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_580 = $result;
|
$res_599 = $result;
|
||||||
$pos_580 = $this->pos;
|
$pos_599 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'else_if' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_603 = TRUE; break;
|
$_622 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_580;
|
$result = $res_599;
|
||||||
$this->pos = $pos_580;
|
$this->pos = $pos_599;
|
||||||
$_601 = NULL;
|
$_620 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_582 = $result;
|
$res_601 = $result;
|
||||||
$pos_582 = $this->pos;
|
$pos_601 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'else' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'else' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_601 = TRUE; break;
|
$_620 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_582;
|
$result = $res_601;
|
||||||
$this->pos = $pos_582;
|
$this->pos = $pos_601;
|
||||||
$_599 = NULL;
|
$_618 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_584 = $result;
|
$res_603 = $result;
|
||||||
$pos_584 = $this->pos;
|
$pos_603 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'require' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'require' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_599 = TRUE; break;
|
$_618 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_584;
|
$result = $res_603;
|
||||||
$this->pos = $pos_584;
|
$this->pos = $pos_603;
|
||||||
$_597 = NULL;
|
$_616 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_586 = $result;
|
$res_605 = $result;
|
||||||
$pos_586 = $this->pos;
|
$pos_605 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cached' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_597 = TRUE; break;
|
$_616 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_586;
|
$result = $res_605;
|
||||||
$this->pos = $pos_586;
|
$this->pos = $pos_605;
|
||||||
$_595 = NULL;
|
$_614 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_588 = $result;
|
$res_607 = $result;
|
||||||
$pos_588 = $this->pos;
|
$pos_607 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'uncached' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_595 = TRUE; break;
|
$_614 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_588;
|
$result = $res_607;
|
||||||
$this->pos = $pos_588;
|
$this->pos = $pos_607;
|
||||||
$_593 = NULL;
|
$_612 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_590 = $result;
|
$res_609 = $result;
|
||||||
$pos_590 = $this->pos;
|
$pos_609 = $this->pos;
|
||||||
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'cacheblock' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_593 = TRUE; break;
|
$_612 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_590;
|
$result = $res_609;
|
||||||
$this->pos = $pos_590;
|
$this->pos = $pos_609;
|
||||||
if (( $subres = $this->literal( 'include' ) ) !== FALSE) {
|
if (( $subres = $this->literal( 'include' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_593 = TRUE; break;
|
$_612 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_590;
|
$result = $res_609;
|
||||||
$this->pos = $pos_590;
|
$this->pos = $pos_609;
|
||||||
$_593 = FALSE; break;
|
$_612 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_593 === TRUE ) { $_595 = TRUE; break; }
|
if( $_612 === TRUE ) { $_614 = TRUE; break; }
|
||||||
$result = $res_588;
|
$result = $res_607;
|
||||||
$this->pos = $pos_588;
|
$this->pos = $pos_607;
|
||||||
$_595 = FALSE; break;
|
$_614 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_595 === TRUE ) { $_597 = TRUE; break; }
|
if( $_614 === TRUE ) { $_616 = TRUE; break; }
|
||||||
$result = $res_586;
|
$result = $res_605;
|
||||||
$this->pos = $pos_586;
|
$this->pos = $pos_605;
|
||||||
$_597 = FALSE; break;
|
$_616 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_597 === TRUE ) { $_599 = TRUE; break; }
|
if( $_616 === TRUE ) { $_618 = TRUE; break; }
|
||||||
$result = $res_584;
|
$result = $res_603;
|
||||||
$this->pos = $pos_584;
|
$this->pos = $pos_603;
|
||||||
$_599 = FALSE; break;
|
$_618 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_599 === TRUE ) { $_601 = TRUE; break; }
|
if( $_618 === TRUE ) { $_620 = TRUE; break; }
|
||||||
$result = $res_582;
|
$result = $res_601;
|
||||||
$this->pos = $pos_582;
|
$this->pos = $pos_601;
|
||||||
$_601 = FALSE; break;
|
$_620 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_601 === TRUE ) { $_603 = TRUE; break; }
|
if( $_620 === TRUE ) { $_622 = TRUE; break; }
|
||||||
$result = $res_580;
|
$result = $res_599;
|
||||||
$this->pos = $pos_580;
|
$this->pos = $pos_599;
|
||||||
$_603 = FALSE; break;
|
$_622 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_603 === TRUE ) { $_605 = TRUE; break; }
|
if( $_622 === TRUE ) { $_624 = TRUE; break; }
|
||||||
$result = $res_578;
|
$result = $res_597;
|
||||||
$this->pos = $pos_578;
|
$this->pos = $pos_597;
|
||||||
$_605 = FALSE; break;
|
$_624 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_605 === FALSE) { $_607 = FALSE; break; }
|
if( $_624 === FALSE) { $_626 = FALSE; break; }
|
||||||
$_607 = TRUE; break;
|
$_626 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_607 === FALSE) { $_610 = FALSE; break; }
|
if( $_626 === FALSE) { $_629 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_610 = FALSE; break; }
|
else { $_629 = FALSE; break; }
|
||||||
$_610 = TRUE; break;
|
$_629 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_610 === TRUE ) { $_612 = TRUE; break; }
|
if( $_629 === TRUE ) { $_631 = TRUE; break; }
|
||||||
$result = $res_576;
|
$result = $res_595;
|
||||||
$this->pos = $pos_576;
|
$this->pos = $pos_595;
|
||||||
$_612 = FALSE; break;
|
$_631 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_612 === TRUE ) { return $this->finalise($result); }
|
if( $_631 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_612 === FALSE) { return FALSE; }
|
if( $_631 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3719,53 +3825,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);
|
||||||
$_632 = NULL;
|
$_651 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_632 = FALSE; break; }
|
else { $_651 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_616 = $result;
|
$res_635 = $result;
|
||||||
$pos_616 = $this->pos;
|
$pos_635 = $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_616;
|
$result = $res_635;
|
||||||
$this->pos = $pos_616;
|
$this->pos = $pos_635;
|
||||||
$_632 = FALSE; break;
|
$_651 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_616;
|
$result = $res_635;
|
||||||
$this->pos = $pos_616;
|
$this->pos = $pos_635;
|
||||||
}
|
}
|
||||||
$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 { $_632 = FALSE; break; }
|
else { $_651 = FALSE; break; }
|
||||||
$res_622 = $result;
|
$res_641 = $result;
|
||||||
$pos_622 = $this->pos;
|
$pos_641 = $this->pos;
|
||||||
$_621 = NULL;
|
$_640 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_621 = FALSE; break; }
|
else { $_640 = 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 { $_621 = FALSE; break; }
|
else { $_640 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_621 = FALSE; break; }
|
else { $_640 = FALSE; break; }
|
||||||
$_621 = TRUE; break;
|
$_640 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_621 === FALSE) {
|
if( $_640 === FALSE) {
|
||||||
$result = $res_622;
|
$result = $res_641;
|
||||||
$this->pos = $pos_622;
|
$this->pos = $pos_641;
|
||||||
unset( $res_622 );
|
unset( $res_641 );
|
||||||
unset( $pos_622 );
|
unset( $pos_641 );
|
||||||
}
|
}
|
||||||
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" );
|
||||||
@ -3776,36 +3882,36 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_632 = FALSE; break;
|
$_651 = FALSE; break;
|
||||||
}
|
}
|
||||||
$res_625 = $result;
|
$res_644 = $result;
|
||||||
$pos_625 = $this->pos;
|
$pos_644 = $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_625;
|
$result = $res_644;
|
||||||
$this->pos = $pos_625;
|
$this->pos = $pos_644;
|
||||||
unset( $res_625 );
|
unset( $res_644 );
|
||||||
unset( $pos_625 );
|
unset( $pos_644 );
|
||||||
}
|
}
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_632 = FALSE; break; }
|
else { $_651 = 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 { $_632 = FALSE; break; }
|
else { $_651 = 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 { $_632 = FALSE; break; }
|
else { $_651 = 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 { $_632 = FALSE; break; }
|
else { $_651 = FALSE; break; }
|
||||||
$_632 = TRUE; break;
|
$_651 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_632 === TRUE ) { return $this->finalise($result); }
|
if( $_651 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_632 === FALSE) { return FALSE; }
|
if( $_651 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3913,62 +4019,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);
|
||||||
$_645 = NULL;
|
$_664 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_645 = FALSE; break; }
|
else { $_664 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_636 = $result;
|
$res_655 = $result;
|
||||||
$pos_636 = $this->pos;
|
$pos_655 = $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_636;
|
$result = $res_655;
|
||||||
$this->pos = $pos_636;
|
$this->pos = $pos_655;
|
||||||
$_645 = FALSE; break;
|
$_664 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_636;
|
$result = $res_655;
|
||||||
$this->pos = $pos_636;
|
$this->pos = $pos_655;
|
||||||
}
|
}
|
||||||
$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 { $_645 = FALSE; break; }
|
else { $_664 = FALSE; break; }
|
||||||
$res_642 = $result;
|
$res_661 = $result;
|
||||||
$pos_642 = $this->pos;
|
$pos_661 = $this->pos;
|
||||||
$_641 = NULL;
|
$_660 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_641 = FALSE; break; }
|
else { $_660 = 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 { $_641 = FALSE; break; }
|
else { $_660 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_641 = FALSE; break; }
|
else { $_660 = FALSE; break; }
|
||||||
$_641 = TRUE; break;
|
$_660 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_641 === FALSE) {
|
if( $_660 === FALSE) {
|
||||||
$result = $res_642;
|
$result = $res_661;
|
||||||
$this->pos = $pos_642;
|
$this->pos = $pos_661;
|
||||||
unset( $res_642 );
|
unset( $res_661 );
|
||||||
unset( $pos_642 );
|
unset( $pos_661 );
|
||||||
}
|
}
|
||||||
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 { $_645 = FALSE; break; }
|
else { $_664 = FALSE; break; }
|
||||||
$_645 = TRUE; break;
|
$_664 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_645 === TRUE ) { return $this->finalise($result); }
|
if( $_664 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_645 === FALSE) { return FALSE; }
|
if( $_664 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4051,27 +4157,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);
|
||||||
$_653 = NULL;
|
$_672 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_653 = FALSE; break; }
|
else { $_672 = 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 { $_653 = FALSE; break; }
|
else { $_672 = 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 { $_653 = FALSE; break; }
|
else { $_672 = 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 { $_653 = FALSE; break; }
|
else { $_672 = FALSE; break; }
|
||||||
$_653 = TRUE; break;
|
$_672 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_653 === TRUE ) { return $this->finalise($result); }
|
if( $_672 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_653 === FALSE) { return FALSE; }
|
if( $_672 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4087,78 +4193,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);
|
||||||
$_668 = NULL;
|
$_687 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_668 = FALSE; break; }
|
else { $_687 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
$res_657 = $result;
|
$res_676 = $result;
|
||||||
$pos_657 = $this->pos;
|
$pos_676 = $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_657;
|
$result = $res_676;
|
||||||
$this->pos = $pos_657;
|
$this->pos = $pos_676;
|
||||||
$_668 = FALSE; break;
|
$_687 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_657;
|
$result = $res_676;
|
||||||
$this->pos = $pos_657;
|
$this->pos = $pos_676;
|
||||||
}
|
}
|
||||||
$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 { $_668 = FALSE; break; }
|
else { $_687 = FALSE; break; }
|
||||||
$res_667 = $result;
|
$res_686 = $result;
|
||||||
$pos_667 = $this->pos;
|
$pos_686 = $this->pos;
|
||||||
$_666 = NULL;
|
$_685 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_663 = $result;
|
$res_682 = $result;
|
||||||
$pos_663 = $this->pos;
|
$pos_682 = $this->pos;
|
||||||
$_662 = NULL;
|
$_681 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_662 = FALSE; break; }
|
else { $_681 = 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 { $_662 = FALSE; break; }
|
else { $_681 = FALSE; break; }
|
||||||
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->whitespace( ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_662 = FALSE; break; }
|
else { $_681 = FALSE; break; }
|
||||||
$_662 = TRUE; break;
|
$_681 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_662 === FALSE) {
|
if( $_681 === FALSE) {
|
||||||
$result = $res_663;
|
$result = $res_682;
|
||||||
$this->pos = $pos_663;
|
$this->pos = $pos_682;
|
||||||
unset( $res_663 );
|
unset( $res_682 );
|
||||||
unset( $pos_663 );
|
unset( $pos_682 );
|
||||||
}
|
}
|
||||||
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 { $_666 = FALSE; break; }
|
else { $_685 = FALSE; break; }
|
||||||
$_666 = TRUE; break;
|
$_685 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_666 === TRUE ) {
|
if( $_685 === TRUE ) {
|
||||||
$result = $res_667;
|
$result = $res_686;
|
||||||
$this->pos = $pos_667;
|
$this->pos = $pos_686;
|
||||||
$_668 = FALSE; break;
|
$_687 = FALSE; break;
|
||||||
}
|
}
|
||||||
if( $_666 === FALSE) {
|
if( $_685 === FALSE) {
|
||||||
$result = $res_667;
|
$result = $res_686;
|
||||||
$this->pos = $pos_667;
|
$this->pos = $pos_686;
|
||||||
}
|
}
|
||||||
$_668 = TRUE; break;
|
$_687 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_668 === TRUE ) { return $this->finalise($result); }
|
if( $_687 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_668 === FALSE) { return FALSE; }
|
if( $_687 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4173,57 +4279,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);
|
||||||
$_680 = NULL;
|
$_699 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_680 = FALSE; break; }
|
else { $_699 = 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" );
|
||||||
$_674 = NULL;
|
$_693 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( 'end_' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_674 = FALSE; break; }
|
else { $_693 = 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 { $_674 = FALSE; break; }
|
else { $_693 = FALSE; break; }
|
||||||
$_674 = TRUE; break;
|
$_693 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_674 === TRUE ) {
|
if( $_693 === TRUE ) {
|
||||||
$subres = $result; $result = array_pop($stack);
|
$subres = $result; $result = array_pop($stack);
|
||||||
$this->store( $result, $subres, 'Tag' );
|
$this->store( $result, $subres, 'Tag' );
|
||||||
}
|
}
|
||||||
if( $_674 === FALSE) {
|
if( $_693 === FALSE) {
|
||||||
$result = array_pop($stack);
|
$result = array_pop($stack);
|
||||||
$_680 = FALSE; break;
|
$_699 = FALSE; break;
|
||||||
}
|
}
|
||||||
$res_679 = $result;
|
$res_698 = $result;
|
||||||
$pos_679 = $this->pos;
|
$pos_698 = $this->pos;
|
||||||
$_678 = NULL;
|
$_697 = 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 { $_678 = FALSE; break; }
|
else { $_697 = FALSE; break; }
|
||||||
$_678 = TRUE; break;
|
$_697 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_678 === TRUE ) {
|
if( $_697 === TRUE ) {
|
||||||
$result = $res_679;
|
$result = $res_698;
|
||||||
$this->pos = $pos_679;
|
$this->pos = $pos_698;
|
||||||
$_680 = FALSE; break;
|
$_699 = FALSE; break;
|
||||||
}
|
}
|
||||||
if( $_678 === FALSE) {
|
if( $_697 === FALSE) {
|
||||||
$result = $res_679;
|
$result = $res_698;
|
||||||
$this->pos = $pos_679;
|
$this->pos = $pos_698;
|
||||||
}
|
}
|
||||||
$_680 = TRUE; break;
|
$_699 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_680 === TRUE ) { return $this->finalise($result); }
|
if( $_699 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_680 === FALSE) { return FALSE; }
|
if( $_699 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4239,85 +4345,129 @@ 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);
|
||||||
$_685 = NULL;
|
$_704 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_682 = $result;
|
$res_701 = $result;
|
||||||
$pos_682 = $this->pos;
|
$pos_701 = $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 );
|
||||||
$_685 = TRUE; break;
|
$_704 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_682;
|
$result = $res_701;
|
||||||
$this->pos = $pos_682;
|
$this->pos = $pos_701;
|
||||||
$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 );
|
||||||
$_685 = TRUE; break;
|
$_704 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_682;
|
$result = $res_701;
|
||||||
$this->pos = $pos_682;
|
$this->pos = $pos_701;
|
||||||
$_685 = FALSE; break;
|
$_704 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_685 === TRUE ) { return $this->finalise($result); }
|
if( $_704 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_685 === FALSE) { return FALSE; }
|
if( $_704 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Comment: "<%--" (!"--%>" /(?s)./)+ "--%>" */
|
/* CommentWithContent: '<%--' ( !"--%>" /(?s)./ )+ '--%>' */
|
||||||
protected $match_Comment_typestack = array('Comment');
|
protected $match_CommentWithContent_typestack = array('CommentWithContent');
|
||||||
function match_Comment ($stack = array()) {
|
function match_CommentWithContent ($stack = array()) {
|
||||||
$matchrule = "Comment"; $result = $this->construct($matchrule, $matchrule, null);
|
$matchrule = "CommentWithContent"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
$_693 = NULL;
|
$_712 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '<%--' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '<%--' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_693 = FALSE; break; }
|
else { $_712 = FALSE; break; }
|
||||||
$count = 0;
|
$count = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
$res_691 = $result;
|
$res_710 = $result;
|
||||||
$pos_691 = $this->pos;
|
$pos_710 = $this->pos;
|
||||||
$_690 = NULL;
|
$_709 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_688 = $result;
|
$res_707 = $result;
|
||||||
$pos_688 = $this->pos;
|
$pos_707 = $this->pos;
|
||||||
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$result = $res_688;
|
$result = $res_707;
|
||||||
$this->pos = $pos_688;
|
$this->pos = $pos_707;
|
||||||
$_690 = FALSE; break;
|
$_709 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_688;
|
$result = $res_707;
|
||||||
$this->pos = $pos_688;
|
$this->pos = $pos_707;
|
||||||
}
|
}
|
||||||
if (( $subres = $this->rx( '/(?s)./' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->rx( '/(?s)./' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_690 = FALSE; break; }
|
else { $_709 = FALSE; break; }
|
||||||
$_690 = TRUE; break;
|
$_709 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_690 === FALSE) {
|
if( $_709 === FALSE) {
|
||||||
$result = $res_691;
|
$result = $res_710;
|
||||||
$this->pos = $pos_691;
|
$this->pos = $pos_710;
|
||||||
unset( $res_691 );
|
unset( $res_710 );
|
||||||
unset( $pos_691 );
|
unset( $pos_710 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
}
|
}
|
||||||
if ($count > 0) { }
|
if ($count > 0) { }
|
||||||
else { $_693 = FALSE; break; }
|
else { $_712 = FALSE; break; }
|
||||||
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) { $result["text"] .= $subres; }
|
if (( $subres = $this->literal( '--%>' ) ) !== FALSE) { $result["text"] .= $subres; }
|
||||||
else { $_693 = FALSE; break; }
|
else { $_712 = FALSE; break; }
|
||||||
$_693 = TRUE; break;
|
$_712 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_693 === TRUE ) { return $this->finalise($result); }
|
if( $_712 === TRUE ) { return $this->finalise($result); }
|
||||||
if( $_693 === FALSE) { return FALSE; }
|
if( $_712 === FALSE) { return FALSE; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* EmptyComment: '<%----%>' */
|
||||||
|
protected $match_EmptyComment_typestack = array('EmptyComment');
|
||||||
|
function match_EmptyComment ($stack = array()) {
|
||||||
|
$matchrule = "EmptyComment"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
|
if (( $subres = $this->literal( '<%----%>' ) ) !== FALSE) {
|
||||||
|
$result["text"] .= $subres;
|
||||||
|
return $this->finalise($result);
|
||||||
|
}
|
||||||
|
else { return FALSE; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Comment: :EmptyComment | :CommentWithContent */
|
||||||
|
protected $match_Comment_typestack = array('Comment');
|
||||||
|
function match_Comment ($stack = array()) {
|
||||||
|
$matchrule = "Comment"; $result = $this->construct($matchrule, $matchrule, null);
|
||||||
|
$_718 = NULL;
|
||||||
|
do {
|
||||||
|
$res_715 = $result;
|
||||||
|
$pos_715 = $this->pos;
|
||||||
|
$matcher = 'match_'.'EmptyComment'; $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, "EmptyComment" );
|
||||||
|
$_718 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_715;
|
||||||
|
$this->pos = $pos_715;
|
||||||
|
$matcher = 'match_'.'CommentWithContent'; $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, "CommentWithContent" );
|
||||||
|
$_718 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_715;
|
||||||
|
$this->pos = $pos_715;
|
||||||
|
$_718 = FALSE; break;
|
||||||
|
}
|
||||||
|
while(0);
|
||||||
|
if( $_718 === TRUE ) { return $this->finalise($result); }
|
||||||
|
if( $_718 === FALSE) { return FALSE; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4328,266 +4478,286 @@ class SSTemplateParser extends Parser implements TemplateParser
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TopTemplate: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
/* TopTemplate: (Comment | Translate | If | Require | CacheBlock | UncachedBlock | OldI18NTag | Include | ClosedBlock |
|
||||||
OpenBlock | MalformedBlock | MismatchedEndBlock | Injection | Text)+ */
|
OpenBlock | MalformedBlock | MismatchedEndBlock | MalformedBracketInjection | Injection | Text)+ */
|
||||||
protected $match_TopTemplate_typestack = array('TopTemplate','Template');
|
protected $match_TopTemplate_typestack = array('TopTemplate','Template');
|
||||||
function match_TopTemplate ($stack = array()) {
|
function match_TopTemplate ($stack = array()) {
|
||||||
$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_749 = $result;
|
$res_778 = $result;
|
||||||
$pos_749 = $this->pos;
|
$pos_778 = $this->pos;
|
||||||
$_748 = NULL;
|
$_777 = NULL;
|
||||||
do {
|
do {
|
||||||
$_746 = NULL;
|
$_775 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_695 = $result;
|
$res_720 = $result;
|
||||||
$pos_695 = $this->pos;
|
$pos_720 = $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 );
|
||||||
$_746 = TRUE; break;
|
$_775 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_695;
|
$result = $res_720;
|
||||||
$this->pos = $pos_695;
|
$this->pos = $pos_720;
|
||||||
$_744 = NULL;
|
$_773 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_697 = $result;
|
$res_722 = $result;
|
||||||
$pos_697 = $this->pos;
|
$pos_722 = $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 );
|
||||||
$_744 = TRUE; break;
|
$_773 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_697;
|
$result = $res_722;
|
||||||
$this->pos = $pos_697;
|
$this->pos = $pos_722;
|
||||||
$_742 = NULL;
|
$_771 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_699 = $result;
|
$res_724 = $result;
|
||||||
$pos_699 = $this->pos;
|
$pos_724 = $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 );
|
||||||
$_742 = TRUE; break;
|
$_771 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_699;
|
$result = $res_724;
|
||||||
$this->pos = $pos_699;
|
$this->pos = $pos_724;
|
||||||
$_740 = NULL;
|
$_769 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_701 = $result;
|
$res_726 = $result;
|
||||||
$pos_701 = $this->pos;
|
$pos_726 = $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 );
|
||||||
$_740 = TRUE; break;
|
$_769 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_701;
|
$result = $res_726;
|
||||||
$this->pos = $pos_701;
|
$this->pos = $pos_726;
|
||||||
$_738 = NULL;
|
$_767 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_703 = $result;
|
$res_728 = $result;
|
||||||
$pos_703 = $this->pos;
|
$pos_728 = $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 );
|
||||||
$_738 = TRUE; break;
|
$_767 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_703;
|
$result = $res_728;
|
||||||
$this->pos = $pos_703;
|
$this->pos = $pos_728;
|
||||||
$_736 = NULL;
|
$_765 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_705 = $result;
|
$res_730 = $result;
|
||||||
$pos_705 = $this->pos;
|
$pos_730 = $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 );
|
||||||
$_736 = TRUE; break;
|
$_765 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_705;
|
$result = $res_730;
|
||||||
$this->pos = $pos_705;
|
$this->pos = $pos_730;
|
||||||
$_734 = NULL;
|
$_763 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_707 = $result;
|
$res_732 = $result;
|
||||||
$pos_707 = $this->pos;
|
$pos_732 = $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 );
|
||||||
$_734 = TRUE; break;
|
$_763 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_707;
|
$result = $res_732;
|
||||||
$this->pos = $pos_707;
|
$this->pos = $pos_732;
|
||||||
$_732 = NULL;
|
$_761 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_709 = $result;
|
$res_734 = $result;
|
||||||
$pos_709 = $this->pos;
|
$pos_734 = $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 );
|
||||||
$_732 = TRUE; break;
|
$_761 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_709;
|
$result = $res_734;
|
||||||
$this->pos = $pos_709;
|
$this->pos = $pos_734;
|
||||||
$_730 = NULL;
|
$_759 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_711 = $result;
|
$res_736 = $result;
|
||||||
$pos_711 = $this->pos;
|
$pos_736 = $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 );
|
||||||
$_730 = TRUE; break;
|
$_759 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_711;
|
$result = $res_736;
|
||||||
$this->pos = $pos_711;
|
$this->pos = $pos_736;
|
||||||
$_728 = NULL;
|
$_757 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_713 = $result;
|
$res_738 = $result;
|
||||||
$pos_713 = $this->pos;
|
$pos_738 = $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 );
|
||||||
$_728 = TRUE; break;
|
$_757 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_713;
|
$result = $res_738;
|
||||||
$this->pos = $pos_713;
|
$this->pos = $pos_738;
|
||||||
$_726 = NULL;
|
$_755 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_715 = $result;
|
$res_740 = $result;
|
||||||
$pos_715 = $this->pos;
|
$pos_740 = $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 );
|
||||||
$_726 = TRUE; break;
|
$_755 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_715;
|
$result = $res_740;
|
||||||
$this->pos = $pos_715;
|
$this->pos = $pos_740;
|
||||||
$_724 = NULL;
|
$_753 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_717 = $result;
|
$res_742 = $result;
|
||||||
$pos_717 = $this->pos;
|
$pos_742 = $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 );
|
||||||
$_724 = TRUE; break;
|
$_753 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_717;
|
$result = $res_742;
|
||||||
$this->pos = $pos_717;
|
$this->pos = $pos_742;
|
||||||
$_722 = NULL;
|
$_751 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_719 = $result;
|
$res_744 = $result;
|
||||||
$pos_719 = $this->pos;
|
$pos_744 = $this->pos;
|
||||||
$matcher = 'match_'.'Injection'; $key = $matcher; $pos = $this->pos;
|
$matcher = 'match_'.'MalformedBracketInjection'; $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 );
|
||||||
$_722 = TRUE; break;
|
$_751 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_719;
|
$result = $res_744;
|
||||||
$this->pos = $pos_719;
|
$this->pos = $pos_744;
|
||||||
$matcher = 'match_'.'Text'; $key = $matcher; $pos = $this->pos;
|
$_749 = NULL;
|
||||||
$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
|
do {
|
||||||
if ($subres !== FALSE) {
|
$res_746 = $result;
|
||||||
$this->store( $result, $subres );
|
$pos_746 = $this->pos;
|
||||||
$_722 = TRUE; break;
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_749 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_746;
|
||||||
|
$this->pos = $pos_746;
|
||||||
|
$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))) ) );
|
||||||
|
if ($subres !== FALSE) {
|
||||||
|
$this->store( $result, $subres );
|
||||||
|
$_749 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_746;
|
||||||
|
$this->pos = $pos_746;
|
||||||
|
$_749 = FALSE; break;
|
||||||
}
|
}
|
||||||
$result = $res_719;
|
while(0);
|
||||||
$this->pos = $pos_719;
|
if( $_749 === TRUE ) {
|
||||||
$_722 = FALSE; break;
|
$_751 = TRUE; break;
|
||||||
|
}
|
||||||
|
$result = $res_744;
|
||||||
|
$this->pos = $pos_744;
|
||||||
|
$_751 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_722 === TRUE ) {
|
if( $_751 === TRUE ) {
|
||||||
$_724 = TRUE; break;
|
$_753 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_717;
|
$result = $res_742;
|
||||||
$this->pos = $pos_717;
|
$this->pos = $pos_742;
|
||||||
$_724 = FALSE; break;
|
$_753 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_724 === TRUE ) { $_726 = TRUE; break; }
|
if( $_753 === TRUE ) { $_755 = TRUE; break; }
|
||||||
$result = $res_715;
|
$result = $res_740;
|
||||||
$this->pos = $pos_715;
|
$this->pos = $pos_740;
|
||||||
$_726 = FALSE; break;
|
$_755 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_726 === TRUE ) { $_728 = TRUE; break; }
|
if( $_755 === TRUE ) { $_757 = TRUE; break; }
|
||||||
$result = $res_713;
|
$result = $res_738;
|
||||||
$this->pos = $pos_713;
|
$this->pos = $pos_738;
|
||||||
$_728 = FALSE; break;
|
$_757 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_728 === TRUE ) { $_730 = TRUE; break; }
|
if( $_757 === TRUE ) { $_759 = TRUE; break; }
|
||||||
$result = $res_711;
|
$result = $res_736;
|
||||||
$this->pos = $pos_711;
|
$this->pos = $pos_736;
|
||||||
$_730 = FALSE; break;
|
$_759 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_730 === TRUE ) { $_732 = TRUE; break; }
|
if( $_759 === TRUE ) { $_761 = TRUE; break; }
|
||||||
$result = $res_709;
|
$result = $res_734;
|
||||||
$this->pos = $pos_709;
|
$this->pos = $pos_734;
|
||||||
$_732 = FALSE; break;
|
$_761 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_732 === TRUE ) { $_734 = TRUE; break; }
|
if( $_761 === TRUE ) { $_763 = TRUE; break; }
|
||||||
$result = $res_707;
|
$result = $res_732;
|
||||||
$this->pos = $pos_707;
|
$this->pos = $pos_732;
|
||||||
$_734 = FALSE; break;
|
$_763 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_734 === TRUE ) { $_736 = TRUE; break; }
|
if( $_763 === TRUE ) { $_765 = TRUE; break; }
|
||||||
$result = $res_705;
|
$result = $res_730;
|
||||||
$this->pos = $pos_705;
|
$this->pos = $pos_730;
|
||||||
$_736 = FALSE; break;
|
$_765 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_736 === TRUE ) { $_738 = TRUE; break; }
|
if( $_765 === TRUE ) { $_767 = TRUE; break; }
|
||||||
$result = $res_703;
|
$result = $res_728;
|
||||||
$this->pos = $pos_703;
|
$this->pos = $pos_728;
|
||||||
$_738 = FALSE; break;
|
$_767 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_738 === TRUE ) { $_740 = TRUE; break; }
|
if( $_767 === TRUE ) { $_769 = TRUE; break; }
|
||||||
$result = $res_701;
|
$result = $res_726;
|
||||||
$this->pos = $pos_701;
|
$this->pos = $pos_726;
|
||||||
$_740 = FALSE; break;
|
$_769 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_740 === TRUE ) { $_742 = TRUE; break; }
|
if( $_769 === TRUE ) { $_771 = TRUE; break; }
|
||||||
$result = $res_699;
|
$result = $res_724;
|
||||||
$this->pos = $pos_699;
|
$this->pos = $pos_724;
|
||||||
$_742 = FALSE; break;
|
$_771 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_742 === TRUE ) { $_744 = TRUE; break; }
|
if( $_771 === TRUE ) { $_773 = TRUE; break; }
|
||||||
$result = $res_697;
|
$result = $res_722;
|
||||||
$this->pos = $pos_697;
|
$this->pos = $pos_722;
|
||||||
$_744 = FALSE; break;
|
$_773 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_744 === TRUE ) { $_746 = TRUE; break; }
|
if( $_773 === TRUE ) { $_775 = TRUE; break; }
|
||||||
$result = $res_695;
|
$result = $res_720;
|
||||||
$this->pos = $pos_695;
|
$this->pos = $pos_720;
|
||||||
$_746 = FALSE; break;
|
$_775 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_746 === FALSE) { $_748 = FALSE; break; }
|
if( $_775 === FALSE) { $_777 = FALSE; break; }
|
||||||
$_748 = TRUE; break;
|
$_777 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_748 === FALSE) {
|
if( $_777 === FALSE) {
|
||||||
$result = $res_749;
|
$result = $res_778;
|
||||||
$this->pos = $pos_749;
|
$this->pos = $pos_778;
|
||||||
unset( $res_749 );
|
unset( $res_778 );
|
||||||
unset( $pos_749 );
|
unset( $pos_778 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
@ -4620,195 +4790,195 @@ 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_788 = $result;
|
$res_817 = $result;
|
||||||
$pos_788 = $this->pos;
|
$pos_817 = $this->pos;
|
||||||
$_787 = NULL;
|
$_816 = NULL;
|
||||||
do {
|
do {
|
||||||
$_785 = NULL;
|
$_814 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_750 = $result;
|
$res_779 = $result;
|
||||||
$pos_750 = $this->pos;
|
$pos_779 = $this->pos;
|
||||||
if (( $subres = $this->rx( '/ [^<${\\\\]+ /' ) ) !== FALSE) {
|
if (( $subres = $this->rx( '/ [^<${\\\\]+ /' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_785 = TRUE; break;
|
$_814 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_750;
|
$result = $res_779;
|
||||||
$this->pos = $pos_750;
|
$this->pos = $pos_779;
|
||||||
$_783 = NULL;
|
$_812 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_752 = $result;
|
$res_781 = $result;
|
||||||
$pos_752 = $this->pos;
|
$pos_781 = $this->pos;
|
||||||
if (( $subres = $this->rx( '/ (\\\\.) /' ) ) !== FALSE) {
|
if (( $subres = $this->rx( '/ (\\\\.) /' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
$_783 = TRUE; break;
|
$_812 = TRUE; break;
|
||||||
}
|
}
|
||||||
$result = $res_752;
|
$result = $res_781;
|
||||||
$this->pos = $pos_752;
|
$this->pos = $pos_781;
|
||||||
$_781 = NULL;
|
$_810 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_754 = $result;
|
$res_783 = $result;
|
||||||
$pos_754 = $this->pos;
|
$pos_783 = $this->pos;
|
||||||
$_757 = NULL;
|
$_786 = 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 { $_757 = FALSE; break; }
|
else { $_786 = FALSE; break; }
|
||||||
$res_756 = $result;
|
$res_785 = $result;
|
||||||
$pos_756 = $this->pos;
|
$pos_785 = $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_756;
|
$result = $res_785;
|
||||||
$this->pos = $pos_756;
|
$this->pos = $pos_785;
|
||||||
$_757 = FALSE; break;
|
$_786 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_756;
|
$result = $res_785;
|
||||||
$this->pos = $pos_756;
|
$this->pos = $pos_785;
|
||||||
}
|
}
|
||||||
$_757 = TRUE; break;
|
$_786 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_757 === TRUE ) { $_781 = TRUE; break; }
|
if( $_786 === TRUE ) { $_810 = TRUE; break; }
|
||||||
$result = $res_754;
|
$result = $res_783;
|
||||||
$this->pos = $pos_754;
|
$this->pos = $pos_783;
|
||||||
$_779 = NULL;
|
$_808 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_759 = $result;
|
$res_788 = $result;
|
||||||
$pos_759 = $this->pos;
|
$pos_788 = $this->pos;
|
||||||
$_764 = NULL;
|
$_793 = 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 { $_764 = FALSE; break; }
|
else { $_793 = FALSE; break; }
|
||||||
$res_763 = $result;
|
$res_792 = $result;
|
||||||
$pos_763 = $this->pos;
|
$pos_792 = $this->pos;
|
||||||
$_762 = NULL;
|
$_791 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) {
|
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
}
|
}
|
||||||
else { $_762 = FALSE; break; }
|
else { $_791 = FALSE; break; }
|
||||||
$_762 = TRUE; break;
|
$_791 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_762 === TRUE ) {
|
if( $_791 === TRUE ) {
|
||||||
$result = $res_763;
|
$result = $res_792;
|
||||||
$this->pos = $pos_763;
|
$this->pos = $pos_792;
|
||||||
$_764 = FALSE; break;
|
$_793 = FALSE; break;
|
||||||
}
|
}
|
||||||
if( $_762 === FALSE) {
|
if( $_791 === FALSE) {
|
||||||
$result = $res_763;
|
$result = $res_792;
|
||||||
$this->pos = $pos_763;
|
$this->pos = $pos_792;
|
||||||
}
|
}
|
||||||
$_764 = TRUE; break;
|
$_793 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_764 === TRUE ) { $_779 = TRUE; break; }
|
if( $_793 === TRUE ) { $_808 = TRUE; break; }
|
||||||
$result = $res_759;
|
$result = $res_788;
|
||||||
$this->pos = $pos_759;
|
$this->pos = $pos_788;
|
||||||
$_777 = NULL;
|
$_806 = NULL;
|
||||||
do {
|
do {
|
||||||
$res_766 = $result;
|
$res_795 = $result;
|
||||||
$pos_766 = $this->pos;
|
$pos_795 = $this->pos;
|
||||||
$_769 = NULL;
|
$_798 = 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 { $_769 = FALSE; break; }
|
else { $_798 = FALSE; break; }
|
||||||
$res_768 = $result;
|
$res_797 = $result;
|
||||||
$pos_768 = $this->pos;
|
$pos_797 = $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_768;
|
$result = $res_797;
|
||||||
$this->pos = $pos_768;
|
$this->pos = $pos_797;
|
||||||
$_769 = FALSE; break;
|
$_798 = FALSE; break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result = $res_768;
|
$result = $res_797;
|
||||||
$this->pos = $pos_768;
|
$this->pos = $pos_797;
|
||||||
}
|
}
|
||||||
$_769 = TRUE; break;
|
$_798 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_769 === TRUE ) { $_777 = TRUE; break; }
|
if( $_798 === TRUE ) { $_806 = TRUE; break; }
|
||||||
$result = $res_766;
|
$result = $res_795;
|
||||||
$this->pos = $pos_766;
|
$this->pos = $pos_795;
|
||||||
$_775 = NULL;
|
$_804 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->literal( '{$' ) ) !== FALSE) {
|
if (( $subres = $this->literal( '{$' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
}
|
}
|
||||||
else { $_775 = FALSE; break; }
|
else { $_804 = FALSE; break; }
|
||||||
$res_774 = $result;
|
$res_803 = $result;
|
||||||
$pos_774 = $this->pos;
|
$pos_803 = $this->pos;
|
||||||
$_773 = NULL;
|
$_802 = NULL;
|
||||||
do {
|
do {
|
||||||
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) {
|
if (( $subres = $this->rx( '/[A-Za-z_]/' ) ) !== FALSE) {
|
||||||
$result["text"] .= $subres;
|
$result["text"] .= $subres;
|
||||||
}
|
}
|
||||||
else { $_773 = FALSE; break; }
|
else { $_802 = FALSE; break; }
|
||||||
$_773 = TRUE; break;
|
$_802 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_773 === TRUE ) {
|
if( $_802 === TRUE ) {
|
||||||
$result = $res_774;
|
$result = $res_803;
|
||||||
$this->pos = $pos_774;
|
$this->pos = $pos_803;
|
||||||
$_775 = FALSE; break;
|
$_804 = FALSE; break;
|
||||||
}
|
}
|
||||||
if( $_773 === FALSE) {
|
if( $_802 === FALSE) {
|
||||||
$result = $res_774;
|
$result = $res_803;
|
||||||
$this->pos = $pos_774;
|
$this->pos = $pos_803;
|
||||||
}
|
}
|
||||||
$_775 = TRUE; break;
|
$_804 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_775 === TRUE ) { $_777 = TRUE; break; }
|
if( $_804 === TRUE ) { $_806 = TRUE; break; }
|
||||||
$result = $res_766;
|
$result = $res_795;
|
||||||
$this->pos = $pos_766;
|
$this->pos = $pos_795;
|
||||||
$_777 = FALSE; break;
|
$_806 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_777 === TRUE ) { $_779 = TRUE; break; }
|
if( $_806 === TRUE ) { $_808 = TRUE; break; }
|
||||||
$result = $res_759;
|
$result = $res_788;
|
||||||
$this->pos = $pos_759;
|
$this->pos = $pos_788;
|
||||||
$_779 = FALSE; break;
|
$_808 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_779 === TRUE ) { $_781 = TRUE; break; }
|
if( $_808 === TRUE ) { $_810 = TRUE; break; }
|
||||||
$result = $res_754;
|
$result = $res_783;
|
||||||
$this->pos = $pos_754;
|
$this->pos = $pos_783;
|
||||||
$_781 = FALSE; break;
|
$_810 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_781 === TRUE ) { $_783 = TRUE; break; }
|
if( $_810 === TRUE ) { $_812 = TRUE; break; }
|
||||||
$result = $res_752;
|
$result = $res_781;
|
||||||
$this->pos = $pos_752;
|
$this->pos = $pos_781;
|
||||||
$_783 = FALSE; break;
|
$_812 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_783 === TRUE ) { $_785 = TRUE; break; }
|
if( $_812 === TRUE ) { $_814 = TRUE; break; }
|
||||||
$result = $res_750;
|
$result = $res_779;
|
||||||
$this->pos = $pos_750;
|
$this->pos = $pos_779;
|
||||||
$_785 = FALSE; break;
|
$_814 = FALSE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_785 === FALSE) { $_787 = FALSE; break; }
|
if( $_814 === FALSE) { $_816 = FALSE; break; }
|
||||||
$_787 = TRUE; break;
|
$_816 = TRUE; break;
|
||||||
}
|
}
|
||||||
while(0);
|
while(0);
|
||||||
if( $_787 === FALSE) {
|
if( $_816 === FALSE) {
|
||||||
$result = $res_788;
|
$result = $res_817;
|
||||||
$this->pos = $pos_788;
|
$this->pos = $pos_817;
|
||||||
unset( $res_788 );
|
unset( $res_817 );
|
||||||
unset( $pos_788 );
|
unset( $pos_817 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$count += 1;
|
$count += 1;
|
||||||
|
@ -321,16 +321,33 @@ Some more content
|
|||||||
Mixing content and <%-- multi
|
Mixing content and <%-- multi
|
||||||
line comment --%> Final final
|
line comment --%> Final final
|
||||||
content
|
content
|
||||||
|
<%--commentwithoutwhitespace--%>last content
|
||||||
SS;
|
SS;
|
||||||
$output = $this->render($input);
|
$actual = $this->render($input);
|
||||||
$shouldbe = <<<SS
|
$expected = <<<SS
|
||||||
This is my templateThis is some contentFinal content
|
This is my templateThis is some contentFinal content
|
||||||
|
|
||||||
Some more content
|
Some more content
|
||||||
Mixing content and Final final
|
Mixing content and Final final
|
||||||
content
|
content
|
||||||
|
last content
|
||||||
SS;
|
SS;
|
||||||
$this->assertEquals($shouldbe, $output);
|
$this->assertEquals($expected, $actual);
|
||||||
|
|
||||||
|
$input = <<<SS
|
||||||
|
<%--
|
||||||
|
|
||||||
|
--%>empty comment1
|
||||||
|
<%-- --%>empty comment2
|
||||||
|
<%----%>empty comment3
|
||||||
|
SS;
|
||||||
|
$actual = $this->render($input);
|
||||||
|
$expected = <<<SS
|
||||||
|
empty comment1
|
||||||
|
empty comment2
|
||||||
|
empty comment3
|
||||||
|
SS;
|
||||||
|
$this->assertEquals($expected, $actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testBasicText()
|
public function testBasicText()
|
||||||
@ -360,6 +377,15 @@ SS;
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException SilverStripe\View\SSTemplateParseException
|
||||||
|
* @expectedExceptionMessageRegExp /Malformed bracket injection {\$Value(.*)/
|
||||||
|
*/
|
||||||
|
public function testBasicInjectionMismatchedBrackets()
|
||||||
|
{
|
||||||
|
$this->render('A {$Value here');
|
||||||
|
$this->fail("Parser didn't error when encountering mismatched brackets in an injection");
|
||||||
|
}
|
||||||
|
|
||||||
public function testGlobalVariableCalls()
|
public function testGlobalVariableCalls()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user