lib/ParserGenerator/PHP/ParserGenerator/State.php
static function statecmp($a, $b)
    {
        for ($rc = 0; $rc == 0 && $a && $b;  $a = $a->bp, $b = $b->bp) {
            $rc = $a->rp->index - $b->rp->index;
            if ($rc === 0) {
                $rc = $a->dot - $b->dot;
            }
        }
        if ($rc == 0) {
            if ($a) {
                $rc = 1;
            }
            if ($b) {
                $rc = -1;
            }
        }
        return $rc;
    }
static function statecmp($a, $b)
    {
        for ($rc = 0; $rc == 0 && $a && $b;  $a = $a->bp, $b = $b->bp) {
            $rc = $a->rp->index - $b->rp->index;
            if ($rc === 0) {
                $rc = $a->dot - $b->dot;
            }
        }
        if ($rc == 0) {
            if ($a) {
                $rc = 1;
            }
            if ($b) {
                $rc = -1;
            }
        }
        return $rc;
    }
static function statecmp ( $ a , $ b ) { for ( $ rc = 0 ; $ rc == 0 && $ a && $ b ; $ a = $ a -> bp , $ b = $ b -> bp ) { $ rc = $ a -> rp -> index - $ b -> rp -> index ; if ( $ rc === 0 ) { $ rc = $ a -> dot - $ b -> dot ; } } if ( $ rc == 0 ) { if ( $ a ) { $ rc = 1 ; } if ( $ b ) { $ rc = - 1 ; } } return $ rc ; }
Compare two states based on their configurations

@param PHP_ParserGenerator_Config|0 $a
@param PHP_ParserGenerator_Config|0 $b
@return int
Compare two states based on their configurations