pike.git / lib / modules / Parser.pmod / Pike.pmod

version» Context lines:

pike.git/lib/modules/Parser.pmod/Pike.pmod:1:   //   // This file needs to support old pikes that e.g. don't understand   // "#pike". Some of them fail when they see an unknown cpp directive.   //   // #pike __REAL_VERSION__   // - // $Id: Pike.pmod,v 1.36 2004/10/30 12:00:44 mast Exp $ + // $Id: Pike.pmod,v 1.37 2004/11/26 04:27:25 nilsson Exp $      //! This module parses and tokenizes Pike source code.      inherit "C.pmod";      #define UNKNOWN_TOKEN \    error("Unknown pike token: %O\n", data[pos..pos+20])      static mapping(string : int) backquoteops =   ([ "/":1, "/=":2,
pike.git/lib/modules/Parser.pmod/Pike.pmod:244:       case '`':    {    int bqstart = pos;    while(data[pos]=='`')    ++pos;    if (pos - bqstart > 3) { // max. three ``` {    pos = bqstart;    UNKNOWN_TOKEN;    } -  int chars = backquoteops[data[pos..pos+2]] +  int chars = backquoteops[data[pos..pos+3]] +  || backquoteops[data[pos..pos+2]]    || backquoteops[data[pos..pos+1]]    || backquoteops[data[pos..pos]];    if (chars)    pos += chars;    else {    pos = bqstart;    UNKNOWN_TOKEN;    }    }    break;