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.29 2003/01/18 17:55:55 nilsson Exp $ + // $Id: Pike.pmod,v 1.30 2003/01/18 18:38:12 nilsson Exp $      //! This module parses and tokanizes 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,
pike.git/lib/modules/Parser.pmod/Pike.pmod:56:    pos++;    m_delete(state, "remains");    break;    }    pos = search(data, "*/");    if(pos==-1) {    state->in_token = 1;    state->remains += data[..sizeof(data)-2];    return ret;    } -  ret += ({ state->remains + data[..pos] }); +  ret += ({ state->remains + data[..pos+1] });    m_delete(state, "remains");    pos+=2;    break;       case "#\"":    int q,s;    pos=-1;    while(1) {    q = search(data,"\"",pos+1);    s = search(data,"\\",pos+1);