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.35 2004/04/25 15:04:56 grubba Exp $ + // $Id: Pike.pmod,v 1.36 2004/10/30 12:00:44 mast 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:22:    "^":1, "^=":2,    "~":1,    "+":1, "+=":2,    "-":1, "-=":2,    "<<=":3, "<<":2, "<=":2, "<":1,    ">>=":3, ">>":2, ">=":2, ">":1,    "!=":2, "!":1,    "==":2, "=":1,    "()":2,    "->=":3, "->":2, -  "[]=":3, "[]":2 ]); +  "[]=":3, "[]":2, "[..]":4 ]);      //! Splits the @[data] string into an array of tokens. An additional   //! element with a newline will be added to the resulting array of   //! tokens. If the optional argument @[state] is provided the split   //! function is able to pause and resume splitting inside #"" and   //! /**/ tokens. The @[state] argument should be an initially empty   //! mapping, in which split will store its state between successive   //! calls.   array(string) split(string data, void|mapping state)   {