lib/ParserGenerator/PHP/ParserGenerator/Symbol.php
public static function same_symbol(PHP_ParserGenerator_Symbol $a, PHP_ParserGenerator_Symbol $b)
    {
        if ($a === $b) return 1;
        if ($a->type != self::MULTITERMINAL) return 0;
        if ($b->type != self::MULTITERMINAL) return 0;
        if ($a->nsubsym != $b->nsubsym) return 0;
        for ($i = 0; $i < $a->nsubsym; $i++) {
            if ($a->subsym[$i] != $b->subsym[$i]) return 0;
        }
        return 1;
    }
public static function same_symbol(PHP_ParserGenerator_Symbol $a, PHP_ParserGenerator_Symbol $b)
    {
        if ($a === $b) return 1;
        if ($a->type != self::MULTITERMINAL) return 0;
        if ($b->type != self::MULTITERMINAL) return 0;
        if ($a->nsubsym != $b->nsubsym) return 0;
        for ($i = 0; $i < $a->nsubsym; $i++) {
            if ($a->subsym[$i] != $b->subsym[$i]) return 0;
        }
        return 1;
    }
public static function same_symbol ( PHP_ParserGenerator_Symbol $ a , PHP_ParserGenerator_Symbol $ b ) { if ( $ a === $ b ) return 1 ; if ( $ a -> type != self :: MULTITERMINAL ) return 0 ; if ( $ b -> type != self :: MULTITERMINAL ) return 0 ; if ( $ a -> nsubsym != $ b -> nsubsym ) return 0 ; for ( $ i = 0 ; $ i < $ a -> nsubsym ; $ i ++ ) { if ( $ a -> subsym [ $ i ] != $ b -> subsym [ $ i ] ) return 0 ; } return 1 ; }
Return true if two symbols are the same.
Return true if two symbols are the same .