src/CoffeeScript/Parser.php
function yy_shift($yyNewState, $yyMajor, $yypMinor)
    {
        $this->yyidx++;
        if ($this->yyidx >= self::YYSTACKDEPTH) {
            $this->yyidx--;
            if (self::$yyTraceFILE) {
                fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
            }
            while ($this->yyidx >= 0) {
                $this->yy_pop_parser_stack();
            }
            /* Here code is inserted which will execute if the parser
            ** stack ever overflows */
            return;
        }
        $yytos = new yyStackEntry;
        $yytos->stateno = $yyNewState;
        $yytos->major = $yyMajor;
        $yytos->minor = $yypMinor;
        array_push($this->yystack, $yytos);
        if (self::$yyTraceFILE && $this->yyidx > 0) {
            fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
                $yyNewState);
            fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
            for ($i = 1; $i <= $this->yyidx; $i++) {
                fprintf(self::$yyTraceFILE, " %s",
                    self::tokenName($this->yystack[$i]->major));
            }
            fwrite(self::$yyTraceFILE,"\n");
        }
    }
function yy_shift($yyNewState, $yyMajor, $yypMinor)
    {
        $this->yyidx++;
        if ($this->yyidx >= self::YYSTACKDEPTH) {
            $this->yyidx--;
            if (self::$yyTraceFILE) {
                fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
            }
            while ($this->yyidx >= 0) {
                $this->yy_pop_parser_stack();
            }
            /* Here code is inserted which will execute if the parser
            ** stack ever overflows */
            return;
        }
        $yytos = new yyStackEntry;
        $yytos->stateno = $yyNewState;
        $yytos->major = $yyMajor;
        $yytos->minor = $yypMinor;
        array_push($this->yystack, $yytos);
        if (self::$yyTraceFILE && $this->yyidx > 0) {
            fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
                $yyNewState);
            fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
            for ($i = 1; $i <= $this->yyidx; $i++) {
                fprintf(self::$yyTraceFILE, " %s",
                    self::tokenName($this->yystack[$i]->major));
            }
            fwrite(self::$yyTraceFILE,"\n");
        }
    }
function yy_shift ( $ yyNewState , $ yyMajor , $ yypMinor ) { $ this -> yyidx ++ ; if ( $ this -> yyidx >= self :: YYSTACKDEPTH ) { $ this -> yyidx -- ; if ( self :: $ yyTraceFILE ) { fprintf ( self :: $ yyTraceFILE , "%sStack Overflow!\n" , self :: $ yyTracePrompt ) ; } while ( $ this -> yyidx >= 0 ) { $ this -> yy_pop_parser_stack ( ) ; } /* Here code is inserted which will execute if the parser
            ** stack ever overflows */ return ; } $ yytos = new yyStackEntry ; $ yytos -> stateno = $ yyNewState ; $ yytos -> major = $ yyMajor ; $ yytos -> minor = $ yypMinor ; array_push ( $ this -> yystack , $ yytos ) ; if ( self :: $ yyTraceFILE && $ this -> yyidx > 0 ) { fprintf ( self :: $ yyTraceFILE , "%sShift %d\n" , self :: $ yyTracePrompt , $ yyNewState ) ; fprintf ( self :: $ yyTraceFILE , "%sStack:" , self :: $ yyTracePrompt ) ; for ( $ i = 1 ; $ i <= $ this -> yyidx ; $ i ++ ) { fprintf ( self :: $ yyTraceFILE , " %s" , self :: tokenName ( $ this -> yystack [ $ i ] -> major ) ) ; } fwrite ( self :: $ yyTraceFILE , "\n" ) ; } }
Perform a shift action.
@param int The new state to shift in
@param int The major token to shift in
@param mixed the minor token to shift in
Perform a shift action .