basic callback support
[m6w6/ext-psi] / src / parser_proc.h
index c6fe15a6c4484c3773d013ccdefb3e1f0af8a933..d7f28a2e37ab3a6caf6ad9f7679d9c814d86b734 100644 (file)
@@ -8,66 +8,69 @@
 #define PSI_T_SET                              8
 #define PSI_T_LET                              9
 #define PSI_T_RETURN                          10
-#define PSI_T_LIB                             11
-#define PSI_T_STRING                          12
-#define PSI_T_EOF                             13
-#define PSI_T_EOS                             14
-#define PSI_T_QUOTED_STRING                   15
-#define PSI_T_ENUM                            16
-#define PSI_T_LBRACE                          17
-#define PSI_T_RBRACE                          18
-#define PSI_T_COMMA                           19
-#define PSI_T_EQUALS                          20
-#define PSI_T_STRUCT                          21
-#define PSI_T_COLON                           22
-#define PSI_T_LPAREN                          23
-#define PSI_T_NUMBER                          24
-#define PSI_T_RPAREN                          25
-#define PSI_T_BOOL                            26
-#define PSI_T_INT                             27
-#define PSI_T_FLOAT                           28
-#define PSI_T_CONST                           29
-#define PSI_T_NSNAME                          30
-#define PSI_T_TYPEDEF                         31
-#define PSI_T_VOID                            32
-#define PSI_T_LBRACKET                        33
-#define PSI_T_RBRACKET                        34
-#define PSI_T_ELLIPSIS                        35
-#define PSI_T_CHAR                            36
-#define PSI_T_SHORT                           37
-#define PSI_T_LONG                            38
-#define PSI_T_DOUBLE                          39
-#define PSI_T_UNSIGNED                        40
-#define PSI_T_SIGNED                          41
-#define PSI_T_INT8                            42
-#define PSI_T_UINT8                           43
-#define PSI_T_INT16                           44
-#define PSI_T_UINT16                          45
-#define PSI_T_INT32                           46
-#define PSI_T_UINT32                          47
-#define PSI_T_INT64                           48
-#define PSI_T_UINT64                          49
-#define PSI_T_FUNCTION                        50
-#define PSI_T_NULL                            51
-#define PSI_T_TRUE                            52
-#define PSI_T_FALSE                           53
-#define PSI_T_DOLLAR                          54
-#define PSI_T_CALLOC                          55
-#define PSI_T_OBJVAL                          56
-#define PSI_T_ARRVAL                          57
-#define PSI_T_PATHVAL                         58
-#define PSI_T_STRLEN                          59
-#define PSI_T_STRVAL                          60
-#define PSI_T_FLOATVAL                        61
-#define PSI_T_INTVAL                          62
-#define PSI_T_BOOLVAL                         63
-#define PSI_T_TO_OBJECT                       64
-#define PSI_T_TO_ARRAY                        65
-#define PSI_T_TO_STRING                       66
-#define PSI_T_TO_INT                          67
-#define PSI_T_TO_FLOAT                        68
-#define PSI_T_TO_BOOL                         69
-#define PSI_T_MIXED                           70
-#define PSI_T_ARRAY                           71
-#define PSI_T_OBJECT                          72
-#define PSI_T_AMPERSAND                       73
+#define PSI_T_CALLOC                          11
+#define PSI_T_CALLBACK                        12
+#define PSI_T_LIB                             13
+#define PSI_T_STRING                          14
+#define PSI_T_EOF                             15
+#define PSI_T_EOS                             16
+#define PSI_T_QUOTED_STRING                   17
+#define PSI_T_ENUM                            18
+#define PSI_T_LBRACE                          19
+#define PSI_T_RBRACE                          20
+#define PSI_T_COMMA                           21
+#define PSI_T_EQUALS                          22
+#define PSI_T_UNION                           23
+#define PSI_T_STRUCT                          24
+#define PSI_T_COLON                           25
+#define PSI_T_LPAREN                          26
+#define PSI_T_NUMBER                          27
+#define PSI_T_RPAREN                          28
+#define PSI_T_BOOL                            29
+#define PSI_T_INT                             30
+#define PSI_T_FLOAT                           31
+#define PSI_T_CONST                           32
+#define PSI_T_NSNAME                          33
+#define PSI_T_TYPEDEF                         34
+#define PSI_T_VOID                            35
+#define PSI_T_LBRACKET                        36
+#define PSI_T_RBRACKET                        37
+#define PSI_T_ELLIPSIS                        38
+#define PSI_T_CHAR                            39
+#define PSI_T_SHORT                           40
+#define PSI_T_LONG                            41
+#define PSI_T_DOUBLE                          42
+#define PSI_T_UNSIGNED                        43
+#define PSI_T_SIGNED                          44
+#define PSI_T_INT8                            45
+#define PSI_T_UINT8                           46
+#define PSI_T_INT16                           47
+#define PSI_T_UINT16                          48
+#define PSI_T_INT32                           49
+#define PSI_T_UINT32                          50
+#define PSI_T_INT64                           51
+#define PSI_T_UINT64                          52
+#define PSI_T_FUNCTION                        53
+#define PSI_T_NULL                            54
+#define PSI_T_TRUE                            55
+#define PSI_T_FALSE                           56
+#define PSI_T_DOLLAR_NAME                     57
+#define PSI_T_OBJVAL                          58
+#define PSI_T_ARRVAL                          59
+#define PSI_T_PATHVAL                         60
+#define PSI_T_STRLEN                          61
+#define PSI_T_STRVAL                          62
+#define PSI_T_FLOATVAL                        63
+#define PSI_T_INTVAL                          64
+#define PSI_T_BOOLVAL                         65
+#define PSI_T_TO_OBJECT                       66
+#define PSI_T_TO_ARRAY                        67
+#define PSI_T_TO_STRING                       68
+#define PSI_T_TO_INT                          69
+#define PSI_T_TO_FLOAT                        70
+#define PSI_T_TO_BOOL                         71
+#define PSI_T_MIXED                           72
+#define PSI_T_ARRAY                           73
+#define PSI_T_OBJECT                          74
+#define PSI_T_CALLABLE                        75
+#define PSI_T_AMPERSAND                       76