pike.git / src / modules / Parser / pike.c

version» Context lines:

pike.git/src/modules/Parser/pike.c:17:   #include "builtin_functions.h"   #include "module_support.h"   #include "mapping.h"   #include "stralloc.h"   #include "program_id.h"   #include "block_alloc.h"   #include <ctype.h>      #include "parser.h"    + /*! @module Parser +  */ +  + /*! @module _parser +  */ +  + /*! @module _Pike +  *! +  *! Low-level helpers for @[Parser.Pike]. +  *! +  *! @note +  *! You probably want to use @[Parser.Pike] instead of this module. +  *! +  *! @seealso +  *! @[Parser.Pike], @[_C]. +  */ +    INLINE static int m_isidchar( unsigned int x )   {    if( (x >= 'a' && x <= 'z') || (x>='A' && x<='Z') || x>128 || x == '_')    return 1;    return 0;   }      INLINE static int m_isidchar2( unsigned int x )   {    if( (x >= 'a' && x <= 'z') || (x>='A' && x<='Z') || x>128 || x=='_' ||
pike.git/src/modules/Parser/pike.c:62:   #include "pike_tokenizer.h"   #undef TOKENIZE   #undef CHAR   #undef PUSH_TOKEN      static void do_free_arrayptr( struct array **x )   {    free_array( *x );   }    - /* @decl array(array(string)|string) tokenize(string code) -  * -  * Tokenize a string of Pike tokens. -  * -  * @returns -  * Returns an array with Pike-level tokens and the remainder (a -  * partial token), if any. + /*! @decl array(array(string)|string) tokenize(string code) +  *! +  *! Tokenize a string of Pike tokens. +  *! +  *! @returns +  *! Returns an array with Pike-level tokens and the remainder (a +  *! partial token), if any.    */   static void f_tokenize( INT32 args )   {    struct array *res;    struct pike_string *left_s = NULL; /* Make gcc happy. */    struct pike_string *data;    int left;    ONERROR tmp;       get_all_args("tokenize", args, "%W", &data);
pike.git/src/modules/Parser/pike.c:124:    if (!res->size) {    free_array(res);    push_empty_array();    }    else    push_array(res);    push_string( left_s );    f_aggregate( 2 );   }    + /*! @endmodule +  */    -  + /*! @endmodule +  */ +  + /*! @endmodule +  */ +    void init_parser_pike()   {    ADD_FUNCTION2("tokenize", f_tokenize,    tFunc(tStr,tArr(tOr(tArr(tStr),tStr))), 0, 0);   }      void exit_parser_pike()   {   }