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.30 2003/01/18 18:38:12 nilsson Exp $ + // $Id: Pike.pmod,v 1.31 2003/03/13 22:05:36 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, -  "%":1, -  "*":1, -  "*=":2, -  "&":1, -  "|":1, -  "^":1, + ([ "/":1, "/=":2, +  "%":1, "%=":2, +  "*":1, "*=":2, +  "&":1, "&=":2, +  "|":1, "|=":2, +  "^":1, "^=":2,    "~":1, -  "+=":2, "+":1, -  "<<":2, "<=":2, "<":1, -  ">>":2, ">=":2, ">":1, +  "+":1, "+=":2, +  "-":1, "-=":2, +  "<<=":3, "<<":2, "<=":2, "<":1, +  ">>=":3, ">>":2, ">=":2, ">":1,    "!=":2, "!":1,    "==":2, "=":1,    "()":2, -  "->=":3, "->":2, "-":1, +  "->=":3, "->":2,    "[]=":3, "[]":2 ]);      //! 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)