src/php/CTXParser/Parser.php
public function parseString($string)
    {
        $tokens = new Stack($this->tokenizer->tokenize($string));

        if ($tokens[0]->type === Tokenizer::T_EOF) {
            return new CTX\AccountInfoList();
        }

        $ctx = new CTX();
        $this->reduceStruct($tokens, $ctx);

        return $ctx->accountInfoList[0];
    }
public function parseString($string)
    {
        $tokens = new Stack($this->tokenizer->tokenize($string));

        if ($tokens[0]->type === Tokenizer::T_EOF) {
            return new CTX\AccountInfoList();
        }

        $ctx = new CTX();
        $this->reduceStruct($tokens, $ctx);

        return $ctx->accountInfoList[0];
    }
public function parseString ( $ string ) { $ tokens = new Stack ( $ this -> tokenizer -> tokenize ( $ string ) ) ; if ( $ tokens [ 0 ] -> type === Tokenizer :: T_EOF ) { return new CTX \ AccountInfoList ( ) ; } $ ctx = new CTX ( ) ; $ this -> reduceStruct ( $ tokens , $ ctx ) ; return $ ctx -> accountInfoList [ 0 ] ; }
Parse the given string

@param string $string
@return AccountInfoList
Parse the given string