File: php_parser_constants.h

package info (click to toggle)
codelite 14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 112,816 kB
  • sloc: cpp: 483,662; ansic: 150,144; php: 9,569; lex: 4,186; python: 3,417; yacc: 2,820; sh: 1,147; makefile: 52; xml: 13
file content (78 lines) | stat: -rw-r--r-- 2,758 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// Copyright            : (C) 2015 Eran Ifrah
// File name            : php_parser_constants.h
//
// -------------------------------------------------------------------------
// A
//              _____           _      _     _ _
//             /  __ \         | |    | |   (_) |
//             | /  \/ ___   __| | ___| |    _| |_ ___
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
//              \____/\___/ \__,_|\___\_____/_|\__\___|
//
//                                                  F i l e
//
//    This program is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation; either version 2 of the License, or
//    (at your option) any later version.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

#ifndef PHP_PARSER_CONSTANTS_H
#define PHP_PARSER_CONSTANTS_H

// YACC and FLEX is based on:
// http://svn.php.net/repository/php/php-src/trunk/Zend/zend_language_parser.y
// http://svn.php.net/repository/php/php-src/trunk/Zend/zend_language_scanner.l

#include <wx/string.h>

#ifdef YYSTYPE
#undef YYSTYPE
#endif
#define YYSTYPE wxString

#include "php_parser.cpp.h"
#include <vector>
#include <wx/arrstr.h>
#include <vector>
#include <map>
#include <list>

extern int php_lineno;

enum PHPModifier {
    PHP_Attr_None        = 0x00000000,
    PHP_Attr_Static      = 0x00000001,
    PHP_Attr_Abstract    = 0x00000002,
    PHP_Attr_Final       = 0x00000004,
    PHP_Access_Protected = 0x00000008,
    PHP_Access_Private   = 0x00000010,
    PHP_Access_Public    = 0x00000020,
    PHP_Attr_Const       = 0x00000040,
    PHP_Attr_Reference   = 0x00000080,
    PHP_Attr_Global      = 0x00000100
};

enum PHPEntryKind {
    PHP_Kind_File    = -2,                 // -2, needed for other purposes this is why we place under the 'PHP_Kind_First'
    PHP_Kind_Unknown = -1,                 // -1
    PHP_Kind_First = 0,                    // 0
    PHP_Kind_Function = PHP_Kind_First,    // 0
    PHP_Kind_Variable,                     // 1
    PHP_Kind_Constant,                     // 2
    PHP_Kind_Member,                       // 3
    PHP_Kind_This,                         // 4
    PHP_Kind_Namespace,                    // 5
    PHP_Kind_Class,                        // 6
    PHP_Kind_Max,                          // 7
};

extern wxString GetAttributes(size_t flags);

#endif // PHP_PARSER_CONSTANTS_H