| 1 |
|
| /* Shall this module determine automatically string encoding ? */ |
| 2 |
|
| /* #define MARPAESLIFPERL_AUTO_ENCODING_DETECT */ |
| 3 |
|
| |
| 4 |
|
| /* When we receive a string claimed to be in UTF-8, shall we cross check ? */ |
| 5 |
|
| /* #define MARPAESLIFPERL_UTF8_CROSSCHECK */ |
| 6 |
|
| |
| 7 |
|
| /* As a general note, we maintain object dependencies in perl itself, because */ |
| 8 |
|
| /* EVERY object is a hash that has an 'args_ref' member, the later containting */ |
| 9 |
|
| /* a reference to all arguments. */ |
| 10 |
|
| |
| 11 |
|
| #define PERL_NO_GET_CONTEXT 1 /* we want efficiency */ |
| 12 |
|
| #include "EXTERN.h" |
| 13 |
|
| #include "perl.h" |
| 14 |
|
| #include "XSUB.h" |
| 15 |
|
| #define NEED_newSVpvn_flags |
| 16 |
|
| #include "ppport.h" |
| 17 |
|
| |
| 18 |
|
| #include <marpaESLIF.h> |
| 19 |
|
| #include <genericLogger.h> |
| 20 |
|
| #include <stdlib.h> |
| 21 |
|
| #include <stdio.h> |
| 22 |
|
| #include <errno.h> |
| 23 |
|
| #include <string.h> |
| 24 |
|
| #include <float.h> |
| 25 |
|
| #include <limits.h> |
| 26 |
|
| /* #include <valgrind/callgrind.h> */ |
| 27 |
|
| |
| 28 |
|
| /* Perl wrapper around malloc, free, etc... are just painful for genericStack, which is */ |
| 29 |
|
| /* is implemented using header files, not a library... */ |
| 30 |
|
| #ifdef malloc |
| 31 |
|
| #define current_malloc malloc |
| 32 |
|
| #endif |
| 33 |
|
| #ifdef calloc |
| 34 |
|
| #define current_calloc calloc |
| 35 |
|
| #endif |
| 36 |
|
| #ifdef realloc |
| 37 |
|
| #define current_realloc realloc |
| 38 |
|
| #endif |
| 39 |
|
| #ifdef free |
| 40 |
|
| #define current_free free |
| 41 |
|
| #endif |
| 42 |
|
| #ifdef memset |
| 43 |
|
| #define current_memset memset |
| 44 |
|
| #endif |
| 45 |
|
| #ifdef memcpy |
| 46 |
|
| #define current_memcpy memcpy |
| 47 |
|
| #endif |
| 48 |
|
| #ifdef memmove |
| 49 |
|
| #define current_memmove memmove |
| 50 |
|
| #endif |
| 51 |
|
| |
| 52 |
|
| #undef malloc |
| 53 |
|
| #undef calloc |
| 54 |
|
| #undef realloc |
| 55 |
|
| #undef free |
| 56 |
|
| #undef memset |
| 57 |
|
| #undef memcpy |
| 58 |
|
| #undef memmove |
| 59 |
|
| |
| 60 |
|
| #include <genericStack.h> |
| 61 |
|
| |
| 62 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_SYSTEM_FREE(void *p) { free(p); } |
| 63 |
0 |
| PERL_STATIC_INLINE genericStack_t *marpaESLIFPerl_GENERICSTACK_NEW() { genericStack_t *stackp; |
| 64 |
0 |
| GENERICSTACK_NEW(stackp); |
| 65 |
0 |
| return stackp; } |
| 66 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_INIT(genericStack_t *stackp) { GENERICSTACK_INIT(stackp); } |
| 67 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_RESET(genericStack_t *stackp) { GENERICSTACK_RESET(stackp); } |
| 68 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_FREE(genericStack_t *stackp) { GENERICSTACK_FREE(stackp); } |
| 69 |
0 |
| PERL_STATIC_INLINE void *marpaESLIFPerl_GENERICSTACK_GET_PTR(genericStack_t *stackp, int indicei) { return GENERICSTACK_GET_PTR(stackp, indicei); } |
| 70 |
0 |
| PERL_STATIC_INLINE void *marpaESLIFPerl_GENERICSTACK_POP_PTR(genericStack_t *stackp) { return GENERICSTACK_POP_PTR(stackp); } |
| 71 |
0 |
▶ | PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_IS_PTR(genericStack_t *stackp, int indicei) { return GENERICSTACK_IS_PTR(stackp, indicei); } |
Branch: 3 branches
| Branch | True | False | Total |
| PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_IS_PTR(genericStack_t *stackp, int indicei) { return GENERICSTACK_IS_PTR(stackp, indicei); } |
0 |
0 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_IS_PTR(genericStack_t *stackp, int indicei) { return GENERICSTACK_IS_PTR(stackp, indicei); } |
0 |
0 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_IS_PTR(genericStack_t *stackp, int indicei) { return GENERICSTACK_IS_PTR(stackp, indicei); } |
0 |
0 |
0 |
|
| 72 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_PUSH_PTR(genericStack_t *stackp, void *p) { GENERICSTACK_PUSH_PTR(stackp, p); } |
| 73 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_SET_PTR(genericStack_t *stackp, void *p, int i) { GENERICSTACK_SET_PTR(stackp, p, i); } |
| 74 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_GENERICSTACK_SET_NA(genericStack_t *stackp, int indicei) { GENERICSTACK_SET_NA(stackp, indicei); } |
| 75 |
0 |
▶ | PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_ERROR(genericStack_t *stackp) { return GENERICSTACK_ERROR(stackp); } |
Branch: 2 branches
| Branch | True | False | Total |
| PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_ERROR(genericStack_t *stackp) { return GENERICSTACK_ERROR(stackp); } |
0 |
0 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_GENERICSTACK_ERROR(genericStack_t *stackp) { return GENERICSTACK_ERROR(stackp); } |
0 |
0 |
0 |
|
| 76 |
0 |
| PERL_STATIC_INLINE int marpaESLIFPerl_GENERICSTACK_USED(genericStack_t *stackp) { return GENERICSTACK_USED(stackp); } |
| 77 |
0 |
| PERL_STATIC_INLINE int marpaESLIFPerl_GENERICSTACK_SET_USED(genericStack_t *stackp, int usedi) { return GENERICSTACK_USED(stackp) = usedi; } |
| 78 |
|
| |
| 79 |
|
| #ifdef current_malloc |
| 80 |
|
| #define malloc current_malloc |
| 81 |
|
| #endif |
| 82 |
|
| #ifdef current_calloc |
| 83 |
|
| #define calloc current_calloc |
| 84 |
|
| #endif |
| 85 |
|
| #ifdef current_free |
| 86 |
|
| #define free current_free |
| 87 |
|
| #endif |
| 88 |
|
| #ifdef current_memset |
| 89 |
|
| #define memset current_memset |
| 90 |
|
| #endif |
| 91 |
|
| #ifdef current_memcpy |
| 92 |
|
| #define memcpy current_memcpy |
| 93 |
|
| #endif |
| 94 |
|
| #ifdef current_memmove |
| 95 |
|
| #define memmove current_memmove |
| 96 |
|
| #endif |
| 97 |
|
| |
| 98 |
|
| #define MARPAESLIFPERL_CHUNKED_SIZE_UPPER(size, chunk) ((size) < (chunk)) ? (chunk) : ((1 + ((size) / (chunk))) * (chunk)) |
| 99 |
|
| |
| 100 |
|
| /* For perl interpreter retrieval */ |
| 101 |
|
| #ifndef tTHX |
| 102 |
|
| # define marpaESLIFPerlTHX PerlInterpreter* |
| 103 |
|
| #else |
| 104 |
|
| # define marpaESLIFPerlTHX tTHX |
| 105 |
|
| #endif |
| 106 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 107 |
|
| # define marpaESLIFPerlaTHX aTHX |
| 108 |
|
| #else |
| 109 |
|
| # define marpaESLIFPerlaTHX NULL |
| 110 |
|
| #endif |
| 111 |
|
| |
| 112 |
|
| /* Interpret specific things */ |
| 113 |
|
| typedef struct MarpaX_ESLIF_constants { |
| 114 |
|
| SV *MarpaX__ESLIF_svp; |
| 115 |
|
| SV *MarpaX__ESLIF__is_bool_svp; |
| 116 |
|
| SV *MarpaX__ESLIF__UTF_8_svp; |
| 117 |
|
| SV *Math__BigFloat_svp; |
| 118 |
|
| SV *Math__BigFloat__new_svp; |
| 119 |
|
| SV *Math__BigInt_svp; |
| 120 |
|
| SV *Math__BigInt__new_svp; |
| 121 |
|
| SV *Math__BigInt__binf_svp; |
| 122 |
|
| SV *Math__BigInt__bnan_svp; |
| 123 |
|
| short nvtype_is_long_doubleb; |
| 124 |
|
| short nvtype_is___float128; |
| 125 |
|
| SV *MarpaX__ESLIF__true_svp; |
| 126 |
|
| SV *MarpaX__ESLIF__false_svp; |
| 127 |
|
| SV *MarpaX__ESLIF__Grammar__Properties_svp; |
| 128 |
|
| SV *MarpaX__ESLIF__Grammar__Rule__Properties_svp; |
| 129 |
|
| SV *MarpaX__ESLIF__Grammar__Symbol__Properties_svp; |
| 130 |
|
| SV *MarpaX__ESLIF__String_svp; |
| 131 |
|
| SV *MarpaX__ESLIF__String__new_svp; |
| 132 |
|
| SV *MarpaX__ESLIF__String__encoding_svp; |
| 133 |
|
| SV *MarpaX__ESLIF__String__value_svp; |
| 134 |
|
| SV *Encode_svp; |
| 135 |
|
| SV *Encode__decode_svp; |
| 136 |
|
| SV *MarpaX__ESLIF__Recognizer_svp; |
| 137 |
|
| SV *MarpaX__ESLIF__Recognizer__SHALLOW_svp; |
| 138 |
|
| SV *MarpaX__ESLIF__Context__symbolName_svp; |
| 139 |
|
| SV *MarpaX__ESLIF__Context__symbolNumber_svp; |
| 140 |
|
| SV *MarpaX__ESLIF__Context__ruleName_svp; |
| 141 |
|
| SV *MarpaX__ESLIF__Context__ruleNumber_svp; |
| 142 |
|
| SV *MarpaX__ESLIF__Context__grammar_svp; |
| 143 |
|
| } MarpaX_ESLIF_constants_t; |
| 144 |
|
| |
| 145 |
|
| typedef struct marpaESLIFPerl_stringGeneratorContext { |
| 146 |
|
| char *s; /* Pointer */ |
| 147 |
|
| size_t l; /* Used size */ |
| 148 |
|
| short okb; /* Status */ |
| 149 |
|
| size_t allocl; /* Allocated size */ |
| 150 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 151 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 152 |
|
| #endif |
| 153 |
|
| } marpaESLIFPerl_stringGeneratorContext_t; |
| 154 |
|
| |
| 155 |
|
| typedef struct marpaESLIFPerl_importContext { |
| 156 |
|
| marpaESLIF_t *marpaESLIFp; |
| 157 |
|
| genericStack_t *stackp; |
| 158 |
|
| MarpaX_ESLIF_constants_t *constantsp; |
| 159 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 160 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 161 |
|
| #endif |
| 162 |
|
| } marpaESLIFPerl_importContext_t; |
| 163 |
|
| |
| 164 |
|
| |
| 165 |
|
| #include "c-constant-types.inc" |
| 166 |
|
| #include "c-event-types.inc" |
| 167 |
|
| #include "c-value-types.inc" |
| 168 |
|
| #include "c-loggerLevel-types.inc" |
| 169 |
|
| #include "c-rulePropertyBitSet-types.inc" |
| 170 |
|
| #include "c-symbolPropertyBitSet-types.inc" |
| 171 |
|
| #include "c-symbolEventBitSet-types.inc" |
| 172 |
|
| #include "c-symbol-types.inc" |
| 173 |
|
| |
| 174 |
|
| /* Encode constants as per the documentation */ |
| 175 |
|
| #define MARPAESLIFPERL_ENCODE_DIE_ON_ERR 0x0001 |
| 176 |
|
| #define MARPAESLIFPERL_ENCODE_WARN_ON_ERR 0x0002 |
| 177 |
|
| #define MARPAESLIFPERL_ENCODE_RETURN_ON_ERR 0x0004 |
| 178 |
|
| #define MARPAESLIFPERL_ENCODE_LEAVE_SRC 0x0008 |
| 179 |
|
| #define MARPAESLIFPERL_ENCODE_PERLQQ 0x0100 |
| 180 |
|
| #define MARPAESLIFPERL_ENCODE_HTMLCREF 0x0200 |
| 181 |
|
| #define MARPAESLIFPERL_ENCODE_XMLCREF 0x0400 |
| 182 |
|
| |
| 183 |
|
| #define MARPAESLIFPERL_ENCODE_FB_DEFAULT 0 |
| 184 |
|
| #define MARPAESLIFPERL_ENCODE_FB_CROAK MARPAESLIFPERL_ENCODE_DIE_ON_ERR |
| 185 |
|
| #define MARPAESLIFPERL_ENCODE_FB_QUIET MARPAESLIFPERL_ENCODE_RETURN_ON_ERR |
| 186 |
|
| #define MARPAESLIFPERL_ENCODE_FB_WARN MARPAESLIFPERL_ENCODE_RETURN_ON_ERR | MARPAESLIFPERL_ENCODE_WARN_ON_ERR |
| 187 |
|
| #define MARPAESLIFPERL_ENCODE_FB_PERLQQ MARPAESLIFPERL_ENCODE_LEAVE_SRC | MARPAESLIFPERL_ENCODE_PERLQQ |
| 188 |
|
| |
| 189 |
|
| #define MARPAESLIFPERL_NEWSVPVN_UTF8(keys, sizel) newSVpvn_flags((const char *) keys, (STRLEN) sizel, is_utf8_string((const U8 *) keys, (STRLEN) sizel) ? SVf_UTF8 : 0) |
| 190 |
|
| |
| 191 |
|
| /* Use the inc and dec macros that fit the best our code */ |
| 192 |
|
| #ifdef SvREFCNT_dec_NN |
| 193 |
|
| # define MARPAESLIFPERL_SvREFCNT_dec(svp) SvREFCNT_dec_NN(svp) |
| 194 |
|
| #else |
| 195 |
|
| # define MARPAESLIFPERL_SvREFCNT_dec(svp) SvREFCNT_dec(svp) |
| 196 |
|
| #endif |
| 197 |
|
| |
| 198 |
|
| /* Why is there no need for encodingl ? Because it is guaranteed that encodings */ |
| 199 |
|
| /* is a NUL terminated ASCII string. So when character at position i is != '\0' */ |
| 200 |
|
| /* then the character at position i+1 exists (and it may be the NUL byte...). */ |
| 201 |
|
| /* We do not rely on strcasecmp, _stricmp etc... not in C std and too much */ |
| 202 |
|
| /* bound to locale. */ |
| 203 |
|
| /* In addition you may wonder why I both to do strcmp() because the case */ |
| 204 |
|
| /* insensitive version. This is because almost nobody export UTF-8 as something */ |
| 205 |
|
| /* else but "UTF-8". So the probability to have strcmp() successful when it is */ |
| 206 |
|
| /* an UTF-8 string is unvaluable compared to somebody that would use "utf-8". */ |
| 207 |
|
| /* And of course strcmp() is bound by any compiler to an optimized assemby */ |
| 208 |
|
| /* version ;) */ |
| 209 |
|
| /* Note that we do NOT test if encodings is != NULL because when ESLIF exports */ |
| 210 |
|
| /* a marpaESLIFValueResult of type STRING it guarantees that encodingasciis is */ |
| 211 |
|
| /* set. */ |
| 212 |
|
| #define MARPAESLIFPERL_ENCODING_IS_UTF8(encodings) \ |
| 213 |
|
| ((strcmp(encodings, "UTF-8") == 0) \ |
| 214 |
|
| || \ |
| 215 |
|
| ( \ |
| 216 |
|
| ((encodings[0] == 'U') || (encodings[0] == 'u')) && \ |
| 217 |
|
| ((encodings[1] == 'T') || (encodings[1] == 't')) && \ |
| 218 |
|
| ((encodings[2] == 'F') || (encodings[2] == 'f')) && \ |
| 219 |
|
| (((encodings[3] == '-') && (encodings[4] == '8') && (encodings[5] == '\0')) /* UTF-8 */ \ |
| 220 |
|
| || \ |
| 221 |
|
| ((encodings[3] == '8') && (encodings[4] == '\0')) /* UTF8 */ \ |
| 222 |
|
| ) \ |
| 223 |
|
| ) \ |
| 224 |
|
| ) |
| 225 |
|
| |
| 226 |
|
| |
| 227 |
|
| #if defined(SvREFCNT_inc_simple_void_NN) |
| 228 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_simple_void_NN(svp) |
| 229 |
|
| #elif defined(SvREFCNT_inc_void_NN) |
| 230 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_void_NN(svp) |
| 231 |
|
| #elif defined(SvREFCNT_inc_simple_NN) |
| 232 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_simple_NN(svp) |
| 233 |
|
| #elif defined(SvREFCNT_inc_NN) |
| 234 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_NN(svp) |
| 235 |
|
| #elif defined(SvREFCNT_inc_simple_void) |
| 236 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_simple_void(svp) |
| 237 |
|
| #elif defined(SvREFCNT_inc_void) |
| 238 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_void(svp) |
| 239 |
|
| #elif defined(SvREFCNT_inc_simple) |
| 240 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc_simple(svp) |
| 241 |
|
| #else |
| 242 |
|
| # define MARPAESLIFPERL_SvREFCNT_inc(svp) SvREFCNT_inc(svp) |
| 243 |
|
| #endif |
| 244 |
|
| |
| 245 |
|
| /* ESLIF context */ |
| 246 |
|
| static char _MARPAESLIFPERL_CONTEXT; |
| 247 |
|
| #define MARPAESLIFPERL_CONTEXT &_MARPAESLIFPERL_CONTEXT |
| 248 |
|
| |
| 249 |
|
| typedef struct MarpaX_ESLIF { |
| 250 |
|
| SV *Perl_loggerInterfacep; |
| 251 |
|
| genericLogger_t *genericLoggerp; |
| 252 |
|
| marpaESLIF_t *marpaESLIFp; |
| 253 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 254 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 255 |
|
| #endif |
| 256 |
|
| MarpaX_ESLIF_constants_t constants; |
| 257 |
|
| } MarpaX_ESLIF_t; |
| 258 |
|
| |
| 259 |
|
| /* Nothing special for the grammar type */ |
| 260 |
|
| typedef struct MarpaX_ESLIF_Grammar { |
| 261 |
|
| SV *Perl_MarpaX_ESLIFp; |
| 262 |
|
| MarpaX_ESLIF_t *MarpaX_ESLIFp; |
| 263 |
|
| marpaESLIFGrammar_t *marpaESLIFGrammarp; |
| 264 |
|
| MarpaX_ESLIF_constants_t *constantsp; |
| 265 |
|
| } MarpaX_ESLIF_Grammar_t, MarpaX_ESLIF_JSON_Encoder_t, MarpaX_ESLIF_JSON_Decoder_t; |
| 266 |
|
| |
| 267 |
|
| /* Symbol type */ |
| 268 |
|
| typedef struct MarpaX_ESLIF_Symbol { |
| 269 |
|
| SV *Perl_MarpaX_ESLIFp; |
| 270 |
|
| MarpaX_ESLIF_t *MarpaX_ESLIFp; |
| 271 |
|
| marpaESLIFSymbol_t *marpaESLIFSymbolp; |
| 272 |
|
| MarpaX_ESLIF_constants_t *constantsp; |
| 273 |
|
| genericStack_t *internalStackp; |
| 274 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 275 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 276 |
|
| #endif |
| 277 |
|
| } MarpaX_ESLIF_Symbol_t; |
| 278 |
|
| |
| 279 |
|
| /* Recognizer context */ |
| 280 |
|
| typedef struct MarpaX_ESLIF_Recognizer { |
| 281 |
|
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp; |
| 282 |
|
| MarpaX_ESLIF_t *MarpaX_ESLIFp; |
| 283 |
|
| marpaESLIFRecognizer_t *marpaESLIFRecognizerp; |
| 284 |
|
| marpaESLIFRecognizer_t *marpaESLIFRecognizerBackupp; /* Used recognizer callbacks */ |
| 285 |
|
| marpaESLIFRecognizer_t *marpaESLIFRecognizerLastp; /* Last used marpaESLIFRecognizerp in recognizer callbacks */ |
| 286 |
|
| SV *Perl_MarpaX_ESLIF_Grammarp; |
| 287 |
|
| SV *Perl_recognizerInterfacep; |
| 288 |
|
| SV *Perl_recognizer_origp; |
| 289 |
|
| char *actions; /* Shallow copy of last resolved name */ |
| 290 |
|
| SV *Perl_datap; |
| 291 |
|
| SV *Perl_encodingp; |
| 292 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 293 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 294 |
|
| #endif |
| 295 |
|
| genericStack_t *internalStackp; |
| 296 |
|
| /* For regex callback, we store the stash pointer of MarpaX::ESLIF::RegexCallout */ |
| 297 |
|
| MarpaX_ESLIF_constants_t *constantsp; |
| 298 |
|
| SV *readSvp; |
| 299 |
|
| SV *isEofSvp; |
| 300 |
|
| SV *isCharacterStreamSvp; |
| 301 |
|
| SV *encodingSvp; |
| 302 |
|
| SV *dataSvp; |
| 303 |
|
| SV *isWithDisableThresholdSvp; |
| 304 |
|
| SV *isWithExhaustionSvp; |
| 305 |
|
| SV *isWithNewlineSvp; |
| 306 |
|
| SV *isWithTrackSvp; |
| 307 |
|
| SV *setRecognizerSvp; |
| 308 |
|
| SV *resolverSvp; |
| 309 |
|
| SV *resolvedActionSvp; |
| 310 |
|
| } MarpaX_ESLIF_Recognizer_t; |
| 311 |
|
| |
| 312 |
|
| /* Value context */ |
| 313 |
|
| typedef struct MarpaX_ESLIF_Value { |
| 314 |
|
| SV *Perl_valueInterfacep; |
| 315 |
|
| MarpaX_ESLIF_t *MarpaX_ESLIFp; |
| 316 |
|
| SV *Perl_MarpaX_ESLIF_Grammarp; |
| 317 |
|
| char *actions; /* Shallow copy of last resolved name */ |
| 318 |
|
| marpaESLIFValue_t *marpaESLIFValuep; |
| 319 |
|
| short canSetSymbolNameb; |
| 320 |
|
| short canSetSymbolNumberb; |
| 321 |
|
| short canSetRuleNameb; |
| 322 |
|
| short canSetRuleNumberb; |
| 323 |
|
| short canSetGrammarb; |
| 324 |
|
| SV *setSymbolNameSvp; |
| 325 |
|
| SV *setSymbolNumberSvp; |
| 326 |
|
| SV *setRuleNameSvp; |
| 327 |
|
| SV *setRuleNumberSvp; |
| 328 |
|
| SV *setGrammarSvp; |
| 329 |
|
| char *symbols; |
| 330 |
|
| int symboli; |
| 331 |
|
| char *rules; |
| 332 |
|
| int rulei; |
| 333 |
|
| genericStack_t *internalStackp; |
| 334 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 335 |
|
| marpaESLIFPerlTHX PerlInterpreterp; |
| 336 |
|
| #endif |
| 337 |
|
| MarpaX_ESLIF_constants_t *constantsp; |
| 338 |
|
| SV *isWithHighRankOnlySvp; |
| 339 |
|
| SV *isWithOrderByRankSvp; |
| 340 |
|
| SV *isWithAmbiguousSvp; |
| 341 |
|
| SV *isWithNullSvp; |
| 342 |
|
| SV *maxParsesSvp; |
| 343 |
|
| SV *setResultSvp; |
| 344 |
|
| SV *getResultSvp; |
| 345 |
|
| SV *resolverSvp; |
| 346 |
|
| SV *resolvedActionSvp; |
| 347 |
|
| } MarpaX_ESLIF_Value_t; |
| 348 |
|
| |
| 349 |
|
| /* Static functions declarations */ |
| 350 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_constants_initv(pTHX_ MarpaX_ESLIF_constants_t *constantsp); |
| 351 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_constants_disposev(pTHX_ MarpaX_ESLIF_constants_t *constantsp); |
| 352 |
|
| PERL_STATIC_INLINE int marpaESLIFPerl_getTypei(pTHX_ SV* svp); |
| 353 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_canb(pTHX_ SV *svp, const char *methods, SV **svpp, SV *subSvp); |
| 354 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_call_methodv(pTHX_ SV *interfacep, const char *methods, SV *argsvp, SV *subSvp); |
| 355 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_call_methodp(pTHX_ SV *interfacep, const char *methods, AV *avp, SV *subSvp); |
| 356 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_call_actionp(pTHX_ SV *interfacep, const char *methods, AV *avp, MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, short evalb, short evalSilentb, SV *subSvp); |
| 357 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_recognizerCallbackActionp(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, AV *avp); |
| 358 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_valueCallbackActionp(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, AV *avp); |
| 359 |
|
| PERL_STATIC_INLINE IV marpaESLIFPerl_call_methodi(pTHX_ SV *interfacep, const char *methods, SV *subSvp); |
| 360 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_call_methodb(pTHX_ SV *interfacep, const char *methods, SV *subSvp); |
| 361 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_genericLoggerCallbackv(void *userDatavp, genericLoggerLevel_t logLeveli, const char *msgs); |
| 362 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_readerCallbackDisposev(void *userDatavp, char *inputcp, size_t inputl, short eofb, short characterStreamb, char *encodings, size_t encodingl); |
| 363 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_readerCallbackb(void *userDatavp, char **inputcpp, size_t *inputlp, short *eofbp, short *characterStreambp, char **encodingsp, size_t *encodinglp, marpaESLIFReaderDispose_t *disposeCallbackpp); |
| 364 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_valueActionResolver(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, char *actions); |
| 365 |
|
| PERL_STATIC_INLINE marpaESLIFValueRuleCallback_t marpaESLIFPerl_valueRuleActionResolver(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, char *actions); |
| 366 |
|
| PERL_STATIC_INLINE marpaESLIFValueSymbolCallback_t marpaESLIFPerl_valueSymbolActionResolver(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, char *actions); |
| 367 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerActionResolver(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, char *actions); |
| 368 |
|
| PERL_STATIC_INLINE marpaESLIFRecognizerIfCallback_t marpaESLIFPerl_recognizerIfActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions); |
| 369 |
|
| PERL_STATIC_INLINE marpaESLIFRecognizerEventCallback_t marpaESLIFPerl_recognizerEventActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions); |
| 370 |
|
| PERL_STATIC_INLINE marpaESLIFRecognizerRegexCallback_t marpaESLIFPerl_recognizerRegexActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions); |
| 371 |
|
| PERL_STATIC_INLINE marpaESLIFRecognizerGeneratorCallback_t marpaESLIFPerl_recognizerGeneratorActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions); |
| 372 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_valueGetSvp(pTHX_ marpaESLIFValue_t *marpaESLIFValuep, genericStack_t *internalStackp, int stackindicei, marpaESLIFValueResult_t *marpaESLIFValueResultLexemep); |
| 373 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_recognizerGetSvp(pTHX_ marpaESLIFRecognizer_t *marpaESLIFRecognizerp, genericStack_t *internalStackp, marpaESLIFValueResult_t *marpaESLIFValueResultp); |
| 374 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_valueRuleCallbackb(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, int arg0i, int argni, int resulti, short nullableb); |
| 375 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_valueSymbolCallbackb(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, marpaESLIFValueResult_t *marpaESLIFValueResultp, int resulti); |
| 376 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerIfCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *marpaESLIFValueResultLexemep, marpaESLIFValueResultBool_t *marpaESLIFValueResultBoolp); |
| 377 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerEventCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFEvent_t *eventArrayp, size_t eventArrayl, marpaESLIFValueResultBool_t *marpaESLIFValueResultBoolp); |
| 378 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerRegexCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *marpaESLIFCalloutBlockp, marpaESLIFValueResultInt_t *marpaESLIFValueResultOutp); |
| 379 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerGeneratorCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *contextp, marpaESLIFValueResultString_t *marpaESLIFValueResultOutp); |
| 380 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_genericFreeCallbackv(void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp); |
| 381 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_ContextInitv(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp); |
| 382 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_ContextFreev(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp); |
| 383 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_grammarContextFreev(pTHX_ MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp); |
| 384 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_symbolContextFreev(pTHX_ MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp); |
| 385 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_valueContextFreev(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, short onStackb); |
| 386 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerContextFreev(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, short onStackb); |
| 387 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_freeInternalStackv(pTHX_ genericStack_t *internalStackp); |
| 388 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_grammarContextInitv(pTHX_ SV *Perl_MarpaX_ESLIFp, MarpaX_ESLIF_t *MarpaX_ESLIFp, MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp, MarpaX_ESLIF_constants_t *constantsp); |
| 389 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_symbolContextInitv(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp, SV *Perl_MarpaX_ESLIFp, MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp, MarpaX_ESLIF_constants_t *constantsp); |
| 390 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerContextInitv(pTHX_ MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp, SV *Perl_MarpaX_ESLIF_Grammarp, SV *Perl_recognizerInterfacep, MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, SV *Perl_recognizer_origp, MarpaX_ESLIF_constants_t *constantsp, MarpaX_ESLIF_t *MarpaX_ESLIFp); |
| 391 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_valueContextInitv(pTHX_ SV *Perl_MarpaX_ESLIF_Grammarp, SV *Perl_valueInterfacep, MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, MarpaX_ESLIF_constants_t *constantsp, MarpaX_ESLIF_t *MarpaX_ESLIFp); |
| 392 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_paramIsGrammarv(pTHX_ SV *sv); |
| 393 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_paramIsEncodingv(pTHX_ SV *sv); |
| 394 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_paramIsLoggerInterfaceOrUndefb(pTHX_ SV *sv); |
| 395 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_representationDisposev(void *userDatavp, char *inputcp, size_t inputl, char *encodingasciis); |
| 396 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_representationb(void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, char **inputcpp, size_t *inputlp, char **encodingasciisp, marpaESLIFRepresentationDispose_t *disposeCallbackpp, short *stringbp); |
| 397 |
|
| PERL_STATIC_INLINE char *marpaESLIFPerl_sv2byte(pTHX_ marpaESLIF_t *marpaESLIFp, SV *svp, char **bytepp, size_t *bytelp, short encodingInformationb, short *characterStreambp, char **encodingsp, size_t *encodinglp, short warnIsFatalb, short marpaESLIFStringb, MarpaX_ESLIF_constants_t *constantsp); |
| 398 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_valueImportb(marpaESLIFValue_t *marpaESLIFValuep, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb); |
| 399 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerImportb(marpaESLIFRecognizer_t *marpaESLIFRecognizerp, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb); |
| 400 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_symbolImportb(marpaESLIFSymbol_t *marpaESLIFSymbolp, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb); |
| 401 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_importb(pTHX_ marpaESLIFPerl_importContext_t *importContextp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short arraycopyb, short haveUndefb); |
| 402 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_generateStringWithLoggerCallback(void *userDatavp, genericLoggerLevel_t logLeveli, const char *msgs); |
| 403 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_appendOpaqueDataToStringGenerator(marpaESLIFPerl_stringGeneratorContext_t *marpaESLIFPerl_stringGeneratorContextp, char *p, size_t sizel); |
| 404 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_scalar_string_only(pTHX_ SV *svp, int typei); |
| 405 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_undef(pTHX_ SV *svp, int typei); |
| 406 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_arrayref(pTHX_ SV *svp, int typei); |
| 407 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_MarpaX__ESLIF__String(pTHX_ SV *svp, int typei); |
| 408 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_Math__BigInt(pTHX_ SV *svp, int typei); |
| 409 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_Math__BigFloat(pTHX_ SV *svp, int typei); |
| 410 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_hashref(pTHX_ SV *svp, int typei); |
| 411 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_is_bool(pTHX_ SV *svp, int typei, MarpaX_ESLIF_constants_t *constantsp); |
| 412 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_true(pTHX_ MarpaX_ESLIF_constants_t *constantsp); |
| 413 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_false(pTHX_ MarpaX_ESLIF_constants_t *constantsp); |
| 414 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_stack_setv(pTHX_ marpaESLIF_t *marpaESLIFp, marpaESLIFValue_t *marpaESLIFValuep, int resulti, SV *svp, marpaESLIFValueResult_t *marpaESLIFValueResultOutputp, short incb, MarpaX_ESLIF_constants_t *constantsp); |
| 415 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodePositiveInfinityAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb); |
| 416 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNegativeInfinityAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb); |
| 417 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodePositiveNanAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb); |
| 418 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNegativeNanAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb); |
| 419 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNumberAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb); |
| 420 |
|
| PERL_STATIC_INLINE void *marpaESLIFPerl_Perl2enginep(pTHX_ SV *Perl_argumentp); |
| 421 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_engine2Perlp(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp); |
| 422 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_setRecognizerEngineForCallbackv(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp); |
| 423 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_restoreRecognizerEngineForCallbackv(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp); |
| 424 |
|
| PERL_STATIC_INLINE SV *marpaESLIFPerl_arraycopyp(pTHX_ char *p, STRLEN sizel, short arraycopyb); |
| 425 |
|
| |
| 426 |
|
| |
| 427 |
|
| /* Static constants */ |
| 428 |
|
| static const char *UTF8s = "UTF-8"; |
| 429 |
|
| static const size_t UTF8l = 5; /* "UTF-8" is 5 bytes in ASCII encoding */ |
| 430 |
|
| |
| 431 |
|
| /*****************************************************************************/ |
| 432 |
|
| /* Static variables initialized at boot */ |
| 433 |
|
| /*****************************************************************************/ |
| 434 |
|
| |
| 435 |
|
| /*****************************************************************************/ |
| 436 |
|
| /* Macros */ |
| 437 |
|
| /*****************************************************************************/ |
| 438 |
|
| #define MARPAESLIFPERL_FILENAMES "ESLIF.xs" |
| 439 |
|
| |
| 440 |
|
| #define MARPAESLIFPERL_CROAK(msgs) croak("[In %s at %s:%d] %s", funcs, MARPAESLIFPERL_FILENAMES, __LINE__, msgs) |
| 441 |
|
| #define MARPAESLIFPERL_CROAKF(fmts, ...) croak("[In %s at %s:%d] " fmts, funcs, MARPAESLIFPERL_FILENAMES, __LINE__, __VA_ARGS__) |
| 442 |
|
| #define MARPAESLIFPERL_WARN(msgs) warn("[In %s at %s:%d] %s", funcs, MARPAESLIFPERL_FILENAMES, __LINE__, msgs) |
| 443 |
|
| #define MARPAESLIFPERL_WARNF(fmts, ...) warn("[In %s at %s:%d] " fmts, funcs, MARPAESLIFPERL_FILENAMES, __LINE__, __VA_ARGS__) |
| 444 |
|
| #define MARPAESLIFPERL_FREE_SVP(svp) do { \ |
| 445 |
|
| SV *_svp = svp; \ |
| 446 |
|
| if (((_svp) != NULL) && \ |
| 447 |
|
| ((_svp) != &PL_sv_undef) && \ |
| 448 |
|
| ((_svp) != &PL_sv_yes) && \ |
| 449 |
|
| ((_svp) != &PL_sv_no)) { \ |
| 450 |
|
| while (SvREFCNT(_svp) > 0) { \ |
| 451 |
|
| MARPAESLIFPERL_SvREFCNT_dec(_svp); \ |
| 452 |
|
| } \ |
| 453 |
|
| } \ |
| 454 |
|
| } while (0) |
| 455 |
|
| |
| 456 |
|
| #define MARPAESLIFPERL_REFCNT_DEC(svp) do { \ |
| 457 |
|
| SV *_svp = svp; \ |
| 458 |
|
| if (((_svp) != NULL) && \ |
| 459 |
|
| ((_svp) != &PL_sv_undef) && \ |
| 460 |
|
| ((_svp) != &PL_sv_yes) && \ |
| 461 |
|
| ((_svp) != &PL_sv_no)) { \ |
| 462 |
|
| if (SvREFCNT(_svp) > 0) { \ |
| 463 |
|
| MARPAESLIFPERL_SvREFCNT_dec(_svp); \ |
| 464 |
|
| } \ |
| 465 |
|
| } \ |
| 466 |
|
| } while (0) |
| 467 |
|
| |
| 468 |
|
| #define MARPAESLIFPERL_REFCNT_INC(svp) do { \ |
| 469 |
|
| SV *_svp = svp; \ |
| 470 |
|
| if (((_svp) != NULL) && \ |
| 471 |
|
| ((_svp) != &PL_sv_undef) && \ |
| 472 |
|
| ((_svp) != &PL_sv_yes) && \ |
| 473 |
|
| ((_svp) != &PL_sv_no)) { \ |
| 474 |
|
| MARPAESLIFPERL_SvREFCNT_inc(_svp); \ |
| 475 |
|
| } \ |
| 476 |
|
| } while (0) |
| 477 |
|
| |
| 478 |
|
| /* In this macro we hack the difference between hv_store and av_push by testing xvp type */ |
| 479 |
|
| /* Remember that hv_store() and av_push() takes over one reference count. */ |
| 480 |
|
| #define MARPAESLIFPERL_XV_STORE(xvp, key, svp) do { \ |
| 481 |
|
| if (SvTYPE((SV *)xvp) == SVt_PVHV) { \ |
| 482 |
|
| hv_store((HV *) xvp, key, strlen(key), (svp == &PL_sv_undef) ? newSV(0) : svp, 0); \ |
| 483 |
|
| } else { \ |
| 484 |
|
| av_push((AV *) xvp, MARPAESLIFPERL_NEWSVPVN_UTF8(key, strlen(key))); \ |
| 485 |
|
| av_push((AV *) xvp, (svp == &PL_sv_undef) ? newSV(0) : svp); \ |
| 486 |
|
| } \ |
| 487 |
|
| } while (0) |
| 488 |
|
| |
| 489 |
|
| #define MARPAESLIFPERL_XV_STORE_UNDEF(xvp, key) MARPAESLIFPERL_XV_STORE(xvp, key, &PL_sv_undef) |
| 490 |
|
| |
| 491 |
|
| #define MARPAESLIFPERL_XV_STORE_ACTION(hvp, key, actionp) do { \ |
| 492 |
|
| SV *_svp; \ |
| 493 |
|
| \ |
| 494 |
|
| if (actionp != NULL) { \ |
| 495 |
|
| switch (actionp->type) { \ |
| 496 |
|
| case MARPAESLIF_ACTION_TYPE_NAME: \ |
| 497 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newSVpv(actionp->u.names, 0)); \ |
| 498 |
|
| break; \ |
| 499 |
|
| case MARPAESLIF_ACTION_TYPE_STRING: \ |
| 500 |
|
| _svp = MARPAESLIFPERL_NEWSVPVN_UTF8(actionp->u.stringp->bytep, actionp->u.stringp->bytel); \ |
| 501 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, _svp); \ |
| 502 |
|
| break; \ |
| 503 |
|
| case MARPAESLIF_ACTION_TYPE_LUA: \ |
| 504 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newSVpv(actionp->u.luas, 0)); \ |
| 505 |
|
| break; \ |
| 506 |
|
| case MARPAESLIF_ACTION_TYPE_LUA_FUNCTION: \ |
| 507 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newSVpv(actionp->u.luaFunction.luas, 0)); \ |
| 508 |
|
| break; \ |
| 509 |
|
| default: \ |
| 510 |
|
| warn("Unsupported action type %d", actionp->type); \ |
| 511 |
|
| MARPAESLIFPERL_XV_STORE_UNDEF(hvp, key); \ |
| 512 |
|
| break; \ |
| 513 |
|
| } \ |
| 514 |
|
| } else { \ |
| 515 |
|
| MARPAESLIFPERL_XV_STORE_UNDEF(hvp, key); \ |
| 516 |
|
| } \ |
| 517 |
|
| } while (0) |
| 518 |
|
| |
| 519 |
|
| #define MARPAESLIFPERL_XV_STORE_STRING(hvp, key, stringp) do { \ |
| 520 |
|
| SV *_svp; \ |
| 521 |
|
| \ |
| 522 |
|
| if (stringp != NULL) { \ |
| 523 |
|
| _svp = MARPAESLIFPERL_NEWSVPVN_UTF8(stringp->bytep, stringp->bytel); \ |
| 524 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, _svp); \ |
| 525 |
|
| } else { \ |
| 526 |
|
| MARPAESLIFPERL_XV_STORE_UNDEF(hvp, key); \ |
| 527 |
|
| } \ |
| 528 |
|
| } while (0) |
| 529 |
|
| |
| 530 |
|
| #define MARPAESLIFPERL_XV_STORE_ASCIISTRING(hvp, key, asciis) do { \ |
| 531 |
|
| if (asciis != NULL) { \ |
| 532 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newSVpv(asciis, 0)); \ |
| 533 |
|
| } else { \ |
| 534 |
|
| MARPAESLIFPERL_XV_STORE_UNDEF(hvp, key); \ |
| 535 |
|
| } \ |
| 536 |
|
| } while (0) |
| 537 |
|
| |
| 538 |
|
| #define MARPAESLIFPERL_XV_STORE_IV(hvp, key, iv) do { \ |
| 539 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newSViv((IV) iv)); \ |
| 540 |
|
| } while (0) |
| 541 |
|
| |
| 542 |
|
| #define MARPAESLIFPERL_XV_STORE_YESNO(hvp, key, yesno) do { \ |
| 543 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, ((yesno) ? &PL_sv_yes : &PL_sv_no)); \ |
| 544 |
|
| } while (0) |
| 545 |
|
| |
| 546 |
|
| #define MARPAESLIFPERL_XV_STORE_IVARRAY(hvp, key, ivl, ivp) do { \ |
| 547 |
|
| AV *_avp; \ |
| 548 |
|
| size_t _i; \ |
| 549 |
|
| \ |
| 550 |
|
| if (ivp != NULL) { \ |
| 551 |
|
| _avp = newAV(); \ |
| 552 |
|
| if (ivl > 0) { \ |
| 553 |
|
| for (_i = 0; _i < ivl; _i++) { \ |
| 554 |
|
| av_push(_avp, newSViv((IV) ivp[_i])); \ |
| 555 |
|
| } \ |
| 556 |
|
| } \ |
| 557 |
|
| MARPAESLIFPERL_XV_STORE(hvp, key, newRV_inc((SV *) _avp)); \ |
| 558 |
|
| } else { \ |
| 559 |
|
| MARPAESLIFPERL_XV_STORE_UNDEF(hvp, key); \ |
| 560 |
|
| } \ |
| 561 |
|
| } while (0) |
| 562 |
|
| |
| 563 |
|
| /*****************************************************************************/ |
| 564 |
|
| /* Copy of Params-Validate-1.26/lib/Params/Validate/XS.xs */ |
| 565 |
|
| /*****************************************************************************/ |
| 566 |
|
| #define SCALAR 1 |
| 567 |
|
| #define ARRAYREF 2 |
| 568 |
|
| #define HASHREF 4 |
| 569 |
|
| #define CODEREF 8 |
| 570 |
|
| #define GLOB 16 |
| 571 |
|
| #define GLOBREF 32 |
| 572 |
|
| #define SCALARREF 64 |
| 573 |
|
| #define UNKNOWN 128 |
| 574 |
|
| #define UNDEF 256 |
| 575 |
|
| #define OBJECT 512 |
| 576 |
0 |
| PERL_STATIC_INLINE int marpaESLIFPerl_getTypei(pTHX_ SV* svp) { |
| 577 |
0 |
| int type = 0; |
| 578 |
|
| |
| 579 |
0 |
▶ | if (SvTYPE(svp) == SVt_PVGV) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(svp) == SVt_PVGV) { |
0 |
0 |
0 |
|
| 580 |
0 |
| return GLOB; |
| 581 |
|
| } |
| 582 |
0 |
▶ | if (!SvOK(svp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvOK(svp)) { |
0 |
0 |
0 |
|
| 583 |
0 |
| return UNDEF; |
| 584 |
|
| } |
| 585 |
0 |
▶ | if (!SvROK(svp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(svp)) { |
0 |
0 |
0 |
|
| 586 |
0 |
| return SCALAR; |
| 587 |
|
| } |
| 588 |
|
| |
| 589 |
0 |
| switch (SvTYPE(SvRV(svp))) { |
| 590 |
0 |
| case SVt_NULL: |
| 591 |
|
| case SVt_IV: |
| 592 |
|
| case SVt_NV: |
| 593 |
|
| case SVt_PV: |
| 594 |
|
| #if PERL_VERSION <= 10 |
| 595 |
|
| case SVt_RV: |
| 596 |
|
| #endif |
| 597 |
|
| case SVt_PVMG: |
| 598 |
|
| case SVt_PVIV: |
| 599 |
|
| case SVt_PVNV: |
| 600 |
|
| #if PERL_VERSION <= 8 |
| 601 |
|
| case SVt_PVBM: |
| 602 |
|
| #elif PERL_VERSION >= 11 |
| 603 |
|
| case SVt_REGEXP: |
| 604 |
|
| #endif |
| 605 |
0 |
| type = SCALARREF; |
| 606 |
0 |
| break; |
| 607 |
0 |
| case SVt_PVAV: |
| 608 |
0 |
| type = ARRAYREF; |
| 609 |
0 |
| break; |
| 610 |
0 |
| case SVt_PVHV: |
| 611 |
0 |
| type = HASHREF; |
| 612 |
0 |
| break; |
| 613 |
0 |
| case SVt_PVCV: |
| 614 |
0 |
| type = CODEREF; |
| 615 |
0 |
| break; |
| 616 |
0 |
| case SVt_PVGV: |
| 617 |
0 |
| type = GLOBREF; |
| 618 |
0 |
| break; |
| 619 |
|
| /* Perl 5.10 has a bunch of new types that I don't think will ever |
| 620 |
|
| actually show up here (I hope), but not handling them makes the |
| 621 |
|
| C compiler cranky. */ |
| 622 |
0 |
| default: |
| 623 |
0 |
| type = UNKNOWN; |
| 624 |
0 |
| break; |
| 625 |
|
| } |
| 626 |
|
| |
| 627 |
0 |
▶ | if (type) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type) { |
0 |
0 |
0 |
|
| 628 |
0 |
▶ | if (sv_isobject(svp)) return type | OBJECT; |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(svp)) return type | OBJECT; |
0 |
0 |
0 |
|
| 629 |
0 |
| return type; |
| 630 |
|
| } |
| 631 |
|
| |
| 632 |
|
| /* Getting here should not be possible */ |
| 633 |
0 |
| return UNKNOWN; |
| 634 |
|
| } |
| 635 |
|
| |
| 636 |
|
| /*****************************************************************************/ |
| 637 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_canb(pTHX_ SV *svp, const char *methods, SV **svpp, SV *subSvp) |
| 638 |
|
| /*****************************************************************************/ |
| 639 |
|
| { |
| 640 |
0 |
| AV *list = newAV(); |
| 641 |
|
| SV *rcp; |
| 642 |
|
| int type; |
| 643 |
|
| |
| 644 |
|
| /* We always check methods that have ASCII only characters */ |
| 645 |
0 |
| av_push(list, newSVpv(methods, 0)); |
| 646 |
0 |
| rcp = marpaESLIFPerl_call_actionp(aTHX_ svp, "can", list, NULL /* MarpaX_ESLIF_Valuep */, 0 /* evalb */, 0 /* evalSilentb */, subSvp); |
| 647 |
0 |
| av_undef(list); |
| 648 |
|
| |
| 649 |
0 |
| type = marpaESLIFPerl_getTypei(aTHX_ rcp); |
| 650 |
0 |
▶ | if (svpp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (svpp != NULL) { |
0 |
0 |
0 |
|
| 651 |
0 |
| *svpp = rcp; |
| 652 |
|
| } else { |
| 653 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(rcp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(rcp); |
0 |
0 |
0 |
|
| 654 |
|
| } |
| 655 |
|
| |
| 656 |
0 |
| return (type & CODEREF) == CODEREF; |
| 657 |
|
| } |
| 658 |
|
| |
| 659 |
|
| /*****************************************************************************/ |
| 660 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_call_methodv(pTHX_ SV *interfacep, const char *methods, SV *argsvp, SV *subSvp) |
| 661 |
|
| /*****************************************************************************/ |
| 662 |
|
| { |
| 663 |
0 |
| dSP; |
| 664 |
|
| |
| 665 |
0 |
| ENTER; |
| 666 |
0 |
| SAVETMPS; |
| 667 |
|
| |
| 668 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 669 |
0 |
▶ | EXTEND(SP, 1 + ((argsvp != NULL) ? 1 : 0)); |
Branch: 3 branches
| Branch | True | False | Total |
| EXTEND(SP, 1 + ((argsvp != NULL) ? 1 : 0)); |
0 |
0 |
0 |
| EXTEND(SP, 1 + ((argsvp != NULL) ? 1 : 0)); |
0 |
0 |
0 |
| EXTEND(SP, 1 + ((argsvp != NULL) ? 1 : 0)); |
0 |
0 |
0 |
|
| 670 |
0 |
| PUSHs(sv_2mortal(newSVsv(interfacep))); |
| 671 |
0 |
▶ | if (argsvp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (argsvp != NULL) { |
0 |
0 |
0 |
|
| 672 |
0 |
| PUSHs(sv_2mortal(newSVsv(argsvp))); |
| 673 |
|
| } |
| 674 |
0 |
| PUTBACK; |
| 675 |
|
| |
| 676 |
0 |
▶ | if (subSvp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (subSvp != NULL) { |
0 |
0 |
0 |
|
| 677 |
0 |
| call_sv(subSvp, G_DISCARD); |
| 678 |
|
| } else { |
| 679 |
0 |
| call_method(methods, G_DISCARD); |
| 680 |
|
| } |
| 681 |
|
| |
| 682 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 683 |
0 |
| LEAVE; |
| 684 |
0 |
| } |
| 685 |
|
| |
| 686 |
|
| /*****************************************************************************/ |
| 687 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_call_methodp(pTHX_ SV *interfacep, const char *methods, AV *avp, SV *subSvp) |
| 688 |
|
| /*****************************************************************************/ |
| 689 |
|
| { |
| 690 |
|
| SV *rcp; |
| 691 |
|
| |
| 692 |
0 |
| rcp = marpaESLIFPerl_call_actionp(aTHX_ interfacep, methods, avp, NULL /* MarpaX_ESLIF_Valuep */, 0 /* evalb */, 0 /* evalSilentb */, subSvp); |
| 693 |
|
| |
| 694 |
0 |
| return rcp; |
| 695 |
|
| } |
| 696 |
|
| |
| 697 |
|
| /*****************************************************************************/ |
| 698 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_call_actionp(pTHX_ SV *interfacep, const char *methods, AV *avp, MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, short evalb, short evalSilentb, SV *subSvp) |
| 699 |
|
| /*****************************************************************************/ |
| 700 |
|
| { |
| 701 |
|
| static const char *funcs = "marpaESLIFPerl_call_actionp"; |
| 702 |
0 |
▶ | SSize_t avsizel = (avp != NULL) ? av_len(avp) + 1 : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| SSize_t avsizel = (avp != NULL) ? av_len(avp) + 1 : 0; |
0 |
0 |
0 |
|
| 703 |
0 |
| SV **svargs = NULL; |
| 704 |
0 |
| I32 flags = G_SCALAR; |
| 705 |
|
| SV *rcp; |
| 706 |
|
| SV *Perl_valueInterfacep; |
| 707 |
|
| SV *Perl_MarpaX_ESLIF_Grammarp; |
| 708 |
|
| SV *svlocalp; |
| 709 |
|
| char *symbols; |
| 710 |
|
| int symboli; |
| 711 |
|
| char *rules; |
| 712 |
|
| int rulei; |
| 713 |
|
| SSize_t aviteratorl; |
| 714 |
|
| SV *err_tmp; |
| 715 |
0 |
| dSP; |
| 716 |
|
| |
| 717 |
0 |
▶ | if (evalb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (evalb) { |
0 |
0 |
0 |
|
| 718 |
0 |
| flags |= G_EVAL; |
| 719 |
|
| } |
| 720 |
|
| |
| 721 |
0 |
| ENTER; |
| 722 |
0 |
| SAVETMPS; |
| 723 |
|
| |
| 724 |
0 |
▶ | if (MarpaX_ESLIF_Valuep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep != NULL) { |
0 |
0 |
0 |
|
| 725 |
|
| /* This is an action context - we localize some variable */ |
| 726 |
|
| /* For GV_ADD: value is created once if needed - Perl will destroy it at exit */ |
| 727 |
|
| |
| 728 |
0 |
| Perl_valueInterfacep = MarpaX_ESLIF_Valuep->Perl_valueInterfacep; |
| 729 |
0 |
| Perl_MarpaX_ESLIF_Grammarp = MarpaX_ESLIF_Valuep->Perl_MarpaX_ESLIF_Grammarp; |
| 730 |
|
| |
| 731 |
0 |
| symbols = MarpaX_ESLIF_Valuep->symbols; |
| 732 |
0 |
| svlocalp = MarpaX_ESLIF_Valuep->constantsp->MarpaX__ESLIF__Context__symbolName_svp; |
| 733 |
0 |
| save_item(svlocalp); /* We control this variable - no magic involved */ |
| 734 |
0 |
▶ | if (symbols != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (symbols != NULL) { |
0 |
0 |
0 |
|
| 735 |
0 |
| sv_setpvn(svlocalp, symbols, strlen(symbols)); |
| 736 |
|
| } else { |
| 737 |
0 |
| sv_setsv(svlocalp, &PL_sv_undef); |
| 738 |
|
| } |
| 739 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->canSetSymbolNameb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->canSetSymbolNameb) { |
0 |
0 |
0 |
|
| 740 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setSymbolName", svlocalp, MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
| 741 |
|
| } |
| 742 |
|
| |
| 743 |
0 |
| symboli = MarpaX_ESLIF_Valuep->symboli; |
| 744 |
0 |
| svlocalp = MarpaX_ESLIF_Valuep->constantsp->MarpaX__ESLIF__Context__symbolNumber_svp; |
| 745 |
0 |
| save_item(svlocalp); /* We control this variable - no magic involved */ |
| 746 |
0 |
| sv_setiv(svlocalp, symboli); |
| 747 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->canSetSymbolNumberb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->canSetSymbolNumberb) { |
0 |
0 |
0 |
|
| 748 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setSymbolNumber", svlocalp, MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
| 749 |
|
| } |
| 750 |
|
| |
| 751 |
0 |
| rules = MarpaX_ESLIF_Valuep->rules; |
| 752 |
0 |
| svlocalp = MarpaX_ESLIF_Valuep->constantsp->MarpaX__ESLIF__Context__ruleName_svp; |
| 753 |
0 |
| save_item(svlocalp); /* We control this variable - no magic involved */ |
| 754 |
0 |
▶ | if (rules != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (rules != NULL) { |
0 |
0 |
0 |
|
| 755 |
0 |
| sv_setpvn(svlocalp, rules, strlen(rules)); |
| 756 |
|
| } else { |
| 757 |
0 |
| sv_setsv(svlocalp, &PL_sv_undef); |
| 758 |
|
| } |
| 759 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->canSetRuleNameb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->canSetRuleNameb) { |
0 |
0 |
0 |
|
| 760 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setRuleName", svlocalp, MarpaX_ESLIF_Valuep->setRuleNameSvp); |
| 761 |
|
| } |
| 762 |
|
| |
| 763 |
0 |
| rulei = MarpaX_ESLIF_Valuep->rulei; |
| 764 |
0 |
| svlocalp = MarpaX_ESLIF_Valuep->constantsp->MarpaX__ESLIF__Context__ruleNumber_svp; |
| 765 |
0 |
| save_item(svlocalp); /* We control this variable - no magic involved */ |
| 766 |
0 |
| sv_setiv(svlocalp, rulei); |
| 767 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->canSetRuleNumberb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->canSetRuleNumberb) { |
0 |
0 |
0 |
|
| 768 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setRuleNumber", svlocalp, MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
| 769 |
|
| } |
| 770 |
|
| |
| 771 |
0 |
| svlocalp = MarpaX_ESLIF_Valuep->constantsp->MarpaX__ESLIF__Context__grammar_svp; |
| 772 |
0 |
| save_item(svlocalp); /* We control this variable - no magic involved */ |
| 773 |
0 |
| sv_setsv(svlocalp, Perl_MarpaX_ESLIF_Grammarp); |
| 774 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->canSetGrammarb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->canSetGrammarb) { |
0 |
0 |
0 |
|
| 775 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setGrammar", svlocalp, MarpaX_ESLIF_Valuep->setGrammarSvp); |
| 776 |
|
| } |
| 777 |
|
| } |
| 778 |
|
| |
| 779 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 780 |
0 |
▶ | if (interfacep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (interfacep != NULL) { |
0 |
0 |
0 |
|
| 781 |
0 |
▶ | EXTEND(SP, 1 + avsizel); |
Branch: 2 branches
| Branch | True | False | Total |
| EXTEND(SP, 1 + avsizel); |
0 |
0 |
0 |
| EXTEND(SP, 1 + avsizel); |
0 |
0 |
0 |
|
| 782 |
0 |
| PUSHs(sv_2mortal(newSVsv(interfacep))); |
| 783 |
0 |
▶ | for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
0 |
0 |
0 |
|
| 784 |
0 |
| SV **svpp = av_fetch(avp, aviteratorl, 0); /* We manage ourself the avp, SV's are real */ |
| 785 |
0 |
▶ | if (UNLIKELY(svpp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(svpp == NULL)) { |
0 |
0 |
0 |
|
| 786 |
0 |
▶ | MARPAESLIFPERL_CROAKF("av_fetch returned NULL during arguments preparation for method %s", (methods != NULL) ? methods : "undef"); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("av_fetch returned NULL during arguments preparation for method %s", (methods != NULL) ? methods : "undef"); |
0 |
0 |
0 |
|
| 787 |
|
| } |
| 788 |
0 |
| PUSHs(sv_2mortal(newSVsv(*svpp))); |
| 789 |
|
| } |
| 790 |
|
| } else { |
| 791 |
0 |
▶ | if (avsizel > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (avsizel > 0) { |
0 |
0 |
0 |
|
| 792 |
0 |
▶ | EXTEND(SP, avsizel); |
Branch: 2 branches
| Branch | True | False | Total |
| EXTEND(SP, avsizel); |
0 |
0 |
0 |
| EXTEND(SP, avsizel); |
0 |
0 |
0 |
|
| 793 |
0 |
▶ | for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
0 |
0 |
0 |
|
| 794 |
0 |
| SV **svpp = av_fetch(avp, aviteratorl, 0); /* We manage ourself the avp, SV's are real */ |
| 795 |
0 |
▶ | if (UNLIKELY(svpp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(svpp == NULL)) { |
0 |
0 |
0 |
|
| 796 |
0 |
▶ | MARPAESLIFPERL_CROAKF("av_fetch returned NULL during arguments preparation for method %s", (methods != NULL) ? methods : "undef"); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("av_fetch returned NULL during arguments preparation for method %s", (methods != NULL) ? methods : "undef"); |
0 |
0 |
0 |
|
| 797 |
|
| } |
| 798 |
0 |
| PUSHs(sv_2mortal(newSVsv(*svpp))); |
| 799 |
|
| } |
| 800 |
|
| } |
| 801 |
|
| } |
| 802 |
0 |
| PUTBACK; |
| 803 |
|
| |
| 804 |
0 |
▶ | if (subSvp) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (subSvp) { |
0 |
0 |
0 |
|
| 805 |
0 |
| call_sv(subSvp, flags); |
| 806 |
0 |
▶ | } else if (interfacep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (interfacep != NULL) { |
0 |
0 |
0 |
|
| 807 |
0 |
| call_method(methods, flags); |
| 808 |
|
| } else { |
| 809 |
0 |
| call_pv(methods, flags); |
| 810 |
|
| } |
| 811 |
|
| |
| 812 |
0 |
▶ | if (evalb && (! evalSilentb)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (evalb && (! evalSilentb)) { |
0 |
0 |
0 |
| if (evalb && (! evalSilentb)) { |
0 |
0 |
0 |
|
| 813 |
|
| /* Check the eval */ |
| 814 |
0 |
▶ | err_tmp = ERRSV; |
Branch: 1 branch
| Branch | True | False | Total |
| err_tmp = ERRSV; |
0 |
0 |
0 |
|
| 815 |
0 |
▶ | if (SvTRUE(err_tmp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTRUE(err_tmp)) { |
0 |
0 |
0 |
|
| 816 |
0 |
| warn("%s\n", SvPV_nolen(err_tmp)); |
| 817 |
|
| } |
| 818 |
|
| } |
| 819 |
|
| |
| 820 |
0 |
| SPAGAIN; |
| 821 |
|
| |
| 822 |
0 |
| rcp = POPs; |
| 823 |
0 |
▶ | MARPAESLIFPERL_REFCNT_INC(rcp); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_INC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(rcp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(rcp); |
0 |
0 |
0 |
|
| 824 |
|
| |
| 825 |
0 |
| PUTBACK; |
| 826 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 827 |
0 |
| LEAVE; |
| 828 |
|
| |
| 829 |
|
| |
| 830 |
0 |
| return rcp; |
| 831 |
|
| } |
| 832 |
|
| |
| 833 |
|
| /*****************************************************************************/ |
| 834 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_recognizerCallbackActionp(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, AV *avp) |
| 835 |
|
| /*****************************************************************************/ |
| 836 |
|
| { |
| 837 |
|
| SV *svp; |
| 838 |
|
| |
| 839 |
0 |
| marpaESLIFPerl_setRecognizerEngineForCallbackv(aTHX_ MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizerp); |
| 840 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep, |
| 841 |
0 |
| MarpaX_ESLIF_Recognizerp->actions, |
| 842 |
|
| avp, |
| 843 |
|
| MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
| 844 |
0 |
| marpaESLIFPerl_restoreRecognizerEngineForCallbackv(aTHX_ MarpaX_ESLIF_Recognizerp); |
| 845 |
|
| |
| 846 |
|
| /* In any case we relax the eventual MarpaX_ESLIF_Recognizerp->resolvedActionSvp ref count */ |
| 847 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
|
| 848 |
0 |
| MarpaX_ESLIF_Recognizerp->resolvedActionSvp = NULL; |
| 849 |
|
| |
| 850 |
0 |
| return svp; |
| 851 |
|
| } |
| 852 |
|
| |
| 853 |
|
| /*****************************************************************************/ |
| 854 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_valueCallbackActionp(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, AV *avp) |
| 855 |
|
| /*****************************************************************************/ |
| 856 |
|
| { |
| 857 |
|
| SV *svp; |
| 858 |
|
| |
| 859 |
0 |
| svp = marpaESLIFPerl_call_actionp(aTHX_ MarpaX_ESLIF_Valuep->Perl_valueInterfacep, |
| 860 |
0 |
| MarpaX_ESLIF_Valuep->actions, |
| 861 |
|
| avp, |
| 862 |
|
| MarpaX_ESLIF_Valuep, |
| 863 |
|
| 0, /* evalb */ |
| 864 |
|
| 0, /* evalSilentb */ |
| 865 |
|
| MarpaX_ESLIF_Valuep->resolvedActionSvp); |
| 866 |
|
| |
| 867 |
|
| /* In any case we relax the eventual MarpaX_ESLIF_Recognizerp->resolvedActionSvp ref count */ |
| 868 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
|
| 869 |
0 |
| MarpaX_ESLIF_Valuep->resolvedActionSvp = NULL; |
| 870 |
|
| |
| 871 |
0 |
| return svp; |
| 872 |
|
| } |
| 873 |
|
| |
| 874 |
|
| /*****************************************************************************/ |
| 875 |
0 |
| PERL_STATIC_INLINE IV marpaESLIFPerl_call_methodi(pTHX_ SV *interfacep, const char *methods, SV *subSvp) |
| 876 |
|
| /*****************************************************************************/ |
| 877 |
|
| { |
| 878 |
|
| IV rci; |
| 879 |
0 |
| dSP; |
| 880 |
|
| |
| 881 |
0 |
| ENTER; |
| 882 |
0 |
| SAVETMPS; |
| 883 |
|
| |
| 884 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 885 |
0 |
▶ | EXTEND(SP, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 1); |
0 |
0 |
0 |
|
| 886 |
0 |
| PUSHs(sv_2mortal(newSVsv(interfacep))); |
| 887 |
0 |
| PUTBACK; |
| 888 |
|
| |
| 889 |
0 |
▶ | if (subSvp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (subSvp != NULL) { |
0 |
0 |
0 |
|
| 890 |
0 |
| call_sv(subSvp, G_SCALAR); |
| 891 |
|
| } else { |
| 892 |
0 |
| call_method(methods, G_SCALAR); |
| 893 |
|
| } |
| 894 |
|
| |
| 895 |
0 |
| SPAGAIN; |
| 896 |
|
| |
| 897 |
0 |
| rci = POPi; |
| 898 |
|
| |
| 899 |
0 |
| PUTBACK; |
| 900 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 901 |
0 |
| LEAVE; |
| 902 |
|
| |
| 903 |
0 |
| return rci; |
| 904 |
|
| } |
| 905 |
|
| |
| 906 |
|
| /*****************************************************************************/ |
| 907 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_call_methodb(pTHX_ SV *interfacep, const char *methods, SV *subSvp) |
| 908 |
|
| /*****************************************************************************/ |
| 909 |
|
| { |
| 910 |
|
| short rcb; |
| 911 |
0 |
| dSP; |
| 912 |
|
| |
| 913 |
0 |
| ENTER; |
| 914 |
0 |
| SAVETMPS; |
| 915 |
|
| |
| 916 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 917 |
0 |
▶ | EXTEND(SP, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 1); |
0 |
0 |
0 |
|
| 918 |
0 |
| PUSHs(sv_2mortal(newSVsv(interfacep))); |
| 919 |
0 |
| PUTBACK; |
| 920 |
|
| |
| 921 |
0 |
▶ | if (subSvp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (subSvp != NULL) { |
0 |
0 |
0 |
|
| 922 |
0 |
| call_sv(subSvp, G_SCALAR); |
| 923 |
|
| } else { |
| 924 |
0 |
| call_method(methods, G_SCALAR); |
| 925 |
|
| } |
| 926 |
|
| |
| 927 |
0 |
| SPAGAIN; |
| 928 |
|
| |
| 929 |
0 |
| rcb = (POPi != 0); |
| 930 |
|
| |
| 931 |
0 |
| PUTBACK; |
| 932 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 933 |
0 |
| LEAVE; |
| 934 |
|
| |
| 935 |
0 |
| return rcb; |
| 936 |
|
| } |
| 937 |
|
| |
| 938 |
|
| /*****************************************************************************/ |
| 939 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_genericLoggerCallbackv(void *userDatavp, genericLoggerLevel_t logLeveli, const char *msgs) |
| 940 |
|
| /*****************************************************************************/ |
| 941 |
|
| { |
| 942 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = (MarpaX_ESLIF_t *) userDatavp; |
| 943 |
0 |
| SV *Perl_loggerInterfacep = MarpaX_ESLIFp->Perl_loggerInterfacep; |
| 944 |
|
| char *method; |
| 945 |
|
| dTHXa(MarpaX_ESLIFp->PerlInterpreterp); /* dNOOP if no PERL_IMPLICIT_CONTEXT */ |
| 946 |
|
| |
| 947 |
0 |
| switch (logLeveli) { |
| 948 |
0 |
| case GENERICLOGGER_LOGLEVEL_TRACE: method = "trace"; break; |
| 949 |
0 |
| case GENERICLOGGER_LOGLEVEL_DEBUG: method = "debug"; break; |
| 950 |
0 |
| case GENERICLOGGER_LOGLEVEL_INFO: method = "info"; break; |
| 951 |
0 |
| case GENERICLOGGER_LOGLEVEL_NOTICE: method = "notice"; break; |
| 952 |
0 |
| case GENERICLOGGER_LOGLEVEL_WARNING: method = "warning"; break; |
| 953 |
0 |
| case GENERICLOGGER_LOGLEVEL_ERROR: method = "error"; break; |
| 954 |
0 |
| case GENERICLOGGER_LOGLEVEL_CRITICAL: method = "critical"; break; |
| 955 |
0 |
| case GENERICLOGGER_LOGLEVEL_ALERT: method = "alert"; break; |
| 956 |
0 |
| case GENERICLOGGER_LOGLEVEL_EMERGENCY: method = "emergency"; break; |
| 957 |
0 |
| default: method = NULL; break; |
| 958 |
|
| } |
| 959 |
|
| |
| 960 |
0 |
▶ | if (method != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (method != NULL) { |
0 |
0 |
0 |
|
| 961 |
|
| /* It should never happen that method is NULL -; */ |
| 962 |
|
| /* In addition ESLIF rarelly logs, propagating envp in the context */ |
| 963 |
|
| /* is an optimization that is almost useless */ |
| 964 |
0 |
| dSP; |
| 965 |
|
| |
| 966 |
0 |
| ENTER; |
| 967 |
0 |
| SAVETMPS; |
| 968 |
|
| |
| 969 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 970 |
0 |
▶ | EXTEND(SP, 2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 2); |
0 |
0 |
0 |
|
| 971 |
0 |
| PUSHs(sv_2mortal(newSVsv(Perl_loggerInterfacep))); |
| 972 |
|
| /* We always log only with ASCII characters */ |
| 973 |
0 |
| PUSHs(sv_2mortal(newSVpv(msgs,0))); |
| 974 |
0 |
| PUTBACK; |
| 975 |
|
| |
| 976 |
0 |
| call_method(method, G_DISCARD); |
| 977 |
|
| |
| 978 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 979 |
0 |
| LEAVE; |
| 980 |
|
| } |
| 981 |
0 |
| } |
| 982 |
|
| |
| 983 |
|
| /*****************************************************************************/ |
| 984 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_readerCallbackDisposev(void *userDatavp, char *inputcp, size_t inputl, short eofb, short characterStreamb, char *encodings, size_t encodingl) |
| 985 |
|
| /*****************************************************************************/ |
| 986 |
|
| { |
| 987 |
|
| static const char *funcs = "marpaESLIFPerl_readerCallbackDisposev"; |
| 988 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 989 |
0 |
| SV *Perl_recognizerInterfacep = MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep; |
| 990 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 991 |
|
| |
| 992 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp != NULL) { |
0 |
0 |
0 |
|
| 993 |
|
| |
| 994 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_datap); |
0 |
0 |
0 |
|
| 995 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_datap = NULL; |
| 996 |
|
| |
| 997 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->Perl_encodingp); |
0 |
0 |
0 |
|
| 998 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_encodingp = NULL; |
| 999 |
|
| } |
| 1000 |
0 |
| } |
| 1001 |
|
| |
| 1002 |
|
| /*****************************************************************************/ |
| 1003 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_readerCallbackb(void *userDatavp, char **inputcpp, size_t *inputlp, short *eofbp, short *characterStreambp, char **encodingsp, size_t *encodinglp, marpaESLIFReaderDispose_t *disposeCallbackpp) |
| 1004 |
|
| /*****************************************************************************/ |
| 1005 |
|
| { |
| 1006 |
|
| static const char *funcs = "marpaESLIFPerl_readerCallbackb"; |
| 1007 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1008 |
0 |
| SV *Perl_recognizerInterfacep = MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep; |
| 1009 |
|
| SV *Perl_datap; |
| 1010 |
|
| SV *Perl_encodingp; |
| 1011 |
0 |
| char *inputs = NULL; |
| 1012 |
0 |
| STRLEN inputl = 0; |
| 1013 |
0 |
| char *encodings = NULL; |
| 1014 |
0 |
| STRLEN encodingl = 0; |
| 1015 |
|
| int type; |
| 1016 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1017 |
|
| |
| 1018 |
|
| /* Call the read interface */ |
| 1019 |
0 |
▶ | if (! marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "read", MarpaX_ESLIF_Recognizerp->readSvp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "read", MarpaX_ESLIF_Recognizerp->readSvp)) { |
0 |
0 |
0 |
|
| 1020 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer->read() method failure"); |
| 1021 |
|
| } |
| 1022 |
|
| |
| 1023 |
|
| /* Call the data interface */ |
| 1024 |
0 |
| Perl_datap = marpaESLIFPerl_call_methodp(aTHX_ Perl_recognizerInterfacep, "data", NULL /* avp */, MarpaX_ESLIF_Recognizerp->dataSvp); |
| 1025 |
0 |
| type = marpaESLIFPerl_getTypei(aTHX_ Perl_datap); |
| 1026 |
0 |
▶ | if ((type & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 1027 |
|
| /* This is an error unless it is undef */ |
| 1028 |
0 |
▶ | if ((type & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 1029 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer->data() method must return a scalar or undef"); |
| 1030 |
|
| } |
| 1031 |
|
| } |
| 1032 |
0 |
▶ | if (SvOK(Perl_datap)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(Perl_datap)) { |
0 |
0 |
0 |
|
| 1033 |
0 |
| inputs = SvPV(Perl_datap, inputl); |
| 1034 |
|
| } |
| 1035 |
|
| |
| 1036 |
|
| /* Call the encoding interface */ |
| 1037 |
0 |
| Perl_encodingp = marpaESLIFPerl_call_methodp(aTHX_ Perl_recognizerInterfacep, "encoding", NULL /* avp */, MarpaX_ESLIF_Recognizerp->encodingSvp); |
| 1038 |
0 |
| type = marpaESLIFPerl_getTypei(aTHX_ Perl_datap); |
| 1039 |
0 |
▶ | if ((type & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 1040 |
|
| /* This is an error unless it is undef */ |
| 1041 |
0 |
▶ | if ((type & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 1042 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer->encoding() method must return a scalar or undef"); |
| 1043 |
|
| } |
| 1044 |
|
| } |
| 1045 |
0 |
▶ | if (SvOK(Perl_encodingp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(Perl_encodingp)) { |
0 |
0 |
0 |
|
| 1046 |
0 |
| encodings = SvPV(Perl_encodingp, encodingl); /* May be {NULL, 0} */ |
| 1047 |
|
| } else { |
| 1048 |
|
| /* User gave no encoding hint - we can use Perl_datap itself */ |
| 1049 |
|
| /* This will be ignored if *characterStreambp is false */ |
| 1050 |
0 |
▶ | if ((inputs != NULL) && DO_UTF8(Perl_datap)) { |
Branch: 3 branches
| Branch | True | False | Total |
| if ((inputs != NULL) && DO_UTF8(Perl_datap)) { |
0 |
0 |
0 |
| if ((inputs != NULL) && DO_UTF8(Perl_datap)) { |
0 |
0 |
0 |
| if ((inputs != NULL) && DO_UTF8(Perl_datap)) { |
0 |
0 |
0 |
|
| 1051 |
0 |
| encodings = (char *) UTF8s; |
| 1052 |
0 |
| encodingl = UTF8l; |
| 1053 |
|
| } |
| 1054 |
|
| } |
| 1055 |
|
| |
| 1056 |
0 |
| *inputcpp = inputs; |
| 1057 |
0 |
| *inputlp = (size_t) inputl; |
| 1058 |
0 |
| *eofbp = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isEof", MarpaX_ESLIF_Recognizerp->isEofSvp); |
| 1059 |
0 |
| *characterStreambp = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isCharacterStream", MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
| 1060 |
0 |
| *encodingsp = encodings; |
| 1061 |
0 |
| *encodinglp = encodingl; |
| 1062 |
0 |
| *disposeCallbackpp = marpaESLIFPerl_readerCallbackDisposev; |
| 1063 |
|
| |
| 1064 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_datap = Perl_datap; |
| 1065 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_encodingp = Perl_encodingp; |
| 1066 |
|
| |
| 1067 |
0 |
| return 1; |
| 1068 |
|
| } |
| 1069 |
|
| |
| 1070 |
|
| /*****************************************************************************/ |
| 1071 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_valueActionResolver(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, char *actions) |
| 1072 |
|
| /*****************************************************************************/ |
| 1073 |
|
| { |
| 1074 |
|
| SV *resolvedActionSvp; |
| 1075 |
|
| |
| 1076 |
|
| /* Just remember the action name - perl will croak if calling this method fails */ |
| 1077 |
0 |
| MarpaX_ESLIF_Valuep->actions = actions; |
| 1078 |
|
| |
| 1079 |
|
| /* If there is a resolve in the interface, use it */ |
| 1080 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->resolverSvp != &PL_sv_undef) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->resolverSvp != &PL_sv_undef) { |
0 |
0 |
0 |
|
| 1081 |
0 |
| resolvedActionSvp = &PL_sv_undef; |
| 1082 |
0 |
▶ | if (marpaESLIFPerl_canb(aTHX_ MarpaX_ESLIF_Valuep->Perl_valueInterfacep, actions, &resolvedActionSvp, MarpaX_ESLIF_Valuep->resolverSvp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFPerl_canb(aTHX_ MarpaX_ESLIF_Valuep->Perl_valueInterfacep, actions, &resolvedActionSvp, MarpaX_ESLIF_Valuep->resolverSvp)) { |
0 |
0 |
0 |
|
| 1083 |
0 |
| MarpaX_ESLIF_Valuep->resolvedActionSvp = resolvedActionSvp; |
| 1084 |
|
| } else { |
| 1085 |
0 |
| MarpaX_ESLIF_Valuep->resolvedActionSvp = NULL; |
| 1086 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
|
| 1087 |
|
| } |
| 1088 |
|
| } |
| 1089 |
0 |
| } |
| 1090 |
|
| |
| 1091 |
|
| /*****************************************************************************/ |
| 1092 |
0 |
| PERL_STATIC_INLINE marpaESLIFValueRuleCallback_t marpaESLIFPerl_valueRuleActionResolver(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, char *actions) |
| 1093 |
|
| /*****************************************************************************/ |
| 1094 |
|
| { |
| 1095 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1096 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1097 |
|
| |
| 1098 |
0 |
| marpaESLIFPerl_valueActionResolver(aTHX_ MarpaX_ESLIF_Valuep, actions); |
| 1099 |
|
| |
| 1100 |
0 |
| return marpaESLIFPerl_valueRuleCallbackb; |
| 1101 |
|
| } |
| 1102 |
|
| |
| 1103 |
|
| /*****************************************************************************/ |
| 1104 |
0 |
| PERL_STATIC_INLINE marpaESLIFValueSymbolCallback_t marpaESLIFPerl_valueSymbolActionResolver(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, char *actions) |
| 1105 |
|
| /*****************************************************************************/ |
| 1106 |
|
| { |
| 1107 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1108 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1109 |
|
| |
| 1110 |
0 |
| marpaESLIFPerl_valueActionResolver(aTHX_ MarpaX_ESLIF_Valuep, actions); |
| 1111 |
|
| |
| 1112 |
0 |
| return marpaESLIFPerl_valueSymbolCallbackb; |
| 1113 |
|
| } |
| 1114 |
|
| |
| 1115 |
|
| /*****************************************************************************/ |
| 1116 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerActionResolver(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, char *actions) |
| 1117 |
|
| /*****************************************************************************/ |
| 1118 |
|
| { |
| 1119 |
|
| SV *resolvedActionSvp; |
| 1120 |
|
| |
| 1121 |
|
| /* Just remember the action name - perl will croak if calling this method fails */ |
| 1122 |
0 |
| MarpaX_ESLIF_Recognizerp->actions = actions; |
| 1123 |
|
| |
| 1124 |
|
| /* If there is a resolve in the interface, use it */ |
| 1125 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->resolverSvp != &PL_sv_undef) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->resolverSvp != &PL_sv_undef) { |
0 |
0 |
0 |
|
| 1126 |
0 |
| resolvedActionSvp = &PL_sv_undef; |
| 1127 |
0 |
▶ | if (marpaESLIFPerl_canb(aTHX_ MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep, actions, &resolvedActionSvp, MarpaX_ESLIF_Recognizerp->resolverSvp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFPerl_canb(aTHX_ MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep, actions, &resolvedActionSvp, MarpaX_ESLIF_Recognizerp->resolverSvp)) { |
0 |
0 |
0 |
|
| 1128 |
0 |
| MarpaX_ESLIF_Recognizerp->resolvedActionSvp = resolvedActionSvp; |
| 1129 |
|
| } else { |
| 1130 |
0 |
| MarpaX_ESLIF_Recognizerp->resolvedActionSvp = NULL; |
| 1131 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(resolvedActionSvp); |
0 |
0 |
0 |
|
| 1132 |
|
| } |
| 1133 |
|
| } |
| 1134 |
0 |
| } |
| 1135 |
|
| |
| 1136 |
|
| /*****************************************************************************/ |
| 1137 |
0 |
| PERL_STATIC_INLINE marpaESLIFRecognizerIfCallback_t marpaESLIFPerl_recognizerIfActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions) |
| 1138 |
|
| /*****************************************************************************/ |
| 1139 |
|
| { |
| 1140 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1141 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1142 |
|
| |
| 1143 |
0 |
| marpaESLIFPerl_recognizerActionResolver(aTHX_ MarpaX_ESLIF_Recognizerp, actions); |
| 1144 |
|
| |
| 1145 |
0 |
| return marpaESLIFPerl_recognizerIfCallbackb; |
| 1146 |
|
| } |
| 1147 |
|
| |
| 1148 |
|
| /*****************************************************************************/ |
| 1149 |
0 |
| PERL_STATIC_INLINE marpaESLIFRecognizerEventCallback_t marpaESLIFPerl_recognizerEventActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions) |
| 1150 |
|
| /*****************************************************************************/ |
| 1151 |
|
| { |
| 1152 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1153 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1154 |
|
| |
| 1155 |
0 |
| marpaESLIFPerl_recognizerActionResolver(aTHX_ MarpaX_ESLIF_Recognizerp, actions); |
| 1156 |
|
| |
| 1157 |
0 |
| return marpaESLIFPerl_recognizerEventCallbackb; |
| 1158 |
|
| } |
| 1159 |
|
| |
| 1160 |
|
| /*****************************************************************************/ |
| 1161 |
0 |
| PERL_STATIC_INLINE marpaESLIFRecognizerRegexCallback_t marpaESLIFPerl_recognizerRegexActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions) |
| 1162 |
|
| /*****************************************************************************/ |
| 1163 |
|
| { |
| 1164 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1165 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1166 |
|
| |
| 1167 |
0 |
| marpaESLIFPerl_recognizerActionResolver(aTHX_ MarpaX_ESLIF_Recognizerp, actions); |
| 1168 |
|
| |
| 1169 |
0 |
| return marpaESLIFPerl_recognizerRegexCallbackb; |
| 1170 |
|
| } |
| 1171 |
|
| |
| 1172 |
|
| /*****************************************************************************/ |
| 1173 |
0 |
| PERL_STATIC_INLINE marpaESLIFRecognizerGeneratorCallback_t marpaESLIFPerl_recognizerGeneratorActionResolver(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, char *actions) |
| 1174 |
|
| /*****************************************************************************/ |
| 1175 |
|
| { |
| 1176 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1177 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1178 |
|
| |
| 1179 |
0 |
| marpaESLIFPerl_recognizerActionResolver(aTHX_ MarpaX_ESLIF_Recognizerp, actions); |
| 1180 |
|
| |
| 1181 |
0 |
| return marpaESLIFPerl_recognizerGeneratorCallbackb; |
| 1182 |
|
| } |
| 1183 |
|
| |
| 1184 |
|
| /*****************************************************************************/ |
| 1185 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_valueGetSvp(pTHX_ marpaESLIFValue_t *marpaESLIFValuep, genericStack_t *internalStackp, int stackindicei, marpaESLIFValueResult_t *marpaESLIFValueResultLexemep) |
| 1186 |
|
| /*****************************************************************************/ |
| 1187 |
|
| /* This function is guaranteed to return an SV in any case that will HAVE TO BE refcount_dec'ed: either this is a new SV, either this is a casted SV. */ |
| 1188 |
|
| /* The ref count of the returned SV is always incremented (1 when it is new, ++ when this is a casted SV) */ |
| 1189 |
|
| { |
| 1190 |
|
| static const char *funcs = "marpaESLIFPerl_valueGetSvp"; |
| 1191 |
|
| marpaESLIFValueResult_t *marpaESLIFValueResultp; |
| 1192 |
|
| |
| 1193 |
0 |
▶ | if (marpaESLIFValueResultLexemep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultLexemep != NULL) { |
0 |
0 |
0 |
|
| 1194 |
0 |
| marpaESLIFValueResultp = marpaESLIFValueResultLexemep; |
| 1195 |
|
| } else { |
| 1196 |
0 |
| marpaESLIFValueResultp = marpaESLIFValue_stack_getp(marpaESLIFValuep, stackindicei); |
| 1197 |
0 |
▶ | if (UNLIKELY(marpaESLIFValueResultp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFValueResultp == NULL)) { |
0 |
0 |
0 |
|
| 1198 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValueResultp is NULL at stack indice %d", stackindicei); |
| 1199 |
|
| } |
| 1200 |
|
| } |
| 1201 |
|
| |
| 1202 |
0 |
▶ | if (UNLIKELY(! marpaESLIFValue_importb(marpaESLIFValuep, marpaESLIFValueResultp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFValue_importb(marpaESLIFValuep, marpaESLIFValueResultp))) { |
0 |
0 |
0 |
|
| 1203 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_importb failure, %s", strerror(errno)); |
| 1204 |
|
| } |
| 1205 |
|
| |
| 1206 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 1207 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(internalStackp)); |
| 1208 |
|
| } |
| 1209 |
|
| |
| 1210 |
0 |
| return (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(internalStackp); |
| 1211 |
|
| } |
| 1212 |
|
| |
| 1213 |
|
| /*****************************************************************************/ |
| 1214 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_recognizerGetSvp(pTHX_ marpaESLIFRecognizer_t *marpaESLIFRecognizerp, genericStack_t *internalStackp, marpaESLIFValueResult_t *marpaESLIFValueResultp) |
| 1215 |
|
| /*****************************************************************************/ |
| 1216 |
|
| /* This function is guaranteed to return an SV in any case that will HAVE TO BE refcount_dec'ed: either this is a new SV, either this is a casted SV. */ |
| 1217 |
|
| /* The ref count of the returned SV is always incremented (1 when it is new, ++ when this is a casted SV) */ |
| 1218 |
|
| { |
| 1219 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerGetSvp"; |
| 1220 |
|
| |
| 1221 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_importb(marpaESLIFRecognizerp, marpaESLIFValueResultp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_importb(marpaESLIFRecognizerp, marpaESLIFValueResultp))) { |
0 |
0 |
0 |
|
| 1222 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_importb failure, %s", strerror(errno)); |
| 1223 |
|
| } |
| 1224 |
|
| |
| 1225 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 1226 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(internalStackp)); |
| 1227 |
|
| } |
| 1228 |
|
| |
| 1229 |
0 |
| return (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(internalStackp); |
| 1230 |
|
| } |
| 1231 |
|
| |
| 1232 |
|
| /*****************************************************************************/ |
| 1233 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_valueRuleCallbackb(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, int arg0i, int argni, int resulti, short nullableb) |
| 1234 |
|
| /*****************************************************************************/ |
| 1235 |
|
| { |
| 1236 |
|
| static const char *funcs = "marpaESLIFPerl_valueRuleCallbackb"; |
| 1237 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1238 |
0 |
| SV *Perl_valueInterfacep = MarpaX_ESLIF_Valuep->Perl_valueInterfacep; |
| 1239 |
0 |
| genericStack_t *internalStackp = MarpaX_ESLIF_Valuep->internalStackp; |
| 1240 |
0 |
| AV *list = NULL; |
| 1241 |
|
| SV *actionResult; |
| 1242 |
|
| SV *svp; |
| 1243 |
|
| int i; |
| 1244 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1245 |
|
| |
| 1246 |
|
| /* Get value context */ |
| 1247 |
0 |
▶ | if (UNLIKELY(! marpaESLIFValue_contextb(marpaESLIFValuep, &(MarpaX_ESLIF_Valuep->symbols), &(MarpaX_ESLIF_Valuep->symboli), &(MarpaX_ESLIF_Valuep->rules), &(MarpaX_ESLIF_Valuep->rulei)))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFValue_contextb(marpaESLIFValuep, &(MarpaX_ESLIF_Valuep->symbols), &(MarpaX_ESLIF_Valuep->symboli), &(MarpaX_ESLIF_Valuep->rules), &(MarpaX_ESLIF_Valuep->rulei)))) { |
0 |
0 |
0 |
|
| 1248 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_contextb failure, %s", strerror(errno)); |
| 1249 |
|
| } |
| 1250 |
|
| |
| 1251 |
0 |
▶ | if (! nullableb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! nullableb) { |
0 |
0 |
0 |
|
| 1252 |
0 |
| list = newAV(); |
| 1253 |
0 |
▶ | for (i = arg0i; i <= argni; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = arg0i; i <= argni; i++) { |
0 |
0 |
0 |
|
| 1254 |
0 |
| svp = marpaESLIFPerl_valueGetSvp(aTHX_ marpaESLIFValuep, internalStackp, i, NULL /* marpaESLIFValueResultLexemep */); |
| 1255 |
|
| /* One reference count ownership is transfered to the array */ |
| 1256 |
0 |
▶ | av_push(list, (svp == &PL_sv_undef) ? newSV(0) : svp); |
Branch: 1 branch
| Branch | True | False | Total |
| av_push(list, (svp == &PL_sv_undef) ? newSV(0) : svp); |
0 |
0 |
0 |
|
| 1257 |
|
| } |
| 1258 |
|
| } |
| 1259 |
|
| |
| 1260 |
0 |
| actionResult = marpaESLIFPerl_valueCallbackActionp(aTHX_ MarpaX_ESLIF_Valuep, list); |
| 1261 |
|
| |
| 1262 |
0 |
▶ | if (list != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (list != NULL) { |
0 |
0 |
0 |
|
| 1263 |
|
| /* This will decrement all elements reference count */ |
| 1264 |
0 |
| av_undef(list); |
| 1265 |
|
| } |
| 1266 |
|
| |
| 1267 |
0 |
| marpaESLIFPerl_stack_setv(aTHX_ marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(marpaESLIFValue_recognizerp(MarpaX_ESLIF_Valuep->marpaESLIFValuep))), marpaESLIFValuep, resulti, actionResult, NULL /* marpaESLIFValueResultOutputp */, 0 /* incb */, MarpaX_ESLIF_Valuep->constantsp); |
| 1268 |
|
| |
| 1269 |
0 |
| return 1; |
| 1270 |
|
| } |
| 1271 |
|
| |
| 1272 |
|
| /*****************************************************************************/ |
| 1273 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_valueSymbolCallbackb(void *userDatavp, marpaESLIFValue_t *marpaESLIFValuep, marpaESLIFValueResult_t *marpaESLIFValueResultp, int resulti) |
| 1274 |
|
| /*****************************************************************************/ |
| 1275 |
|
| { |
| 1276 |
|
| /* Almost exactly like marpaESLIFPerl_valueRuleCallbackb except that we construct a list of one element containing a byte array that we do ourself */ |
| 1277 |
|
| static const char *funcs = "marpaESLIFPerl_valueSymbolCallbackb"; |
| 1278 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1279 |
0 |
| genericStack_t *internalStackp = MarpaX_ESLIF_Valuep->internalStackp; |
| 1280 |
0 |
| AV *list = NULL; |
| 1281 |
|
| SV *svp; |
| 1282 |
|
| SV *actionResult; |
| 1283 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1284 |
|
| |
| 1285 |
|
| /* Get value context */ |
| 1286 |
0 |
▶ | if (UNLIKELY(! marpaESLIFValue_contextb(marpaESLIFValuep, &(MarpaX_ESLIF_Valuep->symbols), &(MarpaX_ESLIF_Valuep->symboli), &(MarpaX_ESLIF_Valuep->rules), &(MarpaX_ESLIF_Valuep->rulei)))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFValue_contextb(marpaESLIFValuep, &(MarpaX_ESLIF_Valuep->symbols), &(MarpaX_ESLIF_Valuep->symboli), &(MarpaX_ESLIF_Valuep->rules), &(MarpaX_ESLIF_Valuep->rulei)))) { |
0 |
0 |
0 |
|
| 1287 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_contextb failure, %s", strerror(errno)); |
| 1288 |
|
| } |
| 1289 |
|
| |
| 1290 |
0 |
| list = newAV(); |
| 1291 |
0 |
| svp = marpaESLIFPerl_valueGetSvp(aTHX_ marpaESLIFValuep, internalStackp, -1 /* stackindicei */, marpaESLIFValueResultp); |
| 1292 |
|
| /* One reference count ownership is transfered to the array */ |
| 1293 |
0 |
▶ | av_push(list, (svp == &PL_sv_undef) ? newSV(0) : svp); |
Branch: 1 branch
| Branch | True | False | Total |
| av_push(list, (svp == &PL_sv_undef) ? newSV(0) : svp); |
0 |
0 |
0 |
|
| 1294 |
0 |
| actionResult = marpaESLIFPerl_valueCallbackActionp(aTHX_ MarpaX_ESLIF_Valuep, list); |
| 1295 |
|
| /* This will decrement by one the inner element reference count */ |
| 1296 |
0 |
| av_undef(list); |
| 1297 |
|
| |
| 1298 |
0 |
| marpaESLIFPerl_stack_setv(aTHX_ marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(marpaESLIFValue_recognizerp(MarpaX_ESLIF_Valuep->marpaESLIFValuep))), marpaESLIFValuep, resulti, actionResult, NULL /* marpaESLIFValueResultOutputp */, 0 /* incb */, MarpaX_ESLIF_Valuep->constantsp); |
| 1299 |
|
| |
| 1300 |
0 |
| return 1; |
| 1301 |
|
| } |
| 1302 |
|
| |
| 1303 |
|
| /*****************************************************************************/ |
| 1304 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerIfCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *marpaESLIFValueResultp, marpaESLIFValueResultBool_t *marpaESLIFValueResultBoolp) |
| 1305 |
|
| /*****************************************************************************/ |
| 1306 |
|
| { |
| 1307 |
|
| /* Almost exactly like marpaESLIFPerl_valueSymbolCallbackb */ |
| 1308 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerIfCallbackb"; |
| 1309 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1310 |
0 |
| genericStack_t *internalStackp = MarpaX_ESLIF_Recognizerp->internalStackp; |
| 1311 |
0 |
| AV *list = NULL; |
| 1312 |
|
| SV *svp; |
| 1313 |
|
| SV *actionResult; |
| 1314 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1315 |
|
| |
| 1316 |
0 |
| list = newAV(); |
| 1317 |
0 |
| svp = marpaESLIFPerl_recognizerGetSvp(aTHX_ marpaESLIFRecognizerp, internalStackp, marpaESLIFValueResultp); |
| 1318 |
|
| /* One reference count ownership is transfered to the array */ |
| 1319 |
0 |
| av_push(list, svp); |
| 1320 |
0 |
| actionResult = marpaESLIFPerl_recognizerCallbackActionp(aTHX_ MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizerp, list); |
| 1321 |
|
| /* This will decrement by one the inner element reference count */ |
| 1322 |
0 |
| av_undef(list); |
| 1323 |
|
| |
| 1324 |
0 |
| *marpaESLIFValueResultBoolp = SvTRUE(actionResult) ? MARPAESLIFVALUERESULTBOOL_TRUE : MARPAESLIFVALUERESULTBOOL_FALSE; |
| 1325 |
|
| |
| 1326 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(actionResult); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
|
| 1327 |
|
| |
| 1328 |
0 |
| return 1; |
| 1329 |
|
| } |
| 1330 |
|
| |
| 1331 |
|
| /*****************************************************************************/ |
| 1332 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerEventCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFEvent_t *eventArrayp, size_t eventArrayl, marpaESLIFValueResultBool_t *marpaESLIFValueResultBoolp) |
| 1333 |
|
| /*****************************************************************************/ |
| 1334 |
|
| { |
| 1335 |
|
| /* Almost exactly like marpaESLIFPerl_recognizerIfCallbackb */ |
| 1336 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerEventCallbackb"; |
| 1337 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1338 |
0 |
| AV *list = NULL; |
| 1339 |
|
| HV *hv; |
| 1340 |
|
| size_t i; |
| 1341 |
|
| SV *svp; |
| 1342 |
|
| SV *actionResult; |
| 1343 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1344 |
|
| |
| 1345 |
0 |
| list = newAV(); |
| 1346 |
|
| |
| 1347 |
0 |
▶ | for (i = 0; i < eventArrayl; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < eventArrayl; i++) { |
0 |
0 |
0 |
|
| 1348 |
0 |
| hv = (HV *)sv_2mortal((SV *)newHV()); |
| 1349 |
|
| |
| 1350 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "type", strlen("type"), newSViv(eventArrayp[i].type), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "type", strlen("type"), newSViv(eventArrayp[i].type), 0) == NULL)) { |
0 |
0 |
0 |
|
| 1351 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for type => %d", eventArrayp[i].type); |
| 1352 |
|
| } |
| 1353 |
|
| |
| 1354 |
0 |
▶ | if (eventArrayp[i].symbols != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (eventArrayp[i].symbols != NULL) { |
0 |
0 |
0 |
|
| 1355 |
0 |
| svp = newSVpv(eventArrayp[i].symbols, 0); |
| 1356 |
0 |
▶ | if (is_utf8_string((const U8 *) eventArrayp[i].symbols, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (is_utf8_string((const U8 *) eventArrayp[i].symbols, 0)) { |
0 |
0 |
0 |
|
| 1357 |
0 |
| SvUTF8_on(svp); |
| 1358 |
|
| } |
| 1359 |
|
| } else { |
| 1360 |
0 |
| svp = newSV(0); |
| 1361 |
|
| } |
| 1362 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "symbol", strlen("symbol"), svp, 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "symbol", strlen("symbol"), svp, 0) == NULL)) { |
0 |
0 |
0 |
|
| 1363 |
0 |
▶ | MARPAESLIFPERL_CROAKF("hv_store failure for symbol => %s", (eventArrayp[i].symbols != NULL) ? eventArrayp[i].symbols : ""); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("hv_store failure for symbol => %s", (eventArrayp[i].symbols != NULL) ? eventArrayp[i].symbols : ""); |
0 |
0 |
0 |
|
| 1364 |
|
| } |
| 1365 |
|
| |
| 1366 |
0 |
▶ | if (eventArrayp[i].events != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (eventArrayp[i].events != NULL) { |
0 |
0 |
0 |
|
| 1367 |
0 |
| svp = newSVpv(eventArrayp[i].events, 0); |
| 1368 |
0 |
▶ | if (is_utf8_string((const U8 *) eventArrayp[i].events, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (is_utf8_string((const U8 *) eventArrayp[i].events, 0)) { |
0 |
0 |
0 |
|
| 1369 |
0 |
| SvUTF8_on(svp); |
| 1370 |
|
| } |
| 1371 |
|
| } else { |
| 1372 |
0 |
| svp = newSV(0); |
| 1373 |
|
| } |
| 1374 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "event", strlen("event"), svp, 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "event", strlen("event"), svp, 0) == NULL)) { |
0 |
0 |
0 |
|
| 1375 |
0 |
▶ | MARPAESLIFPERL_CROAKF("hv_store failure for event => %s", (eventArrayp[i].events != NULL) ? eventArrayp[i].events : ""); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("hv_store failure for event => %s", (eventArrayp[i].events != NULL) ? eventArrayp[i].events : ""); |
0 |
0 |
0 |
|
| 1376 |
|
| } |
| 1377 |
|
| |
| 1378 |
0 |
| av_push(list, newRV((SV *)hv)); |
| 1379 |
|
| } |
| 1380 |
0 |
| actionResult = marpaESLIFPerl_recognizerCallbackActionp(aTHX_ MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizerp, list); |
| 1381 |
|
| /* This will decrement by one the inner elements reference count */ |
| 1382 |
0 |
| av_undef(list); |
| 1383 |
|
| |
| 1384 |
0 |
| *marpaESLIFValueResultBoolp = SvTRUE(actionResult) ? MARPAESLIFVALUERESULTBOOL_TRUE : MARPAESLIFVALUERESULTBOOL_FALSE; |
| 1385 |
|
| |
| 1386 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(actionResult); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
|
| 1387 |
|
| |
| 1388 |
0 |
| return 1; |
| 1389 |
|
| } |
| 1390 |
|
| |
| 1391 |
|
| /*****************************************************************************/ |
| 1392 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerRegexCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *marpaESLIFCalloutBlockp, marpaESLIFValueResultInt_t *marpaESLIFValueResultOutp) |
| 1393 |
|
| /*****************************************************************************/ |
| 1394 |
|
| { |
| 1395 |
|
| /* Almost exactly like marpaESLIFPerl_recognizerIfCallbackb */ |
| 1396 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerRegexCallbackb"; |
| 1397 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1398 |
0 |
| genericStack_t *internalStackp = MarpaX_ESLIF_Recognizerp->internalStackp; |
| 1399 |
0 |
| AV *list = NULL; |
| 1400 |
|
| SV *svp; |
| 1401 |
|
| SV *actionResult; |
| 1402 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1403 |
|
| |
| 1404 |
0 |
| list = newAV(); |
| 1405 |
|
| /* Note that by definition svp is a reference to a hash - we bless it to MarpaX::ESLIF::RegexCallout - svp count is unaffected */ |
| 1406 |
0 |
| svp = sv_bless(marpaESLIFPerl_recognizerGetSvp(aTHX_ marpaESLIFRecognizerp, |
| 1407 |
|
| internalStackp, |
| 1408 |
|
| marpaESLIFCalloutBlockp), |
| 1409 |
|
| gv_stashpv("MarpaX::ESLIF::RegexCallout", 0)); |
| 1410 |
|
| /* One reference count ownership is transfered to the array */ |
| 1411 |
0 |
| av_push(list, svp); |
| 1412 |
0 |
| actionResult = marpaESLIFPerl_recognizerCallbackActionp(aTHX_ MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizerp, list); |
| 1413 |
|
| |
| 1414 |
|
| /* This will decrement by one the inner element reference count */ |
| 1415 |
0 |
| av_undef(list); |
| 1416 |
|
| |
| 1417 |
0 |
| *marpaESLIFValueResultOutp = (marpaESLIFValueResultInt_t) SvIV(actionResult); |
| 1418 |
|
| |
| 1419 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(actionResult); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
|
| 1420 |
|
| |
| 1421 |
0 |
| return 1; |
| 1422 |
|
| } |
| 1423 |
|
| |
| 1424 |
|
| /*****************************************************************************/ |
| 1425 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerGeneratorCallbackb(void *userDatavp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp, marpaESLIFValueResult_t *contextp, marpaESLIFValueResultString_t *marpaESLIFValueResultOutp) |
| 1426 |
|
| /*****************************************************************************/ |
| 1427 |
|
| { |
| 1428 |
|
| /* Almost exactly like marpaESLIFPerl_recognizerIfCallbackb */ |
| 1429 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerGeneratorCallbackb"; |
| 1430 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 1431 |
0 |
| genericStack_t *internalStackp = MarpaX_ESLIF_Recognizerp->internalStackp; |
| 1432 |
0 |
| AV *list = NULL; |
| 1433 |
|
| /* Note that ESLIF guarantees that contextp is never NULL and is of type ROW */ |
| 1434 |
0 |
| size_t nargs = contextp->u.r.sizel; |
| 1435 |
|
| size_t i; |
| 1436 |
|
| SV *svp; |
| 1437 |
|
| SV *actionResult; |
| 1438 |
|
| int typei; |
| 1439 |
0 |
| char *strings = NULL; |
| 1440 |
0 |
| STRLEN stringl = 0; |
| 1441 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 1442 |
|
| |
| 1443 |
0 |
| list = newAV(); |
| 1444 |
0 |
▶ | for (i = 0; i < nargs; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < nargs; i++) { |
0 |
0 |
0 |
|
| 1445 |
0 |
| svp = marpaESLIFPerl_recognizerGetSvp(aTHX_ marpaESLIFRecognizerp, internalStackp, &(contextp->u.r.p[i])); |
| 1446 |
|
| /* One reference count ownership is transfered to the array */ |
| 1447 |
0 |
| av_push(list, svp); |
| 1448 |
|
| } |
| 1449 |
|
| |
| 1450 |
0 |
| actionResult = marpaESLIFPerl_recognizerCallbackActionp(aTHX_ MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizerp, list); |
| 1451 |
|
| /* This will decrement by one the inner element reference count */ |
| 1452 |
0 |
| av_undef(list); |
| 1453 |
|
| |
| 1454 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ actionResult); |
| 1455 |
|
| |
| 1456 |
|
| /* Call explicitly for stringification. If no encoding can be set, ESLIF will guess. */ |
| 1457 |
0 |
| marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(marpaESLIFRecognizerp)), |
| 1458 |
|
| actionResult, |
| 1459 |
0 |
| (char **) &(marpaESLIFValueResultOutp->p), |
| 1460 |
|
| &(marpaESLIFValueResultOutp->sizel), |
| 1461 |
|
| 1 /* encodingInformationb */, |
| 1462 |
|
| NULL /* characterStreambp */, |
| 1463 |
|
| &(marpaESLIFValueResultOutp->encodingasciis), |
| 1464 |
|
| NULL /* encodinglp */, |
| 1465 |
|
| 0 /* warnIsFatalb */, |
| 1466 |
0 |
| marpaESLIFPerl_is_MarpaX__ESLIF__String(aTHX_ actionResult, typei) /* marpaESLIFStringb */, |
| 1467 |
|
| MarpaX_ESLIF_Recognizerp->constantsp); |
| 1468 |
|
| |
| 1469 |
|
| /* Prepare for the callback: ESLIF will call for destruction after it is processed */ |
| 1470 |
0 |
| marpaESLIFValueResultOutp->freeUserDatavp = marpaESLIFPerlaTHX; |
| 1471 |
0 |
| marpaESLIFValueResultOutp->freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 1472 |
0 |
| marpaESLIFValueResultOutp->shallowb = 0; |
| 1473 |
|
| |
| 1474 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(actionResult); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(actionResult); |
0 |
0 |
0 |
|
| 1475 |
|
| |
| 1476 |
0 |
| return 1; |
| 1477 |
|
| } |
| 1478 |
|
| |
| 1479 |
|
| /*****************************************************************************/ |
| 1480 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_genericFreeCallbackv(void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp) |
| 1481 |
|
| /*****************************************************************************/ |
| 1482 |
|
| { |
| 1483 |
|
| dTHXa(userDatavp); |
| 1484 |
|
| |
| 1485 |
0 |
| switch (marpaESLIFValueResultp->type) { |
| 1486 |
0 |
| case MARPAESLIF_VALUE_TYPE_PTR: |
| 1487 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(marpaESLIFValueResultp->u.p.p); |
0 |
0 |
0 |
|
| 1488 |
0 |
| break; |
| 1489 |
0 |
| case MARPAESLIF_VALUE_TYPE_ARRAY: |
| 1490 |
0 |
▶ | if (marpaESLIFValueResultp->u.a.p != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.a.p != NULL) { |
0 |
0 |
0 |
|
| 1491 |
|
| /* We use marpaESLIFPerl_sv2byte() to get the pointer out of an SV, and this */ |
| 1492 |
|
| /* may become an ARRAY type if there is no encoding */ |
| 1493 |
0 |
| Safefree(marpaESLIFValueResultp->u.a.p); |
| 1494 |
|
| } |
| 1495 |
0 |
| break; |
| 1496 |
0 |
| case MARPAESLIF_VALUE_TYPE_STRING: |
| 1497 |
0 |
▶ | if (marpaESLIFValueResultp->u.s.p != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.s.p != NULL) { |
0 |
0 |
0 |
|
| 1498 |
0 |
| Safefree(marpaESLIFValueResultp->u.s.p); |
| 1499 |
|
| } |
| 1500 |
|
| /* encoding may refer to the constant UTF8s */ |
| 1501 |
0 |
▶ | if ((marpaESLIFValueResultp->u.s.encodingasciis != NULL) && (marpaESLIFValueResultp->u.s.encodingasciis != UTF8s)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((marpaESLIFValueResultp->u.s.encodingasciis != NULL) && (marpaESLIFValueResultp->u.s.encodingasciis != UTF8s)) { |
0 |
0 |
0 |
| if ((marpaESLIFValueResultp->u.s.encodingasciis != NULL) && (marpaESLIFValueResultp->u.s.encodingasciis != UTF8s)) { |
0 |
0 |
0 |
|
| 1502 |
0 |
| Safefree(marpaESLIFValueResultp->u.s.encodingasciis); |
| 1503 |
|
| } |
| 1504 |
0 |
| break; |
| 1505 |
0 |
| case MARPAESLIF_VALUE_TYPE_ROW: |
| 1506 |
0 |
▶ | if (marpaESLIFValueResultp->u.r.p != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.r.p != NULL) { |
0 |
0 |
0 |
|
| 1507 |
0 |
| Safefree(marpaESLIFValueResultp->u.r.p); |
| 1508 |
|
| } |
| 1509 |
0 |
| break; |
| 1510 |
0 |
| case MARPAESLIF_VALUE_TYPE_TABLE: |
| 1511 |
0 |
▶ | if (marpaESLIFValueResultp->u.t.p != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.t.p != NULL) { |
0 |
0 |
0 |
|
| 1512 |
0 |
| Safefree(marpaESLIFValueResultp->u.t.p); |
| 1513 |
|
| } |
| 1514 |
0 |
| break; |
| 1515 |
0 |
| default: |
| 1516 |
0 |
| break; |
| 1517 |
|
| } |
| 1518 |
0 |
| } |
| 1519 |
|
| |
| 1520 |
|
| /*****************************************************************************/ |
| 1521 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_ContextInitv(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp) |
| 1522 |
|
| /*****************************************************************************/ |
| 1523 |
|
| { |
| 1524 |
0 |
| MarpaX_ESLIFp->Perl_loggerInterfacep = &PL_sv_undef; |
| 1525 |
0 |
| MarpaX_ESLIFp->genericLoggerp = NULL; |
| 1526 |
0 |
| MarpaX_ESLIFp->marpaESLIFp = NULL; |
| 1527 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 1528 |
|
| MarpaX_ESLIFp->PerlInterpreterp = aTHX; |
| 1529 |
|
| #endif |
| 1530 |
0 |
| marpaESLIFPerl_constants_initv(aTHX_ &(MarpaX_ESLIFp->constants)); |
| 1531 |
0 |
| } |
| 1532 |
|
| |
| 1533 |
|
| /*****************************************************************************/ |
| 1534 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_ContextFreev(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp) |
| 1535 |
|
| /*****************************************************************************/ |
| 1536 |
|
| { |
| 1537 |
0 |
▶ | if (MarpaX_ESLIFp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIFp != NULL) { |
0 |
0 |
0 |
|
| 1538 |
0 |
▶ | if (MarpaX_ESLIFp->marpaESLIFp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIFp->marpaESLIFp != NULL) { |
0 |
0 |
0 |
|
| 1539 |
0 |
| marpaESLIF_freev(MarpaX_ESLIFp->marpaESLIFp); |
| 1540 |
|
| } |
| 1541 |
0 |
| genericLogger_freev(&(MarpaX_ESLIFp->genericLoggerp)); /* This is NULL aware */ |
| 1542 |
0 |
| marpaESLIFPerl_constants_disposev(aTHX_ &(MarpaX_ESLIFp->constants)); |
| 1543 |
0 |
| Safefree(MarpaX_ESLIFp); |
| 1544 |
|
| } |
| 1545 |
0 |
| } |
| 1546 |
|
| |
| 1547 |
|
| /*****************************************************************************/ |
| 1548 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_grammarContextFreev(pTHX_ MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp) |
| 1549 |
|
| /*****************************************************************************/ |
| 1550 |
|
| { |
| 1551 |
0 |
▶ | if (MarpaX_ESLIF_Grammarp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Grammarp != NULL) { |
0 |
0 |
0 |
|
| 1552 |
0 |
▶ | if (MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp != NULL) { |
0 |
0 |
0 |
|
| 1553 |
0 |
| marpaESLIFGrammar_freev(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp); |
| 1554 |
|
| } |
| 1555 |
0 |
| Safefree(MarpaX_ESLIF_Grammarp); |
| 1556 |
|
| } |
| 1557 |
0 |
| } |
| 1558 |
|
| |
| 1559 |
|
| /*****************************************************************************/ |
| 1560 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_symbolContextFreev(pTHX_ MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp) |
| 1561 |
|
| /*****************************************************************************/ |
| 1562 |
|
| { |
| 1563 |
0 |
▶ | if (MarpaX_ESLIF_Symbolp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Symbolp != NULL) { |
0 |
0 |
0 |
|
| 1564 |
0 |
| marpaESLIFPerl_freeInternalStackv(aTHX_ MarpaX_ESLIF_Symbolp->internalStackp); |
| 1565 |
|
| |
| 1566 |
0 |
▶ | if (MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp != NULL) { |
0 |
0 |
0 |
|
| 1567 |
0 |
| marpaESLIFSymbol_freev(MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp); |
| 1568 |
|
| } |
| 1569 |
|
| |
| 1570 |
0 |
| Safefree(MarpaX_ESLIF_Symbolp); |
| 1571 |
|
| } |
| 1572 |
0 |
| } |
| 1573 |
|
| |
| 1574 |
|
| /*****************************************************************************/ |
| 1575 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_valueContextFreev(pTHX_ MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, short onStackb) |
| 1576 |
|
| /*****************************************************************************/ |
| 1577 |
|
| { |
| 1578 |
0 |
▶ | if (MarpaX_ESLIF_Valuep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep != NULL) { |
0 |
0 |
0 |
|
| 1579 |
0 |
| marpaESLIFPerl_freeInternalStackv(aTHX_ MarpaX_ESLIF_Valuep->internalStackp); |
| 1580 |
|
| |
| 1581 |
0 |
▶ | if (MarpaX_ESLIF_Valuep->marpaESLIFValuep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Valuep->marpaESLIFValuep != NULL) { |
0 |
0 |
0 |
|
| 1582 |
0 |
| marpaESLIFValue_freev(MarpaX_ESLIF_Valuep->marpaESLIFValuep); |
| 1583 |
|
| } |
| 1584 |
|
| |
| 1585 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNameSvp); |
0 |
0 |
0 |
|
| 1586 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setSymbolNumberSvp); |
0 |
0 |
0 |
|
| 1587 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNameSvp); |
0 |
0 |
0 |
|
| 1588 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setRuleNumberSvp); |
0 |
0 |
0 |
|
| 1589 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setGrammarSvp); |
0 |
0 |
0 |
|
| 1590 |
|
| |
| 1591 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp); |
0 |
0 |
0 |
|
| 1592 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp); |
0 |
0 |
0 |
|
| 1593 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp); |
0 |
0 |
0 |
|
| 1594 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->isWithNullSvp); |
0 |
0 |
0 |
|
| 1595 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->maxParsesSvp); |
0 |
0 |
0 |
|
| 1596 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->setResultSvp); |
0 |
0 |
0 |
|
| 1597 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->getResultSvp); |
0 |
0 |
0 |
|
| 1598 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolverSvp); |
0 |
0 |
0 |
|
| 1599 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Valuep->resolvedActionSvp); |
0 |
0 |
0 |
|
| 1600 |
|
| |
| 1601 |
0 |
▶ | if (! onStackb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! onStackb) { |
0 |
0 |
0 |
|
| 1602 |
0 |
| Safefree(MarpaX_ESLIF_Valuep); |
| 1603 |
|
| } |
| 1604 |
|
| } |
| 1605 |
0 |
| } |
| 1606 |
|
| |
| 1607 |
|
| /*****************************************************************************/ |
| 1608 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerContextFreev(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, short onStackb) |
| 1609 |
|
| /*****************************************************************************/ |
| 1610 |
|
| { |
| 1611 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp != NULL) { |
0 |
0 |
0 |
|
| 1612 |
0 |
| marpaESLIFPerl_freeInternalStackv(aTHX_ MarpaX_ESLIF_Recognizerp->internalStackp); |
| 1613 |
|
| |
| 1614 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp != NULL) { |
0 |
0 |
0 |
|
| 1615 |
0 |
| marpaESLIFRecognizer_freev(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp); |
| 1616 |
|
| } |
| 1617 |
|
| |
| 1618 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->readSvp); |
0 |
0 |
0 |
|
| 1619 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isEofSvp); |
0 |
0 |
0 |
|
| 1620 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp); |
0 |
0 |
0 |
|
| 1621 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->encodingSvp); |
0 |
0 |
0 |
|
| 1622 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->dataSvp); |
0 |
0 |
0 |
|
| 1623 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp); |
0 |
0 |
0 |
|
| 1624 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp); |
0 |
0 |
0 |
|
| 1625 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp); |
0 |
0 |
0 |
|
| 1626 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->isWithTrackSvp); |
0 |
0 |
0 |
|
| 1627 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
0 |
0 |
0 |
|
| 1628 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolverSvp); |
0 |
0 |
0 |
|
| 1629 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(MarpaX_ESLIF_Recognizerp->resolvedActionSvp); |
0 |
0 |
0 |
|
| 1630 |
|
| |
| 1631 |
0 |
▶ | if (! onStackb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! onStackb) { |
0 |
0 |
0 |
|
| 1632 |
0 |
| Safefree(MarpaX_ESLIF_Recognizerp); |
| 1633 |
|
| } |
| 1634 |
|
| } |
| 1635 |
0 |
| } |
| 1636 |
|
| |
| 1637 |
|
| /*****************************************************************************/ |
| 1638 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_freeInternalStackv(pTHX_ genericStack_t *internalStackp) |
| 1639 |
|
| /*****************************************************************************/ |
| 1640 |
|
| { |
| 1641 |
|
| int i; |
| 1642 |
|
| SV *svp; |
| 1643 |
|
| |
| 1644 |
0 |
▶ | if (internalStackp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (internalStackp != NULL) { |
0 |
0 |
0 |
|
| 1645 |
|
| /* It is important to delete references in the reverse order of their creation */ |
| 1646 |
0 |
▶ | while (marpaESLIFPerl_GENERICSTACK_USED(internalStackp) > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (marpaESLIFPerl_GENERICSTACK_USED(internalStackp) > 0) { |
0 |
0 |
0 |
|
| 1647 |
|
| /* Last indice ... */ |
| 1648 |
0 |
| i = marpaESLIFPerl_GENERICSTACK_USED(internalStackp) - 1; |
| 1649 |
|
| /* ... is cleared ... */ |
| 1650 |
0 |
▶ | if (marpaESLIFPerl_GENERICSTACK_IS_PTR(internalStackp, i)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFPerl_GENERICSTACK_IS_PTR(internalStackp, i)) { |
0 |
0 |
0 |
|
| 1651 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_GET_PTR(internalStackp, i); |
| 1652 |
0 |
▶ | MARPAESLIFPERL_FREE_SVP(svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_FREE_SVP(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_FREE_SVP(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_FREE_SVP(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_FREE_SVP(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_FREE_SVP(svp); |
0 |
0 |
0 |
|
| 1653 |
|
| } |
| 1654 |
|
| /* ... and becomes current used size */ |
| 1655 |
0 |
| marpaESLIFPerl_GENERICSTACK_SET_USED(internalStackp, i); |
| 1656 |
|
| } |
| 1657 |
0 |
| marpaESLIFPerl_GENERICSTACK_FREE(internalStackp); |
| 1658 |
|
| } |
| 1659 |
0 |
| } |
| 1660 |
|
| |
| 1661 |
|
| /*****************************************************************************/ |
| 1662 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_grammarContextInitv(pTHX_ SV *Perl_MarpaX_ESLIFp, MarpaX_ESLIF_t *MarpaX_ESLIFp, MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp, MarpaX_ESLIF_constants_t *constantsp) |
| 1663 |
|
| /*****************************************************************************/ |
| 1664 |
|
| { |
| 1665 |
0 |
| MarpaX_ESLIF_Grammarp->Perl_MarpaX_ESLIFp = Perl_MarpaX_ESLIFp; |
| 1666 |
0 |
| MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp = MarpaX_ESLIFp; |
| 1667 |
0 |
| MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp = NULL; |
| 1668 |
0 |
| MarpaX_ESLIF_Grammarp->constantsp = constantsp; |
| 1669 |
0 |
| } |
| 1670 |
|
| |
| 1671 |
|
| /*****************************************************************************/ |
| 1672 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_symbolContextInitv(pTHX_ MarpaX_ESLIF_t *MarpaX_ESLIFp, SV *Perl_MarpaX_ESLIFp, MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp, MarpaX_ESLIF_constants_t *constantsp) |
| 1673 |
|
| /*****************************************************************************/ |
| 1674 |
|
| { |
| 1675 |
|
| static const char *funcs = "marpaESLIFPerl_symbolContextInitv"; |
| 1676 |
|
| genericStack_t *internalStackp; |
| 1677 |
|
| |
| 1678 |
0 |
| internalStackp = marpaESLIFPerl_GENERICSTACK_NEW(); |
| 1679 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
0 |
0 |
0 |
|
| 1680 |
0 |
| int save_errno = errno; |
| 1681 |
0 |
| MARPAESLIFPERL_CROAKF("GENERICSTACK_INIT() failure, %s", strerror(save_errno)); |
| 1682 |
|
| } |
| 1683 |
|
| |
| 1684 |
0 |
| MarpaX_ESLIF_Symbolp->Perl_MarpaX_ESLIFp = Perl_MarpaX_ESLIFp; |
| 1685 |
0 |
| MarpaX_ESLIF_Symbolp->MarpaX_ESLIFp = MarpaX_ESLIFp; |
| 1686 |
0 |
| MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp = NULL; |
| 1687 |
0 |
| MarpaX_ESLIF_Symbolp->constantsp = constantsp; |
| 1688 |
0 |
| MarpaX_ESLIF_Symbolp->internalStackp = internalStackp; |
| 1689 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 1690 |
|
| MarpaX_ESLIF_Symbolp->PerlInterpreterp = aTHX; |
| 1691 |
|
| #endif |
| 1692 |
0 |
| } |
| 1693 |
|
| |
| 1694 |
|
| /*****************************************************************************/ |
| 1695 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_recognizerContextInitv(pTHX_ MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp, SV *Perl_MarpaX_ESLIF_Grammarp, SV *Perl_recognizerInterfacep, MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, SV *Perl_recognizer_origp, MarpaX_ESLIF_constants_t *constantsp, MarpaX_ESLIF_t *MarpaX_ESLIFp) |
| 1696 |
|
| /*****************************************************************************/ |
| 1697 |
|
| { |
| 1698 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerContextInitv"; |
| 1699 |
0 |
| int type = marpaESLIFPerl_getTypei(aTHX_ Perl_recognizerInterfacep); |
| 1700 |
|
| genericStack_t *internalStackp; |
| 1701 |
|
| |
| 1702 |
0 |
▶ | if ((type & OBJECT) != OBJECT) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & OBJECT) != OBJECT) { |
0 |
0 |
0 |
|
| 1703 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object"); |
| 1704 |
|
| } |
| 1705 |
|
| |
| 1706 |
0 |
| internalStackp = marpaESLIFPerl_GENERICSTACK_NEW(); |
| 1707 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
0 |
0 |
0 |
|
| 1708 |
0 |
| int save_errno = errno; |
| 1709 |
0 |
| MARPAESLIFPERL_CROAKF("GENERICSTACK_INIT() failure, %s", strerror(save_errno)); |
| 1710 |
|
| } |
| 1711 |
|
| |
| 1712 |
0 |
| MarpaX_ESLIF_Recognizerp->MarpaX_ESLIF_Grammarp = MarpaX_ESLIF_Grammarp; |
| 1713 |
0 |
| MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp = MarpaX_ESLIFp; |
| 1714 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp = NULL; |
| 1715 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerBackupp = NULL; |
| 1716 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerLastp = NULL; |
| 1717 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep = Perl_recognizerInterfacep; |
| 1718 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_MarpaX_ESLIF_Grammarp = Perl_MarpaX_ESLIF_Grammarp; |
| 1719 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_recognizer_origp = Perl_recognizer_origp; |
| 1720 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_datap = NULL; |
| 1721 |
0 |
| MarpaX_ESLIF_Recognizerp->Perl_encodingp = NULL; |
| 1722 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 1723 |
|
| MarpaX_ESLIF_Recognizerp->PerlInterpreterp = aTHX; |
| 1724 |
|
| #endif |
| 1725 |
0 |
| MarpaX_ESLIF_Recognizerp->internalStackp = internalStackp; |
| 1726 |
0 |
| MarpaX_ESLIF_Recognizerp->constantsp = constantsp; |
| 1727 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "read", &(MarpaX_ESLIF_Recognizerp->readSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "read", &(MarpaX_ESLIF_Recognizerp->readSvp), NULL)) { |
0 |
0 |
0 |
|
| 1728 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"read\""); |
| 1729 |
|
| } |
| 1730 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isEof", &(MarpaX_ESLIF_Recognizerp->isEofSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isEof", &(MarpaX_ESLIF_Recognizerp->isEofSvp), NULL)) { |
0 |
0 |
0 |
|
| 1731 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isEof\""); |
| 1732 |
|
| } |
| 1733 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isCharacterStream", &(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isCharacterStream", &(MarpaX_ESLIF_Recognizerp->isCharacterStreamSvp), NULL)) { |
0 |
0 |
0 |
|
| 1734 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isCharacterStream\""); |
| 1735 |
|
| } |
| 1736 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "encoding", &(MarpaX_ESLIF_Recognizerp->encodingSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "encoding", &(MarpaX_ESLIF_Recognizerp->encodingSvp), NULL)) { |
0 |
0 |
0 |
|
| 1737 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"encoding\""); |
| 1738 |
|
| } |
| 1739 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "data", &(MarpaX_ESLIF_Recognizerp->dataSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "data", &(MarpaX_ESLIF_Recognizerp->dataSvp), NULL)) { |
0 |
0 |
0 |
|
| 1740 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"data\""); |
| 1741 |
|
| } |
| 1742 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithDisableThreshold", &(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithDisableThreshold", &(MarpaX_ESLIF_Recognizerp->isWithDisableThresholdSvp), NULL)) { |
0 |
0 |
0 |
|
| 1743 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isWithDisableThreshold\""); |
| 1744 |
|
| } |
| 1745 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithExhaustion", &(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithExhaustion", &(MarpaX_ESLIF_Recognizerp->isWithExhaustionSvp), NULL)) { |
0 |
0 |
0 |
|
| 1746 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isWithExhaustion\""); |
| 1747 |
|
| } |
| 1748 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithNewline", &(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithNewline", &(MarpaX_ESLIF_Recognizerp->isWithNewlineSvp), NULL)) { |
0 |
0 |
0 |
|
| 1749 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isWithNewline\""); |
| 1750 |
|
| } |
| 1751 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithTrack", &(MarpaX_ESLIF_Recognizerp->isWithTrackSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "isWithTrack", &(MarpaX_ESLIF_Recognizerp->isWithTrackSvp), NULL)) { |
0 |
0 |
0 |
|
| 1752 |
0 |
| MARPAESLIFPERL_CROAK("Recognizer interface must be an object that can do \"isWithTrack\""); |
| 1753 |
|
| } |
| 1754 |
|
| /* It is not illegal to not have the setRecognizer method */ |
| 1755 |
0 |
| marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "setRecognizer", &(MarpaX_ESLIF_Recognizerp->setRecognizerSvp), NULL); |
| 1756 |
|
| /* It is not illegal to not have the resolver method */ |
| 1757 |
0 |
| marpaESLIFPerl_canb(aTHX_ Perl_recognizerInterfacep, "resolver", &(MarpaX_ESLIF_Recognizerp->resolverSvp), NULL); |
| 1758 |
0 |
| MarpaX_ESLIF_Recognizerp->resolvedActionSvp = NULL; |
| 1759 |
0 |
| } |
| 1760 |
|
| |
| 1761 |
|
| /*****************************************************************************/ |
| 1762 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_valueContextInitv(pTHX_ SV *Perl_MarpaX_ESLIF_Grammarp, SV *Perl_valueInterfacep, MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep, MarpaX_ESLIF_constants_t *constantsp, MarpaX_ESLIF_t *MarpaX_ESLIFp) |
| 1763 |
|
| /*****************************************************************************/ |
| 1764 |
|
| { |
| 1765 |
|
| static const char *funcs = "marpaESLIFPerl_valueContextInitv"; |
| 1766 |
|
| genericStack_t *internalStackp; |
| 1767 |
|
| int type; |
| 1768 |
|
| |
| 1769 |
0 |
▶ | if (Perl_valueInterfacep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (Perl_valueInterfacep != NULL) { |
0 |
0 |
0 |
|
| 1770 |
0 |
| type = marpaESLIFPerl_getTypei(aTHX_ Perl_valueInterfacep); |
| 1771 |
0 |
▶ | if ((type & OBJECT) != OBJECT) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & OBJECT) != OBJECT) { |
0 |
0 |
0 |
|
| 1772 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object"); |
| 1773 |
|
| } |
| 1774 |
|
| } |
| 1775 |
|
| |
| 1776 |
0 |
| internalStackp = marpaESLIFPerl_GENERICSTACK_NEW(); |
| 1777 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(internalStackp))) { |
0 |
0 |
0 |
|
| 1778 |
0 |
| MARPAESLIFPERL_CROAKF("GENERICSTACK_INIT() failure, %s", strerror(errno)); |
| 1779 |
|
| } |
| 1780 |
|
| |
| 1781 |
|
| /* All SVs are SvRV's */ |
| 1782 |
|
| |
| 1783 |
0 |
| MarpaX_ESLIF_Valuep->Perl_valueInterfacep = Perl_valueInterfacep; |
| 1784 |
0 |
| MarpaX_ESLIF_Valuep->MarpaX_ESLIFp = MarpaX_ESLIFp; |
| 1785 |
0 |
| MarpaX_ESLIF_Valuep->Perl_MarpaX_ESLIF_Grammarp = Perl_MarpaX_ESLIF_Grammarp; |
| 1786 |
0 |
| MarpaX_ESLIF_Valuep->actions = NULL; |
| 1787 |
0 |
| MarpaX_ESLIF_Valuep->marpaESLIFValuep = NULL; |
| 1788 |
0 |
▶ | MarpaX_ESLIF_Valuep->canSetSymbolNameb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolName", &(MarpaX_ESLIF_Valuep->setSymbolNameSvp), NULL) : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| MarpaX_ESLIF_Valuep->canSetSymbolNameb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolName", &(MarpaX_ESLIF_Valuep->setSymbolNameSvp), NULL) : 0; |
0 |
0 |
0 |
|
| 1789 |
0 |
▶ | MarpaX_ESLIF_Valuep->canSetSymbolNumberb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolNumber", &(MarpaX_ESLIF_Valuep->setSymbolNumberSvp), NULL) : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| MarpaX_ESLIF_Valuep->canSetSymbolNumberb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolNumber", &(MarpaX_ESLIF_Valuep->setSymbolNumberSvp), NULL) : 0; |
0 |
0 |
0 |
|
| 1790 |
0 |
▶ | MarpaX_ESLIF_Valuep->canSetRuleNameb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleName", &(MarpaX_ESLIF_Valuep->setRuleNameSvp), NULL) : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| MarpaX_ESLIF_Valuep->canSetRuleNameb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleName", &(MarpaX_ESLIF_Valuep->setRuleNameSvp), NULL) : 0; |
0 |
0 |
0 |
|
| 1791 |
0 |
▶ | MarpaX_ESLIF_Valuep->canSetRuleNumberb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleNumber", &(MarpaX_ESLIF_Valuep->setRuleNumberSvp), NULL) : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| MarpaX_ESLIF_Valuep->canSetRuleNumberb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleNumber", &(MarpaX_ESLIF_Valuep->setRuleNumberSvp), NULL) : 0; |
0 |
0 |
0 |
|
| 1792 |
0 |
▶ | MarpaX_ESLIF_Valuep->canSetGrammarb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setGrammar", &(MarpaX_ESLIF_Valuep->setGrammarSvp), NULL) : 0; |
Branch: 1 branch
| Branch | True | False | Total |
| MarpaX_ESLIF_Valuep->canSetGrammarb = (Perl_valueInterfacep != NULL) ? marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setGrammar", &(MarpaX_ESLIF_Valuep->setGrammarSvp), NULL) : 0; |
0 |
0 |
0 |
|
| 1793 |
0 |
| MarpaX_ESLIF_Valuep->symbols = NULL; |
| 1794 |
0 |
| MarpaX_ESLIF_Valuep->symboli = -1; |
| 1795 |
0 |
| MarpaX_ESLIF_Valuep->rules = NULL; |
| 1796 |
0 |
| MarpaX_ESLIF_Valuep->rulei = -1; |
| 1797 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 1798 |
|
| MarpaX_ESLIF_Valuep->PerlInterpreterp = aTHX; |
| 1799 |
|
| #endif |
| 1800 |
0 |
| MarpaX_ESLIF_Valuep->internalStackp = internalStackp; |
| 1801 |
0 |
| MarpaX_ESLIF_Valuep->constantsp = constantsp; |
| 1802 |
|
| |
| 1803 |
0 |
▶ | if (Perl_valueInterfacep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (Perl_valueInterfacep != NULL) { |
0 |
0 |
0 |
|
| 1804 |
0 |
| MarpaX_ESLIF_Valuep->canSetSymbolNameb = marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolName", &(MarpaX_ESLIF_Valuep->setSymbolNameSvp), NULL); |
| 1805 |
0 |
| MarpaX_ESLIF_Valuep->canSetSymbolNumberb = marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setSymbolNumber", &(MarpaX_ESLIF_Valuep->setSymbolNumberSvp), NULL); |
| 1806 |
0 |
| MarpaX_ESLIF_Valuep->canSetRuleNameb = marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleName", &(MarpaX_ESLIF_Valuep->setRuleNameSvp), NULL); |
| 1807 |
0 |
| MarpaX_ESLIF_Valuep->canSetRuleNumberb = marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setRuleNumber", &(MarpaX_ESLIF_Valuep->setRuleNumberSvp), NULL); |
| 1808 |
0 |
| MarpaX_ESLIF_Valuep->canSetGrammarb = marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setGrammar", &(MarpaX_ESLIF_Valuep->setGrammarSvp), NULL); |
| 1809 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithHighRankOnly", &(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithHighRankOnly", &(MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp), NULL)) { |
0 |
0 |
0 |
|
| 1810 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"isWithHighRankOnly\""); |
| 1811 |
|
| } |
| 1812 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithOrderByRank", &(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithOrderByRank", &(MarpaX_ESLIF_Valuep->isWithOrderByRankSvp), NULL)) { |
0 |
0 |
0 |
|
| 1813 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"isWithOrderByRank\""); |
| 1814 |
|
| } |
| 1815 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithAmbiguous", &(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithAmbiguous", &(MarpaX_ESLIF_Valuep->isWithAmbiguousSvp), NULL)) { |
0 |
0 |
0 |
|
| 1816 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"isWithAmbiguous\""); |
| 1817 |
|
| } |
| 1818 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithNull", &(MarpaX_ESLIF_Valuep->isWithNullSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "isWithNull", &(MarpaX_ESLIF_Valuep->isWithNullSvp), NULL)) { |
0 |
0 |
0 |
|
| 1819 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"isWithNull\""); |
| 1820 |
|
| } |
| 1821 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "maxParses", &(MarpaX_ESLIF_Valuep->maxParsesSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "maxParses", &(MarpaX_ESLIF_Valuep->maxParsesSvp), NULL)) { |
0 |
0 |
0 |
|
| 1822 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"maxParses\""); |
| 1823 |
|
| } |
| 1824 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setResult", &(MarpaX_ESLIF_Valuep->setResultSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "setResult", &(MarpaX_ESLIF_Valuep->setResultSvp), NULL)) { |
0 |
0 |
0 |
|
| 1825 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"setResult\""); |
| 1826 |
|
| } |
| 1827 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "getResult", &(MarpaX_ESLIF_Valuep->getResultSvp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "getResult", &(MarpaX_ESLIF_Valuep->getResultSvp), NULL)) { |
0 |
0 |
0 |
|
| 1828 |
0 |
| MARPAESLIFPERL_CROAK("Value interface must be an object that can do \"getResult\""); |
| 1829 |
|
| } |
| 1830 |
|
| /* It is not illegal to not have the resolver method */ |
| 1831 |
0 |
| marpaESLIFPerl_canb(aTHX_ Perl_valueInterfacep, "resolver", &(MarpaX_ESLIF_Valuep->resolverSvp), NULL); |
| 1832 |
0 |
| MarpaX_ESLIF_Valuep->resolvedActionSvp = NULL; |
| 1833 |
|
| } else { |
| 1834 |
0 |
| MarpaX_ESLIF_Valuep->canSetSymbolNameb = 0; |
| 1835 |
0 |
| MarpaX_ESLIF_Valuep->canSetSymbolNumberb = 0; |
| 1836 |
0 |
| MarpaX_ESLIF_Valuep->canSetRuleNameb = 0; |
| 1837 |
0 |
| MarpaX_ESLIF_Valuep->canSetRuleNumberb = 0; |
| 1838 |
0 |
| MarpaX_ESLIF_Valuep->canSetGrammarb = 0; |
| 1839 |
0 |
| MarpaX_ESLIF_Valuep->setSymbolNameSvp = NULL; |
| 1840 |
0 |
| MarpaX_ESLIF_Valuep->setSymbolNumberSvp = NULL; |
| 1841 |
0 |
| MarpaX_ESLIF_Valuep->setRuleNameSvp = NULL; |
| 1842 |
0 |
| MarpaX_ESLIF_Valuep->setRuleNumberSvp = NULL; |
| 1843 |
0 |
| MarpaX_ESLIF_Valuep->setGrammarSvp = NULL; |
| 1844 |
0 |
| MarpaX_ESLIF_Valuep->isWithHighRankOnlySvp = NULL; |
| 1845 |
0 |
| MarpaX_ESLIF_Valuep->isWithOrderByRankSvp = NULL; |
| 1846 |
0 |
| MarpaX_ESLIF_Valuep->isWithAmbiguousSvp = NULL; |
| 1847 |
0 |
| MarpaX_ESLIF_Valuep->isWithNullSvp = NULL; |
| 1848 |
0 |
| MarpaX_ESLIF_Valuep->maxParsesSvp = NULL; |
| 1849 |
0 |
| MarpaX_ESLIF_Valuep->setResultSvp = NULL; |
| 1850 |
0 |
| MarpaX_ESLIF_Valuep->getResultSvp = NULL; |
| 1851 |
0 |
| MarpaX_ESLIF_Valuep->resolverSvp = NULL; |
| 1852 |
0 |
| MarpaX_ESLIF_Valuep->resolvedActionSvp = NULL; |
| 1853 |
|
| } |
| 1854 |
0 |
| } |
| 1855 |
|
| |
| 1856 |
|
| /*****************************************************************************/ |
| 1857 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_paramIsGrammarv(pTHX_ SV *sv) |
| 1858 |
|
| /*****************************************************************************/ |
| 1859 |
|
| { |
| 1860 |
|
| static const char *funcs = "marpaESLIFPerl_paramIsGrammarv"; |
| 1861 |
0 |
| int type = marpaESLIFPerl_getTypei(aTHX_ sv); |
| 1862 |
|
| |
| 1863 |
0 |
▶ | if ((type & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 1864 |
0 |
| MARPAESLIFPERL_CROAK("Grammar must be a scalar"); |
| 1865 |
|
| } |
| 1866 |
0 |
| } |
| 1867 |
|
| |
| 1868 |
|
| /*****************************************************************************/ |
| 1869 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_paramIsEncodingv(pTHX_ SV *sv) |
| 1870 |
|
| /*****************************************************************************/ |
| 1871 |
|
| { |
| 1872 |
|
| static const char *funcs = "marpaESLIFPerl_paramIsEncodingv"; |
| 1873 |
0 |
| int type = marpaESLIFPerl_getTypei(aTHX_ sv); |
| 1874 |
|
| |
| 1875 |
0 |
▶ | if ((type & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 1876 |
0 |
| MARPAESLIFPERL_CROAK("Encoding must be a scalar"); |
| 1877 |
|
| } |
| 1878 |
0 |
| } |
| 1879 |
|
| |
| 1880 |
|
| /*****************************************************************************/ |
| 1881 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_paramIsLoggerInterfaceOrUndefb(pTHX_ SV *sv) |
| 1882 |
|
| /*****************************************************************************/ |
| 1883 |
|
| { |
| 1884 |
|
| static const char *funcs = "marpaESLIFPerl_paramIsLoggerInterfaceOrUndefb"; |
| 1885 |
0 |
| int type = marpaESLIFPerl_getTypei(aTHX_ sv); |
| 1886 |
|
| |
| 1887 |
0 |
▶ | if ((type & UNDEF) == UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & UNDEF) == UNDEF) { |
0 |
0 |
0 |
|
| 1888 |
0 |
| return 0; |
| 1889 |
|
| } |
| 1890 |
|
| |
| 1891 |
0 |
▶ | if ((type & OBJECT) != OBJECT) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((type & OBJECT) != OBJECT) { |
0 |
0 |
0 |
|
| 1892 |
0 |
| MARPAESLIFPERL_CROAK("Logger interface must be an object"); |
| 1893 |
|
| } |
| 1894 |
|
| |
| 1895 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "trace", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"trace\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "trace", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"trace\""); |
0 |
0 |
0 |
|
| 1896 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "debug", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"debug\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "debug", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"debug\""); |
0 |
0 |
0 |
|
| 1897 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "info", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"info\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "info", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"info\""); |
0 |
0 |
0 |
|
| 1898 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "notice", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"notice\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "notice", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"notice\""); |
0 |
0 |
0 |
|
| 1899 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "warning", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"warning\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "warning", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"warning\""); |
0 |
0 |
0 |
|
| 1900 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "error", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"error\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "error", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"error\""); |
0 |
0 |
0 |
|
| 1901 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "critical", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"critical\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "critical", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"critical\""); |
0 |
0 |
0 |
|
| 1902 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "alert", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"alert\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "alert", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"alert\""); |
0 |
0 |
0 |
|
| 1903 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ sv, "emergency", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"emergency\""); |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ sv, "emergency", NULL, NULL)) MARPAESLIFPERL_CROAK("Logger interface must be an object that can do \"emergency\""); |
0 |
0 |
0 |
|
| 1904 |
|
| |
| 1905 |
0 |
| return 1; |
| 1906 |
|
| } |
| 1907 |
|
| |
| 1908 |
|
| /*****************************************************************************/ |
| 1909 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_representationDisposev(void *userDatavp, char *inputcp, size_t inputl, char *encodingasciis) |
| 1910 |
|
| /*****************************************************************************/ |
| 1911 |
|
| { |
| 1912 |
|
| static const char *funcs = "marpaESLIFPerl_representationDisposev"; |
| 1913 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1914 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1915 |
|
| |
| 1916 |
0 |
▶ | if (inputcp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (inputcp != NULL) { |
0 |
0 |
0 |
|
| 1917 |
0 |
| Safefree(inputcp); |
| 1918 |
|
| } |
| 1919 |
|
| /* encoding may refer to the constant UTF8s */ |
| 1920 |
0 |
▶ | if ((encodingasciis != NULL) && (encodingasciis != UTF8s)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((encodingasciis != NULL) && (encodingasciis != UTF8s)) { |
0 |
0 |
0 |
| if ((encodingasciis != NULL) && (encodingasciis != UTF8s)) { |
0 |
0 |
0 |
|
| 1921 |
0 |
| Safefree(encodingasciis); |
| 1922 |
|
| } |
| 1923 |
0 |
| } |
| 1924 |
|
| |
| 1925 |
|
| /*****************************************************************************/ |
| 1926 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_representationb(void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, char **inputcpp, size_t *inputlp, char **encodingasciisp, marpaESLIFRepresentationDispose_t *disposeCallbackpp, short *stringbp) |
| 1927 |
|
| /*****************************************************************************/ |
| 1928 |
|
| { |
| 1929 |
|
| static const char *funcs = "marpaESLIFPerl_representationb"; |
| 1930 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 1931 |
|
| marpaESLIF_t *marpaESLIFp; |
| 1932 |
|
| SV *svp; |
| 1933 |
|
| int typei; |
| 1934 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 1935 |
|
| |
| 1936 |
|
| /* We always push a PTR */ |
| 1937 |
0 |
▶ | if (UNLIKELY(marpaESLIFValueResultp->type != MARPAESLIF_VALUE_TYPE_PTR)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFValueResultp->type != MARPAESLIF_VALUE_TYPE_PTR)) { |
0 |
0 |
0 |
|
| 1938 |
0 |
| MARPAESLIFPERL_CROAKF("User-defined value type is not MARPAESLIF_VALUE_TYPE_PTR but %d", marpaESLIFValueResultp->type); |
| 1939 |
|
| } |
| 1940 |
|
| /* Our context is always MARPAESLIFPERL_CONTEXT */ |
| 1941 |
0 |
▶ | if (UNLIKELY(marpaESLIFValueResultp->contextp != MARPAESLIFPERL_CONTEXT)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFValueResultp->contextp != MARPAESLIFPERL_CONTEXT)) { |
0 |
0 |
0 |
|
| 1942 |
0 |
| MARPAESLIFPERL_CROAKF("User-defined value context is not MARPAESLIFPERL_CONTEXT but %p", marpaESLIFValueResultp->contextp); |
| 1943 |
|
| } |
| 1944 |
0 |
| marpaESLIFp = marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(marpaESLIFValue_recognizerp(MarpaX_ESLIF_Valuep->marpaESLIFValuep))); |
| 1945 |
0 |
| svp = (SV *) marpaESLIFValueResultp->u.p.p; |
| 1946 |
0 |
| marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, svp, inputcpp, inputlp, 1 /* encodingInformationb */, NULL /* characterStreambp */, encodingasciisp, NULL /* encodinglp */, 0 /* warnIsFatalb */, 0 /* marpaESLIFStringb */, MarpaX_ESLIF_Valuep->constantsp); |
| 1947 |
|
| |
| 1948 |
|
| /* We overwrite *stringbp only when we are sure that the context is truely a number. This can happen only on */ |
| 1949 |
|
| /* SVs that derive from Math::BigInt or Math::BigFloat, that we explicitly inject as PTR in ESLIF. */ |
| 1950 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ svp); |
| 1951 |
0 |
▶ | if (marpaESLIFPerl_is_Math__BigInt(aTHX_ svp, typei) || marpaESLIFPerl_is_Math__BigFloat(aTHX_ svp, typei)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (marpaESLIFPerl_is_Math__BigInt(aTHX_ svp, typei) || marpaESLIFPerl_is_Math__BigFloat(aTHX_ svp, typei)) { |
0 |
0 |
0 |
| if (marpaESLIFPerl_is_Math__BigInt(aTHX_ svp, typei) || marpaESLIFPerl_is_Math__BigFloat(aTHX_ svp, typei)) { |
0 |
0 |
0 |
|
| 1952 |
0 |
| *stringbp = 0; |
| 1953 |
|
| } |
| 1954 |
|
| |
| 1955 |
0 |
| *disposeCallbackpp = marpaESLIFPerl_representationDisposev; |
| 1956 |
|
| |
| 1957 |
0 |
| return 1; |
| 1958 |
|
| } |
| 1959 |
|
| |
| 1960 |
|
| /*****************************************************************************/ |
| 1961 |
0 |
| PERL_STATIC_INLINE char *marpaESLIFPerl_sv2byte(pTHX_ marpaESLIF_t *marpaESLIFp, SV *svp, char **bytepp, size_t *bytelp, short encodingInformationb, short *characterStreambp, char **encodingsp, size_t *encodinglp, short warnIsFatalb, short marpaESLIFStringb, MarpaX_ESLIF_constants_t *constantsp) |
| 1962 |
|
| /*****************************************************************************/ |
| 1963 |
|
| { |
| 1964 |
|
| static const char *funcs = "marpaESLIFPerl_sv2byte"; |
| 1965 |
0 |
| char *rcp = NULL; |
| 1966 |
0 |
| short okb = 0; |
| 1967 |
|
| char *strings; |
| 1968 |
|
| STRLEN stringl; |
| 1969 |
|
| char *bytep; |
| 1970 |
|
| size_t bytel; |
| 1971 |
|
| short characterStreamb; |
| 1972 |
|
| char *encodings; |
| 1973 |
|
| size_t encodingl; |
| 1974 |
|
| SV *encodingp; |
| 1975 |
|
| SV *valuep; |
| 1976 |
|
| char *tmps; |
| 1977 |
|
| STRLEN tmpl; |
| 1978 |
|
| #ifdef MARPAESLIFPERL_AUTO_ENCODING_DETECT |
| 1979 |
|
| char *guessedencodings; |
| 1980 |
|
| #endif |
| 1981 |
|
| |
| 1982 |
|
| /* svp == NULL should never happen because we always push an SV* out of actions |
| 1983 |
|
| but &PL_sv_undef is of course possible */ |
| 1984 |
0 |
▶ | if (UNLIKELY((svp == NULL) || (svp == &PL_sv_undef))) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (UNLIKELY((svp == NULL) || (svp == &PL_sv_undef))) { |
0 |
0 |
0 |
| if (UNLIKELY((svp == NULL) || (svp == &PL_sv_undef))) { |
0 |
0 |
0 |
|
| 1985 |
0 |
| return NULL; |
| 1986 |
|
| } |
| 1987 |
|
| |
| 1988 |
0 |
▶ | if (marpaESLIFStringb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFStringb) { |
0 |
0 |
0 |
|
| 1989 |
|
| /* Caller guarantees that the svp is a MarpaX::ESLIF::String instance. This is not crosschecked. */ |
| 1990 |
0 |
▶ | if (encodingInformationb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodingInformationb) { |
0 |
0 |
0 |
|
| 1991 |
0 |
| encodingp = marpaESLIFPerl_call_methodp(aTHX_ svp, "encoding", NULL /* avp */, constantsp->MarpaX__ESLIF__String__encoding_svp); |
| 1992 |
|
| } |
| 1993 |
0 |
| valuep = marpaESLIFPerl_call_methodp(aTHX_ svp, "value", NULL /* avp */, constantsp->MarpaX__ESLIF__String__value_svp); |
| 1994 |
|
| |
| 1995 |
|
| /* Duplicate value */ |
| 1996 |
0 |
| tmps = SvPV(valuep, tmpl); |
| 1997 |
0 |
▶ | if ((tmps == NULL) || (tmpl <= 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((tmps == NULL) || (tmpl <= 0)) { |
0 |
0 |
0 |
| if ((tmps == NULL) || (tmpl <= 0)) { |
0 |
0 |
0 |
|
| 1998 |
|
| /* Empty string */ |
| 1999 |
0 |
| Newx(bytep, 1, char); /* Hiden NUL byte */ |
| 2000 |
0 |
| bytep[0] = '\0'; |
| 2001 |
0 |
| bytel = 0; |
| 2002 |
|
| } else { |
| 2003 |
|
| /* Copy */ |
| 2004 |
0 |
| Newx(bytep, (int) (tmpl + 1), char); /* Hiden NUL byte */ |
| 2005 |
0 |
| bytel = (size_t) tmpl; |
| 2006 |
0 |
| Copy(tmps, bytep, tmpl, char); |
| 2007 |
0 |
| bytep[tmpl] = '\0'; |
| 2008 |
|
| } |
| 2009 |
0 |
| rcp = bytep; |
| 2010 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(valuep); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(valuep); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(valuep); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(valuep); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(valuep); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(valuep); |
0 |
0 |
0 |
|
| 2011 |
|
| |
| 2012 |
0 |
▶ | if (encodingInformationb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodingInformationb) { |
0 |
0 |
0 |
|
| 2013 |
|
| /* Check encoding */ |
| 2014 |
0 |
| tmps = SvPV(encodingp, tmpl); |
| 2015 |
0 |
▶ | if ((tmps == NULL) || (tmpl <= 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((tmps == NULL) || (tmpl <= 0)) { |
0 |
0 |
0 |
| if ((tmps == NULL) || (tmpl <= 0)) { |
0 |
0 |
0 |
|
| 2016 |
|
| #ifdef MARPAESLIFPERL_AUTO_ENCODING_DETECT |
| 2017 |
|
| /* Guess */ |
| 2018 |
|
| guessedencodings = marpaESLIF_encodings(marpaESLIFp, bytep, bytel); |
| 2019 |
|
| if (guessedencodings != NULL) { |
| 2020 |
|
| /* fprintf(stderr, "==> Encoding (MarpaX::ESLIF::String guess): %s\n", guessedencodings); */ |
| 2021 |
|
| characterStreamb = 1; |
| 2022 |
|
| encodingl = strlen(guessedencodings); |
| 2023 |
|
| Newx(encodings, (int) (encodingl + 1), char); |
| 2024 |
|
| Copy(guessedencodings, encodings, encodingl, char); |
| 2025 |
|
| encodings[encodingl] = '\0'; |
| 2026 |
|
| marpaESLIFPerl_SYSTEM_FREE(guessedencodings); |
| 2027 |
|
| } else { |
| 2028 |
|
| #else |
| 2029 |
|
| /* fprintf(stderr, "==> Encoding (MarpaX::ESLIF::String) : undef\n"); */ |
| 2030 |
|
| #endif |
| 2031 |
0 |
| characterStreamb = 0; |
| 2032 |
0 |
| encodings = NULL; |
| 2033 |
0 |
| encodingl = 0; |
| 2034 |
|
| #ifdef MARPAESLIFPERL_AUTO_ENCODING_DETECT |
| 2035 |
|
| } |
| 2036 |
|
| #endif |
| 2037 |
|
| } else { |
| 2038 |
|
| /* Copy */ |
| 2039 |
|
| /* fprintf(stderr, "==> Encoding (MarpaX::ESLIF::String) : %s\n", tmps); */ |
| 2040 |
0 |
| characterStreamb = 1; |
| 2041 |
0 |
| Newx(encodings, (int) (tmpl + 1), char); /* ASCII is NUL byte terminated */ |
| 2042 |
0 |
| encodingl = (size_t) tmpl; |
| 2043 |
0 |
| Copy(tmps, encodings, tmpl, char); |
| 2044 |
0 |
| encodings[encodingl] = '\0'; |
| 2045 |
|
| } |
| 2046 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(encodingp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(encodingp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(encodingp); |
0 |
0 |
0 |
|
| 2047 |
|
| } else { |
| 2048 |
0 |
| characterStreamb = 0; |
| 2049 |
0 |
| encodings = NULL; |
| 2050 |
0 |
| encodingl = 0; |
| 2051 |
|
| } |
| 2052 |
|
| |
| 2053 |
0 |
| okb = 1; |
| 2054 |
0 |
| goto ok; |
| 2055 |
|
| } |
| 2056 |
|
| |
| 2057 |
0 |
| strings = SvPV(svp, stringl); |
| 2058 |
|
| |
| 2059 |
0 |
▶ | if (strings != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strings != NULL) { |
0 |
0 |
0 |
|
| 2060 |
0 |
| okb = 1; |
| 2061 |
|
| /* We assume there is no character outside of UTF-8 (utf8 != UTF-8 -;) */ |
| 2062 |
0 |
▶ | if (encodingInformationb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodingInformationb) { |
0 |
0 |
0 |
|
| 2063 |
|
| /* We want to respect the eventual bytes pragma, so we use DO_UTF8 */ |
| 2064 |
0 |
▶ | if (DO_UTF8(svp)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (DO_UTF8(svp)) { |
0 |
0 |
0 |
| if (DO_UTF8(svp)) { |
0 |
0 |
0 |
|
| 2065 |
|
| /* Declared UTF-8 as per perl - trust it and assume perl's utf8 == UTF-8, i.e. no more than 4 bytes for a bytecode -; */ |
| 2066 |
|
| /* fprintf(stderr, "==> Encoding (perl SvUTF8) : %s\n", UTF8s); */ |
| 2067 |
0 |
| characterStreamb = 1; |
| 2068 |
0 |
| encodings = (char *) UTF8s; |
| 2069 |
0 |
| encodingl = UTF8l; |
| 2070 |
|
| } else { |
| 2071 |
|
| #ifdef MARPAESLIFPERL_AUTO_ENCODING_DETECT |
| 2072 |
|
| /* Guess */ |
| 2073 |
|
| guessedencodings = marpaESLIF_encodings(marpaESLIFp, strings, stringl); |
| 2074 |
|
| if (guessedencodings != NULL) { |
| 2075 |
|
| /* In perl, only the utf8 attribute can be attached to a string - else it has to be an object aka MarpaX::ESLIF::String */ |
| 2076 |
|
| if (strcmp(guessedencodings, "UTF-8") == 0) { |
| 2077 |
|
| /* fprintf(stderr, "==> Encoding (perl guess): %s\n", guessedencodings); */ |
| 2078 |
|
| characterStreamb = 1; |
| 2079 |
|
| encodingl= strlen(guessedencodings); |
| 2080 |
|
| Newx(encodings, (int) (encodingl + 1), char); |
| 2081 |
|
| Copy(guessedencodings, encodings, encodingl, char); |
| 2082 |
|
| encodings[encodingl] = '\0'; |
| 2083 |
|
| } else { |
| 2084 |
|
| /* fprintf(stderr, "==> Encoding (perl guess REJECTED): %s\n", guessedencodings); */ |
| 2085 |
|
| characterStreamb = 0; |
| 2086 |
|
| encodings = NULL; |
| 2087 |
|
| encodingl = 0; |
| 2088 |
|
| } |
| 2089 |
|
| marpaESLIFPerl_SYSTEM_FREE(guessedencodings); |
| 2090 |
|
| } else { |
| 2091 |
|
| #endif |
| 2092 |
0 |
| characterStreamb = 0; |
| 2093 |
0 |
| encodings = NULL; |
| 2094 |
0 |
| encodingl = 0; |
| 2095 |
|
| #ifdef MARPAESLIFPERL_AUTO_ENCODING_DETECT |
| 2096 |
|
| } |
| 2097 |
|
| #endif |
| 2098 |
|
| } |
| 2099 |
|
| } else { |
| 2100 |
0 |
| characterStreamb = 0; |
| 2101 |
0 |
| encodings = NULL; |
| 2102 |
0 |
| encodingl = 0; |
| 2103 |
|
| } |
| 2104 |
|
| } else { |
| 2105 |
0 |
▶ | if (warnIsFatalb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (warnIsFatalb) { |
0 |
0 |
0 |
|
| 2106 |
0 |
| MARPAESLIFPERL_CROAKF("SvPV() returned {pointer,length}={%p,%ld}", strings, (unsigned long) stringl); |
| 2107 |
|
| } |
| 2108 |
|
| } |
| 2109 |
|
| |
| 2110 |
0 |
▶ | if (okb) { /* Else nothing will be appended */ |
Branch: 1 branch
| Branch | True | False | Total |
| if (okb) { /* Else nothing will be appended */ |
0 |
0 |
0 |
|
| 2111 |
0 |
| Newx(rcp, (int) (stringl + 1), char); /* Hiden NUL byte */ |
| 2112 |
0 |
▶ | if (stringl > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (stringl > 0) { |
0 |
0 |
0 |
|
| 2113 |
0 |
| bytep = CopyD(strings, rcp, (int) stringl, char); |
| 2114 |
|
| } else { |
| 2115 |
0 |
| bytep = rcp; |
| 2116 |
|
| } |
| 2117 |
0 |
| bytep[stringl] = '\0'; |
| 2118 |
0 |
| bytel = (size_t) stringl; |
| 2119 |
|
| } |
| 2120 |
|
| |
| 2121 |
0 |
| ok: |
| 2122 |
|
| |
| 2123 |
0 |
▶ | if (okb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (okb) { |
0 |
0 |
0 |
|
| 2124 |
0 |
▶ | if (bytepp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (bytepp != NULL) { |
0 |
0 |
0 |
|
| 2125 |
0 |
| *bytepp = bytep; |
| 2126 |
|
| } |
| 2127 |
0 |
▶ | if (bytelp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (bytelp != NULL) { |
0 |
0 |
0 |
|
| 2128 |
0 |
| *bytelp = bytel; |
| 2129 |
|
| } |
| 2130 |
0 |
▶ | if (characterStreambp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (characterStreambp != NULL) { |
0 |
0 |
0 |
|
| 2131 |
0 |
| *characterStreambp = characterStreamb; |
| 2132 |
|
| } |
| 2133 |
0 |
▶ | if (encodingsp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodingsp != NULL) { |
0 |
0 |
0 |
|
| 2134 |
0 |
| *encodingsp = encodings; |
| 2135 |
|
| } |
| 2136 |
0 |
▶ | if (encodinglp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodinglp != NULL) { |
0 |
0 |
0 |
|
| 2137 |
0 |
| *encodinglp = encodingl; |
| 2138 |
|
| } |
| 2139 |
|
| } |
| 2140 |
|
| |
| 2141 |
0 |
| return rcp; |
| 2142 |
|
| } |
| 2143 |
|
| |
| 2144 |
|
| /*****************************************************************************/ |
| 2145 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_importb(pTHX_ marpaESLIFPerl_importContext_t *importContextp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short arraycopyb, short haveUndefb) |
| 2146 |
|
| /*****************************************************************************/ |
| 2147 |
|
| { |
| 2148 |
|
| static const char *funcs = "marpaESLIFPerl_importb"; |
| 2149 |
0 |
| genericStack_t *importStackp = importContextp->stackp; |
| 2150 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = importContextp->constantsp;; |
| 2151 |
|
| AV *avp; |
| 2152 |
|
| HV *hvp; |
| 2153 |
|
| SV *keyp; |
| 2154 |
|
| SV *valuep; |
| 2155 |
|
| SV *svp; |
| 2156 |
|
| SV *stringp; |
| 2157 |
|
| SV *encodingp; |
| 2158 |
|
| AV *listp; |
| 2159 |
|
| #if defined(MARPAESLIFPERL_UTF8_CROSSCHECK) && !defined(is_strict_utf8_string) |
| 2160 |
|
| SV *checkp; |
| 2161 |
|
| #endif |
| 2162 |
|
| size_t i; |
| 2163 |
|
| size_t j; |
| 2164 |
|
| short utf8b; |
| 2165 |
|
| marpaESLIFPerl_stringGeneratorContext_t marpaESLIFPerl_stringGeneratorContext; |
| 2166 |
|
| genericLogger_t *genericLoggerp; |
| 2167 |
|
| IV ivdummy; |
| 2168 |
|
| char *s; |
| 2169 |
|
| |
| 2170 |
|
| /* |
| 2171 |
|
| marpaESLIF Type C type C nb_bits Perl Type |
| 2172 |
|
| |
| 2173 |
|
| MARPAESLIF_VALUE_TYPE_UNDEF newSV(0) |
| 2174 |
|
| MARPAESLIF_VALUE_TYPE_CHAR char CHAR_BIT PV* |
| 2175 |
|
| MARPAESLIF_VALUE_TYPE_SHORT short >= 16 IV or Math::BigInt |
| 2176 |
|
| MARPAESLIF_VALUE_TYPE_INT int >= 16 IV or Math::BigInt |
| 2177 |
|
| MARPAESLIF_VALUE_TYPE_LONG long >= 32 IV or Math::BigInt |
| 2178 |
|
| MARPAESLIF_VALUE_TYPE_FLOAT float depends NV (because NV is at least a double in perl) |
| 2179 |
|
| MARPAESLIF_VALUE_TYPE_DOUBLE double depends NV (because NV is at least a double in perl) |
| 2180 |
|
| MARPAESLIF_VALUE_TYPE_PTR char* SV* or PTR2IV() |
| 2181 |
|
| MARPAESLIF_VALUE_TYPE_ARRAY PV* |
| 2182 |
|
| MARPAESLIF_VALUE_TYPE_BOOL $MarpaX::ESLIF::true or $MarpaX::ESLIF::false |
| 2183 |
|
| MARPAESLIF_VALUE_TYPE_STRING PV* or MarpaX::ESLIF::String instance |
| 2184 |
|
| MARPAESLIF_VALUE_TYPE_ROW AV* |
| 2185 |
|
| MARPAESLIF_VALUE_TYPE_TABLE HV* |
| 2186 |
|
| MARPAESLIF_VALUE_TYPE_LONG_DOUBLE NV* or Math::BigFloat |
| 2187 |
|
| MARPAESLIF_VALUE_TYPE_LONG_LONG long long >= 64 IV or Math::BigInt |
| 2188 |
|
| |
| 2189 |
|
| */ |
| 2190 |
|
| |
| 2191 |
0 |
| switch (marpaESLIFValueResultp->type) { |
| 2192 |
0 |
| case MARPAESLIF_VALUE_TYPE_UNDEF: |
| 2193 |
0 |
| svp = newSV(0); |
| 2194 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2195 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2196 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2197 |
|
| } |
| 2198 |
0 |
| break; |
| 2199 |
0 |
| case MARPAESLIF_VALUE_TYPE_CHAR: |
| 2200 |
0 |
| svp = newSVpvn((const char *) &(marpaESLIFValueResultp->u.c), (STRLEN) 1); |
| 2201 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2202 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2203 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2204 |
|
| } |
| 2205 |
0 |
| break; |
| 2206 |
0 |
| case MARPAESLIF_VALUE_TYPE_SHORT: |
| 2207 |
|
| if (sizeof(ivdummy) >= sizeof(short)) { |
| 2208 |
0 |
| svp = newSViv((IV) marpaESLIFValueResultp->u.b); |
| 2209 |
|
| } else { |
| 2210 |
|
| /* Switch to Math::BigInt - we must first generate a string representation of this short. */ |
| 2211 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2212 |
|
| marpaESLIFPerl_stringGeneratorContext.PerlInterpreterp = importContextp->PerlInterpreterp; |
| 2213 |
|
| #endif |
| 2214 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2215 |
|
| marpaESLIFPerl_stringGeneratorContext.l = 0; |
| 2216 |
|
| marpaESLIFPerl_stringGeneratorContext.okb = 0; |
| 2217 |
|
| marpaESLIFPerl_stringGeneratorContext.allocl = 0; |
| 2218 |
|
| genericLoggerp = GENERICLOGGER_CUSTOM(marpaESLIFPerl_generateStringWithLoggerCallback, (void *) &marpaESLIFPerl_stringGeneratorContext, GENERICLOGGER_LOGLEVEL_TRACE); |
| 2219 |
|
| if (UNLIKELY(genericLoggerp == NULL)) { |
| 2220 |
|
| MARPAESLIFPERL_CROAKF("GENERICLOGGER_CUSTOM failure, %s", strerror(errno)); |
| 2221 |
|
| } |
| 2222 |
|
| GENERICLOGGER_TRACEF(genericLoggerp, "%d", (int) marpaESLIFValueResultp->u.b); /* This will croak by itself if needed */ |
| 2223 |
|
| if (UNLIKELY((marpaESLIFPerl_stringGeneratorContext.s == NULL) || (marpaESLIFPerl_stringGeneratorContext.l <= 1))) { |
| 2224 |
|
| /* This should never happen */ |
| 2225 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2226 |
|
| MARPAESLIFPERL_CROAKF("Internal error when doing string representation of short %d", (int) marpaESLIFValueResultp->u.b); |
| 2227 |
|
| } |
| 2228 |
|
| stringp = newSVpvn((const char *) marpaESLIFPerl_stringGeneratorContext.s, (STRLEN) (marpaESLIFPerl_stringGeneratorContext.l - 1)); |
| 2229 |
|
| free(marpaESLIFPerl_stringGeneratorContext.s); |
| 2230 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2231 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2232 |
|
| |
| 2233 |
|
| /* Representation is in stringp. Call Math::BigInt->new(stringp). */ |
| 2234 |
|
| listp = newAV(); |
| 2235 |
|
| av_push(listp, stringp); /* Ref count of stringp is transfered to av -; */ |
| 2236 |
|
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "new", listp, constantsp->Math__BigInt__new_svp); |
| 2237 |
|
| av_undef(listp); |
| 2238 |
|
| } |
| 2239 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2240 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2241 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2242 |
|
| } |
| 2243 |
0 |
| break; |
| 2244 |
0 |
| case MARPAESLIF_VALUE_TYPE_INT: |
| 2245 |
|
| if (sizeof(ivdummy) >= sizeof(int)) { |
| 2246 |
0 |
| svp = newSViv((IV) marpaESLIFValueResultp->u.i); |
| 2247 |
|
| } else { |
| 2248 |
|
| /* Switch to Math::BigInt - we must first generate a string representation of this int. */ |
| 2249 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2250 |
|
| marpaESLIFPerl_stringGeneratorContext.PerlInterpreterp = importContextp->PerlInterpreterp; |
| 2251 |
|
| #endif |
| 2252 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2253 |
|
| marpaESLIFPerl_stringGeneratorContext.l = 0; |
| 2254 |
|
| marpaESLIFPerl_stringGeneratorContext.okb = 0; |
| 2255 |
|
| marpaESLIFPerl_stringGeneratorContext.allocl = 0; |
| 2256 |
|
| genericLoggerp = GENERICLOGGER_CUSTOM(marpaESLIFPerl_generateStringWithLoggerCallback, (void *) &marpaESLIFPerl_stringGeneratorContext, GENERICLOGGER_LOGLEVEL_TRACE); |
| 2257 |
|
| if (UNLIKELY(genericLoggerp == NULL)) { |
| 2258 |
|
| MARPAESLIFPERL_CROAKF("GENERICLOGGER_CUSTOM failure, %s", strerror(errno)); |
| 2259 |
|
| } |
| 2260 |
|
| GENERICLOGGER_TRACEF(genericLoggerp, "%d", marpaESLIFValueResultp->u.i); /* This will croak by itself if needed */ |
| 2261 |
|
| if (UNLIKELY((marpaESLIFPerl_stringGeneratorContext.s == NULL) || (marpaESLIFPerl_stringGeneratorContext.l <= 1))) { |
| 2262 |
|
| /* This should never happen */ |
| 2263 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2264 |
|
| MARPAESLIFPERL_CROAKF("Internal error when doing string representation of int %d", marpaESLIFValueResultp->u.i); |
| 2265 |
|
| } |
| 2266 |
|
| stringp = newSVpvn((const char *) marpaESLIFPerl_stringGeneratorContext.s, (STRLEN) (marpaESLIFPerl_stringGeneratorContext.l - 1)); |
| 2267 |
|
| free(marpaESLIFPerl_stringGeneratorContext.s); |
| 2268 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2269 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2270 |
|
| |
| 2271 |
|
| /* Representation is in stringp. Call Math::BigInt->new(stringp). */ |
| 2272 |
|
| listp = newAV(); |
| 2273 |
|
| av_push(listp, stringp); /* Ref count of stringp is transfered to av -; */ |
| 2274 |
|
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "new", listp, constantsp->Math__BigInt__new_svp); |
| 2275 |
|
| av_undef(listp); |
| 2276 |
|
| } |
| 2277 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2278 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2279 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2280 |
|
| } |
| 2281 |
0 |
| break; |
| 2282 |
0 |
| case MARPAESLIF_VALUE_TYPE_LONG: |
| 2283 |
|
| if (sizeof(ivdummy) >= sizeof(long)) { |
| 2284 |
0 |
| svp = newSViv((IV) marpaESLIFValueResultp->u.l); |
| 2285 |
|
| } else { |
| 2286 |
|
| /* Switch to Math::BigInt - we must first generate a string representation of this long. */ |
| 2287 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2288 |
|
| marpaESLIFPerl_stringGeneratorContext.PerlInterpreterp = importContextp->PerlInterpreterp; |
| 2289 |
|
| #endif |
| 2290 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2291 |
|
| marpaESLIFPerl_stringGeneratorContext.l = 0; |
| 2292 |
|
| marpaESLIFPerl_stringGeneratorContext.okb = 0; |
| 2293 |
|
| marpaESLIFPerl_stringGeneratorContext.allocl = 0; |
| 2294 |
|
| genericLoggerp = GENERICLOGGER_CUSTOM(marpaESLIFPerl_generateStringWithLoggerCallback, (void *) &marpaESLIFPerl_stringGeneratorContext, GENERICLOGGER_LOGLEVEL_TRACE); |
| 2295 |
|
| if (UNLIKELY(genericLoggerp == NULL)) { |
| 2296 |
|
| MARPAESLIFPERL_CROAKF("GENERICLOGGER_CUSTOM failure, %s", strerror(errno)); |
| 2297 |
|
| } |
| 2298 |
|
| GENERICLOGGER_TRACEF(genericLoggerp, "%ld", marpaESLIFValueResultp->u.l); /* This will croak by itself if needed */ |
| 2299 |
|
| if (UNLIKELY((marpaESLIFPerl_stringGeneratorContext.s == NULL) || (marpaESLIFPerl_stringGeneratorContext.l <= 1))) { |
| 2300 |
|
| /* This should never happen */ |
| 2301 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2302 |
|
| MARPAESLIFPERL_CROAKF("Internal error when doing string representation of long %ld", marpaESLIFValueResultp->u.l); |
| 2303 |
|
| } |
| 2304 |
|
| stringp = newSVpvn((const char *) marpaESLIFPerl_stringGeneratorContext.s, (STRLEN) (marpaESLIFPerl_stringGeneratorContext.l - 1)); |
| 2305 |
|
| free(marpaESLIFPerl_stringGeneratorContext.s); |
| 2306 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2307 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2308 |
|
| |
| 2309 |
|
| /* Representation is in stringp. Call Math::BigInt->new(stringp). */ |
| 2310 |
|
| listp = newAV(); |
| 2311 |
|
| av_push(listp, stringp); /* Ref count of stringp is transfered to av -; */ |
| 2312 |
|
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "new", listp, constantsp->Math__BigInt__new_svp); |
| 2313 |
|
| av_undef(listp); |
| 2314 |
|
| } |
| 2315 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2316 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2317 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2318 |
|
| } |
| 2319 |
0 |
| break; |
| 2320 |
0 |
| case MARPAESLIF_VALUE_TYPE_FLOAT: |
| 2321 |
|
| /* NVTYPE is at least double */ |
| 2322 |
0 |
| svp = newSVnv((NVTYPE) marpaESLIFValueResultp->u.f); |
| 2323 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2324 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2325 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2326 |
|
| } |
| 2327 |
0 |
| break; |
| 2328 |
0 |
| case MARPAESLIF_VALUE_TYPE_DOUBLE: |
| 2329 |
|
| /* NVTYPE is at least double */ |
| 2330 |
0 |
| svp = newSVnv((NVTYPE) marpaESLIFValueResultp->u.d); |
| 2331 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2332 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2333 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2334 |
|
| } |
| 2335 |
0 |
| break; |
| 2336 |
0 |
| case MARPAESLIF_VALUE_TYPE_PTR: |
| 2337 |
0 |
▶ | if (marpaESLIFValueResultp->contextp == MARPAESLIFPERL_CONTEXT) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->contextp == MARPAESLIFPERL_CONTEXT) { |
0 |
0 |
0 |
|
| 2338 |
|
| /* This is an SV that we pushed */ |
| 2339 |
0 |
| svp = (SV *) marpaESLIFValueResultp->u.p.p; |
| 2340 |
|
| /* Increase ref count */ |
| 2341 |
0 |
▶ | MARPAESLIFPERL_REFCNT_INC(svp); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
|
| 2342 |
|
| } else { |
| 2343 |
|
| /* This is a pointer coming from another source */ |
| 2344 |
0 |
| svp = newSViv(PTR2IV(marpaESLIFValueResultp->u.p.p)); |
| 2345 |
|
| } |
| 2346 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2347 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2348 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2349 |
|
| } |
| 2350 |
0 |
| break; |
| 2351 |
0 |
| case MARPAESLIF_VALUE_TYPE_ARRAY: |
| 2352 |
0 |
▶ | if ((marpaESLIFValueResultp->u.a.p != NULL) && (marpaESLIFValueResultp->u.a.sizel > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((marpaESLIFValueResultp->u.a.p != NULL) && (marpaESLIFValueResultp->u.a.sizel > 0)) { |
0 |
0 |
0 |
| if ((marpaESLIFValueResultp->u.a.p != NULL) && (marpaESLIFValueResultp->u.a.sizel > 0)) { |
0 |
0 |
0 |
|
| 2353 |
0 |
| svp = marpaESLIFPerl_arraycopyp(aTHX_ (char *) marpaESLIFValueResultp->u.a.p, (STRLEN) marpaESLIFValueResultp->u.a.sizel, arraycopyb); |
| 2354 |
|
| } else { |
| 2355 |
|
| /* Empty string */ |
| 2356 |
0 |
| svp = newSVpv("", 0); |
| 2357 |
|
| } |
| 2358 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2359 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2360 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2361 |
|
| } |
| 2362 |
0 |
| break; |
| 2363 |
0 |
| case MARPAESLIF_VALUE_TYPE_BOOL: |
| 2364 |
0 |
▶ | svp = (marpaESLIFValueResultp->u.y == MARPAESLIFVALUERESULTBOOL_FALSE) ? marpaESLIFPerl_false(aTHX_ constantsp) : marpaESLIFPerl_true(aTHX_ constantsp); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = (marpaESLIFValueResultp->u.y == MARPAESLIFVALUERESULTBOOL_FALSE) ? marpaESLIFPerl_false(aTHX_ constantsp) : marpaESLIFPerl_true(aTHX_ constantsp); |
0 |
0 |
0 |
|
| 2365 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2366 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2367 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2368 |
|
| } |
| 2369 |
0 |
| break; |
| 2370 |
0 |
| case MARPAESLIF_VALUE_TYPE_STRING: |
| 2371 |
0 |
▶ | if ((marpaESLIFValueResultp->u.s.p != NULL) && (marpaESLIFValueResultp->u.s.sizel > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((marpaESLIFValueResultp->u.s.p != NULL) && (marpaESLIFValueResultp->u.s.sizel > 0)) { |
0 |
0 |
0 |
| if ((marpaESLIFValueResultp->u.s.p != NULL) && (marpaESLIFValueResultp->u.s.sizel > 0)) { |
0 |
0 |
0 |
|
| 2372 |
0 |
| stringp = marpaESLIFPerl_arraycopyp(aTHX_ (char *) marpaESLIFValueResultp->u.s.p, (STRLEN) marpaESLIFValueResultp->u.s.sizel, arraycopyb); |
| 2373 |
|
| } else { |
| 2374 |
|
| /* Empty string */ |
| 2375 |
0 |
| stringp = newSVpv("", 0); |
| 2376 |
|
| } |
| 2377 |
0 |
| utf8b = 0; |
| 2378 |
0 |
▶ | if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
Branch: 12 branches
| Branch | True | False | Total |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
| if (MARPAESLIFPERL_ENCODING_IS_UTF8(marpaESLIFValueResultp->u.s.encodingasciis)) { |
0 |
0 |
0 |
|
| 2379 |
|
| #ifdef MARPAESLIFPERL_UTF8_CROSSCHECK |
| 2380 |
|
| /* Cross-check it is a strict UTF-8 string */ |
| 2381 |
|
| #ifdef is_strict_utf8_string |
| 2382 |
|
| /* Since perl-5.26 */ |
| 2383 |
|
| if (is_strict_utf8_string((const U8 *) marpaESLIFValueResultp->u.s.p, (STRLEN) marpaESLIFValueResultp->u.s.sizel)) { |
| 2384 |
|
| svp = stringp; |
| 2385 |
|
| SvUTF8_on(svp); |
| 2386 |
|
| utf8b = 1; |
| 2387 |
|
| } else { |
| 2388 |
|
| warn("is_strict_utf8_string() failure on a string claimed to be in UTF encoding\n"); |
| 2389 |
|
| } |
| 2390 |
|
| #else |
| 2391 |
|
| /* Use Encode::decode("UTF-8", octets, CHECK) - Note that Encode module is always loaded, c.f. MarpaX::ESLIF::String */ |
| 2392 |
|
| listp = newAV(); |
| 2393 |
|
| av_push(listp, newSVsv(constantsp->MarpaX__ESLIF__UTF_8_svp)); |
| 2394 |
|
| av_push(listp, newSVsv(stringp)); |
| 2395 |
|
| av_push(listp, newSViv(MARPAESLIFPERL_ENCODE_FB_CROAK)); |
| 2396 |
|
| /* Call Encode::decode static method - we allow it to fail. */ |
| 2397 |
|
| checkp = marpaESLIFPerl_call_actionp(aTHX_ NULL /* interfacep */, "Encode::decode", listp, NULL /* MarpaX_ESLIF_Valuep */, 1 /* evalb */, 0 /* evalSilentb */, constantsp->Encode__decode_svp); |
| 2398 |
|
| /* The object also has an utf8 flag */ |
| 2399 |
|
| av_undef(listp); |
| 2400 |
|
| /* If we are here this did not croak -; */ |
| 2401 |
|
| if (SvOK(checkp) && (! SvROK(checkp))) { |
| 2402 |
|
| /* It returned a defined scalar, so this is ok */ |
| 2403 |
|
| svp = stringp; |
| 2404 |
|
| SvUTF8_on(svp); |
| 2405 |
|
| utf8b = 1; |
| 2406 |
|
| } |
| 2407 |
|
| MARPAESLIFPERL_REFCNT_DEC(checkp); |
| 2408 |
|
| #endif /* is_strict_utf8_string */ |
| 2409 |
|
| #else |
| 2410 |
|
| /* We trust the encoding */ |
| 2411 |
0 |
| svp = stringp; |
| 2412 |
0 |
| SvUTF8_on(svp); |
| 2413 |
0 |
| utf8b = 1; |
| 2414 |
|
| /* fprintf(stderr, "SvUTF8_on(\"%s\")\n", marpaESLIFValueResultp->u.s.p); */ |
| 2415 |
|
| #endif |
| 2416 |
|
| } |
| 2417 |
0 |
▶ | if (! utf8b) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! utf8b) { |
0 |
0 |
0 |
|
| 2418 |
|
| /* fprintf(stderr, "MarpaX::ESLIF::String->new(\"%s\", \"%s\")\n", marpaESLIFValueResultp->u.s.p, marpaESLIFValueResultp->u.s.encodingasciis); */ |
| 2419 |
|
| /* This will be a MarpaX::ESLIF::String */ |
| 2420 |
0 |
| encodingp = newSVpv(marpaESLIFValueResultp->u.s.encodingasciis, 0); |
| 2421 |
0 |
| listp = newAV(); |
| 2422 |
0 |
| av_push(listp, stringp); |
| 2423 |
0 |
| av_push(listp, encodingp); |
| 2424 |
|
| /* Gets the object and create a reference to it */ |
| 2425 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "new", listp, constantsp->MarpaX__ESLIF__String__new_svp); |
| 2426 |
|
| /* The object also has an utf8 flag */ |
| 2427 |
0 |
| av_undef(listp); |
| 2428 |
|
| } |
| 2429 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2430 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2431 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2432 |
|
| } |
| 2433 |
0 |
| break; |
| 2434 |
0 |
| case MARPAESLIF_VALUE_TYPE_ROW: |
| 2435 |
|
| /* We received elements in order: first, second, etc..., we pushed that in internalStack, so pop will say last, beforelast, etc..., second, first */ |
| 2436 |
0 |
| avp = newAV(); |
| 2437 |
0 |
▶ | if (marpaESLIFValueResultp->u.r.sizel > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.r.sizel > 0) { |
0 |
0 |
0 |
|
| 2438 |
0 |
| j = marpaESLIFValueResultp->u.r.sizel - 1; |
| 2439 |
|
| #ifdef av_extend |
| 2440 |
|
| /* Size argument is the last indice */ |
| 2441 |
0 |
| av_extend(avp, (SSize_t) j); |
| 2442 |
|
| #endif |
| 2443 |
0 |
▶ | for (i = 0; i < marpaESLIFValueResultp->u.r.sizel; i++, j--) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < marpaESLIFValueResultp->u.r.sizel; i++, j--) { |
0 |
0 |
0 |
|
| 2444 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(importStackp); |
| 2445 |
|
| /* No need to MARPAESLIFPERL_REFCNT_INC(svp) because we always increase any SV that it is internalStack */ |
| 2446 |
|
| /* MARPAESLIFPERL_REFCNT_INC(svp); */ |
| 2447 |
0 |
▶ | if (UNLIKELY(av_store(avp, (SSize_t) j, (svp == &PL_sv_undef) ? newSV(0) : svp) == NULL)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (UNLIKELY(av_store(avp, (SSize_t) j, (svp == &PL_sv_undef) ? newSV(0) : svp) == NULL)) { |
0 |
0 |
0 |
| if (UNLIKELY(av_store(avp, (SSize_t) j, (svp == &PL_sv_undef) ? newSV(0) : svp) == NULL)) { |
0 |
0 |
0 |
|
| 2448 |
|
| /* MARPAESLIFPERL_REFCNT_DEC(svp); */ |
| 2449 |
0 |
| MARPAESLIFPERL_CROAKF("av_store failure at indice %ld", (unsigned long) i); |
| 2450 |
|
| } |
| 2451 |
|
| } |
| 2452 |
|
| } |
| 2453 |
0 |
| svp = newRV((SV *)avp); |
| 2454 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2455 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2456 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2457 |
|
| } |
| 2458 |
0 |
| break; |
| 2459 |
0 |
| case MARPAESLIF_VALUE_TYPE_TABLE: |
| 2460 |
|
| /* We received elements in order: firstkey, firstvalue, secondkey, secondvalue, etc..., we pushed that in internalStack, so pop will say lastvalue, lastkey, ..., firstvalue, firstkey */ |
| 2461 |
0 |
| hvp = newHV(); |
| 2462 |
|
| #ifdef hv_ksplit |
| 2463 |
|
| /* Size argument seems to be the last indice + 1, i.e. the number of elements */ |
| 2464 |
0 |
| hv_ksplit(hvp, (IV) marpaESLIFValueResultp->u.t.sizel); |
| 2465 |
|
| #endif |
| 2466 |
0 |
▶ | for (i = 0; i < marpaESLIFValueResultp->u.t.sizel; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < marpaESLIFValueResultp->u.t.sizel; i++) { |
0 |
0 |
0 |
|
| 2467 |
|
| /* Note that importStackp contains only new SV's, or &PL_sv_undef, &PL_sv_yes, &PL_sv_no */ |
| 2468 |
|
| /* This is why it is not necessary to SvREFCNT_inc/SvREFCNT_dec on valuep: all we do is create an SV and move it in the hash */ |
| 2469 |
0 |
| valuep = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(importStackp); |
| 2470 |
0 |
| keyp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(importStackp); |
| 2471 |
0 |
▶ | if (UNLIKELY(hv_store_ent(hvp, keyp, (valuep == &PL_sv_undef) ? newSV(0) : valuep, 0) == NULL)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (UNLIKELY(hv_store_ent(hvp, keyp, (valuep == &PL_sv_undef) ? newSV(0) : valuep, 0) == NULL)) { |
0 |
0 |
0 |
| if (UNLIKELY(hv_store_ent(hvp, keyp, (valuep == &PL_sv_undef) ? newSV(0) : valuep, 0) == NULL)) { |
0 |
0 |
0 |
|
| 2472 |
|
| /* We never play with tied hashes, so hv_store_ent() must return a non-NULL value */ |
| 2473 |
0 |
| MARPAESLIFPERL_CROAK("hv_store_ent failure"); |
| 2474 |
|
| } |
| 2475 |
|
| } |
| 2476 |
0 |
| svp = newRV((SV *)hvp); |
| 2477 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2478 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2479 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2480 |
|
| } |
| 2481 |
0 |
| break; |
| 2482 |
0 |
| case MARPAESLIF_VALUE_TYPE_LONG_DOUBLE: |
| 2483 |
|
| /* Note that typecast ld to f is always ok for +/-Infinity or NaN, because they remains +/-Infinity or NaN */ |
| 2484 |
0 |
▶ | if ((! constantsp->nvtype_is_long_doubleb) && |
Branch: 1 branch
| Branch | True | False | Total |
| if ((! constantsp->nvtype_is_long_doubleb) && |
0 |
0 |
0 |
|
| 2485 |
0 |
| (! constantsp->nvtype_is___float128) && |
| 2486 |
0 |
▶ | (! marpaESLIFValueResult_isinfb(importContextp->marpaESLIFp, marpaESLIFValueResultp)) && |
Branch: 1 branch
| Branch | True | False | Total |
| (! marpaESLIFValueResult_isinfb(importContextp->marpaESLIFp, marpaESLIFValueResultp)) && |
0 |
0 |
0 |
|
| 2487 |
0 |
| (! marpaESLIFValueResult_isnanb(importContextp->marpaESLIFp, marpaESLIFValueResultp))) { |
| 2488 |
|
| /* Switch to Math::BigFloat - we must first generate a string representation of this long double. */ |
| 2489 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2490 |
|
| marpaESLIFPerl_stringGeneratorContext.PerlInterpreterp = importContextp->PerlInterpreterp; |
| 2491 |
|
| #endif |
| 2492 |
0 |
| s = marpaESLIF_ldtos(importContextp->marpaESLIFp, marpaESLIFValueResultp->u.ld); |
| 2493 |
0 |
▶ | if (UNLIKELY(s == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(s == NULL)) { |
0 |
0 |
0 |
|
| 2494 |
0 |
| MARPAESLIFPERL_CROAKF("Failed to get string representation of long double %Lf", marpaESLIFValueResultp->u.ld); |
| 2495 |
|
| } |
| 2496 |
0 |
| stringp = newSVpv((const char *) s, 0); |
| 2497 |
0 |
| free(s); |
| 2498 |
0 |
| s = NULL; |
| 2499 |
|
| |
| 2500 |
|
| /* Representation is in stringp. Call Math::BigFloat->new(stringp). */ |
| 2501 |
0 |
| listp = newAV(); |
| 2502 |
0 |
| av_push(listp, stringp); /* Ref count of stringp is transfered to av -; */ |
| 2503 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigFloat_svp, "new", listp, constantsp->Math__BigFloat__new_svp); |
| 2504 |
0 |
| av_undef(listp); |
| 2505 |
|
| |
| 2506 |
|
| } else { |
| 2507 |
|
| /* NVTYPE here is long double or __float128 */ |
| 2508 |
0 |
| svp = newSVnv((NVTYPE) marpaESLIFValueResultp->u.ld); |
| 2509 |
|
| } |
| 2510 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2511 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2512 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2513 |
|
| } |
| 2514 |
0 |
| break; |
| 2515 |
|
| #ifdef MARPAESLIF_HAVE_LONG_LONG |
| 2516 |
0 |
| case MARPAESLIF_VALUE_TYPE_LONG_LONG: |
| 2517 |
|
| if (sizeof(ivdummy) >= sizeof(MARPAESLIF_LONG_LONG)) { |
| 2518 |
0 |
| svp = newSViv((IV) marpaESLIFValueResultp->u.ll); |
| 2519 |
|
| } else { |
| 2520 |
|
| /* Switch to Math::BigInt - we must first generate a string representation of this long. */ |
| 2521 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2522 |
|
| marpaESLIFPerl_stringGeneratorContext.PerlInterpreterp = importContextp->PerlInterpreterp; |
| 2523 |
|
| #endif |
| 2524 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2525 |
|
| marpaESLIFPerl_stringGeneratorContext.l = 0; |
| 2526 |
|
| marpaESLIFPerl_stringGeneratorContext.okb = 0; |
| 2527 |
|
| marpaESLIFPerl_stringGeneratorContext.allocl = 0; |
| 2528 |
|
| genericLoggerp = GENERICLOGGER_CUSTOM(marpaESLIFPerl_generateStringWithLoggerCallback, (void *) &marpaESLIFPerl_stringGeneratorContext, GENERICLOGGER_LOGLEVEL_TRACE); |
| 2529 |
|
| if (UNLIKELY(genericLoggerp == NULL)) { |
| 2530 |
|
| MARPAESLIFPERL_CROAKF("GENERICLOGGER_CUSTOM failure, %s", strerror(errno)); |
| 2531 |
|
| } |
| 2532 |
|
| GENERICLOGGER_TRACEF(genericLoggerp, MARPAESLIF_LONG_LONG_FMT, marpaESLIFValueResultp->u.ll); /* This will croak by itself if needed */ |
| 2533 |
|
| if (UNLIKELY((marpaESLIFPerl_stringGeneratorContext.s == NULL) || (marpaESLIFPerl_stringGeneratorContext.l <= 1))) { |
| 2534 |
|
| /* This should never happen */ |
| 2535 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2536 |
|
| MARPAESLIFPERL_CROAKF("Internal error when doing string representation of long %lld", marpaESLIFValueResultp->u.ll); |
| 2537 |
|
| } |
| 2538 |
|
| stringp = newSVpvn((const char *) marpaESLIFPerl_stringGeneratorContext.s, (STRLEN) (marpaESLIFPerl_stringGeneratorContext.l - 1)); |
| 2539 |
|
| free(marpaESLIFPerl_stringGeneratorContext.s); |
| 2540 |
|
| marpaESLIFPerl_stringGeneratorContext.s = NULL; |
| 2541 |
|
| GENERICLOGGER_FREE(genericLoggerp); |
| 2542 |
|
| |
| 2543 |
|
| /* Representation is in stringp. Call Math::BigInt->new(stringp). */ |
| 2544 |
|
| listp = newAV(); |
| 2545 |
|
| av_push(listp, stringp); /* Ref count of stringp is transfered to av -; */ |
| 2546 |
|
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "new", listp, constantsp->Math__BigInt__new_svp); |
| 2547 |
|
| av_undef(listp); |
| 2548 |
|
| } |
| 2549 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(importStackp, svp); |
| 2550 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(importStackp))) { |
0 |
0 |
0 |
|
| 2551 |
0 |
| MARPAESLIFPERL_CROAKF("importStackp push failure, %s", strerror(errno)); |
| 2552 |
|
| } |
| 2553 |
0 |
| break; |
| 2554 |
|
| #endif /* MARPAESLIF_HAVE_LONG_LONG */ |
| 2555 |
0 |
| default: |
| 2556 |
0 |
| break; |
| 2557 |
|
| } |
| 2558 |
|
| |
| 2559 |
0 |
| return 1; |
| 2560 |
|
| } |
| 2561 |
|
| |
| 2562 |
|
| /*****************************************************************************/ |
| 2563 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_valueImportb(marpaESLIFValue_t *marpaESLIFValuep, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb) |
| 2564 |
|
| /*****************************************************************************/ |
| 2565 |
|
| { |
| 2566 |
|
| static const char *funcs = "marpaESLIFPerl_valueImportb"; |
| 2567 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = (MarpaX_ESLIF_Value_t *) userDatavp; |
| 2568 |
|
| marpaESLIFPerl_importContext_t importContext; |
| 2569 |
|
| dTHXa(MarpaX_ESLIF_Valuep->PerlInterpreterp); |
| 2570 |
|
| |
| 2571 |
0 |
| importContext.marpaESLIFp = marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(marpaESLIFValue_recognizerp(MarpaX_ESLIF_Valuep->marpaESLIFValuep))); |
| 2572 |
0 |
| importContext.stackp = MarpaX_ESLIF_Valuep->internalStackp; |
| 2573 |
0 |
| importContext.constantsp = MarpaX_ESLIF_Valuep->constantsp; |
| 2574 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2575 |
|
| importContext.PerlInterpreterp = MarpaX_ESLIF_Valuep->PerlInterpreterp; |
| 2576 |
|
| #endif |
| 2577 |
|
| |
| 2578 |
0 |
| return marpaESLIFPerl_importb(aTHX_ &importContext, marpaESLIFValueResultp, 1 /* arraycopyb */, haveUndefb); |
| 2579 |
|
| } |
| 2580 |
|
| |
| 2581 |
|
| /*****************************************************************************/ |
| 2582 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_recognizerImportb(marpaESLIFRecognizer_t *marpaESLIFRecognizerp, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb) |
| 2583 |
|
| /*****************************************************************************/ |
| 2584 |
|
| { |
| 2585 |
|
| static const char *funcs = "marpaESLIFPerl_recognizerImportb"; |
| 2586 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 2587 |
|
| marpaESLIFPerl_importContext_t importContext; |
| 2588 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 2589 |
|
| |
| 2590 |
0 |
| importContext.marpaESLIFp = marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp)); |
| 2591 |
0 |
| importContext.stackp = MarpaX_ESLIF_Recognizerp->internalStackp; |
| 2592 |
0 |
| importContext.constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 2593 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2594 |
|
| importContext.PerlInterpreterp = MarpaX_ESLIF_Recognizerp->PerlInterpreterp; |
| 2595 |
|
| #endif |
| 2596 |
|
| |
| 2597 |
0 |
| return marpaESLIFPerl_importb(aTHX_ &importContext, marpaESLIFValueResultp, 0 /* arraycopyb */, haveUndefb); |
| 2598 |
|
| } |
| 2599 |
|
| |
| 2600 |
|
| /*****************************************************************************/ |
| 2601 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_symbolImportb(marpaESLIFSymbol_t *marpaESLIFSymbolp, void *userDatavp, marpaESLIFValueResult_t *marpaESLIFValueResultp, short haveUndefb) |
| 2602 |
|
| /*****************************************************************************/ |
| 2603 |
|
| { |
| 2604 |
|
| static const char *funcs = "marpaESLIFPerl_symbolImportb"; |
| 2605 |
0 |
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp = (MarpaX_ESLIF_Symbol_t *) userDatavp; |
| 2606 |
|
| marpaESLIFPerl_importContext_t importContext; |
| 2607 |
|
| dTHXa(MarpaX_ESLIF_Symbolp->PerlInterpreterp); |
| 2608 |
|
| |
| 2609 |
0 |
| importContext.marpaESLIFp = marpaESLIFSymbol_eslifp(MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp); |
| 2610 |
0 |
| importContext.stackp = MarpaX_ESLIF_Symbolp->internalStackp; |
| 2611 |
0 |
| importContext.constantsp = MarpaX_ESLIF_Symbolp->constantsp; |
| 2612 |
|
| #ifdef PERL_IMPLICIT_CONTEXT |
| 2613 |
|
| importContext.PerlInterpreterp = MarpaX_ESLIF_Symbolp->PerlInterpreterp; |
| 2614 |
|
| #endif |
| 2615 |
|
| |
| 2616 |
0 |
| return marpaESLIFPerl_importb(aTHX_ &importContext, marpaESLIFValueResultp, 1 /* arraycopyb */, haveUndefb); |
| 2617 |
|
| } |
| 2618 |
|
| |
| 2619 |
|
| /*****************************************************************************/ |
| 2620 |
|
| PERL_STATIC_INLINE void marpaESLIFPerl_generateStringWithLoggerCallback(void *userDatavp, genericLoggerLevel_t logLeveli, const char *msgs) |
| 2621 |
|
| /*****************************************************************************/ |
| 2622 |
|
| { |
| 2623 |
|
| marpaESLIFPerl_appendOpaqueDataToStringGenerator((marpaESLIFPerl_stringGeneratorContext_t *) userDatavp, (char *) msgs, strlen(msgs)); |
| 2624 |
|
| } |
| 2625 |
|
| |
| 2626 |
|
| /*****************************************************************************/ |
| 2627 |
|
| PERL_STATIC_INLINE short marpaESLIFPerl_appendOpaqueDataToStringGenerator(marpaESLIFPerl_stringGeneratorContext_t *marpaESLIFPerl_stringGeneratorContextp, char *p, size_t sizel) |
| 2628 |
|
| /*****************************************************************************/ |
| 2629 |
|
| { |
| 2630 |
|
| static const char *funcs = "marpaESLIFPerl_appendOpaqueDataToStringGenerator"; |
| 2631 |
|
| char *tmpp; |
| 2632 |
|
| short rcb; |
| 2633 |
|
| size_t allocl; |
| 2634 |
|
| size_t wantedl; |
| 2635 |
|
| dTHXa(marpaESLIFPerl_stringGeneratorContextp->PerlInterpreterp); |
| 2636 |
|
| |
| 2637 |
|
| /* Note: caller must guarantee that marpaESLIFPerl_stringGeneratorContextp->p != NULL and l > 0 */ |
| 2638 |
|
| |
| 2639 |
|
| if (marpaESLIFPerl_stringGeneratorContextp->s == NULL) { |
| 2640 |
|
| /* Get an allocl that is a multiple of 1024, taking into account the hiden NUL byte */ |
| 2641 |
|
| /* 1023 -> 1024 */ |
| 2642 |
|
| /* 1024 -> 2048 */ |
| 2643 |
|
| /* 2047 -> 2048 */ |
| 2644 |
|
| /* 2048 -> 3072 */ |
| 2645 |
|
| /* ... */ |
| 2646 |
|
| /* i.e. this is the upper multiple of 1024 and have space for the NUL byte */ |
| 2647 |
|
| allocl = MARPAESLIFPERL_CHUNKED_SIZE_UPPER(sizel, 1024); |
| 2648 |
|
| /* Check for turn-around, should never happen */ |
| 2649 |
|
| if (UNLIKELY(allocl < sizel)) { |
| 2650 |
|
| MARPAESLIFPERL_CROAK("size_t turnaround detected"); |
| 2651 |
|
| goto err; |
| 2652 |
|
| } |
| 2653 |
|
| marpaESLIFPerl_stringGeneratorContextp->s = malloc(allocl); |
| 2654 |
|
| if (UNLIKELY(marpaESLIFPerl_stringGeneratorContextp->s == NULL)) { |
| 2655 |
|
| MARPAESLIFPERL_CROAKF("malloc failure, %s", strerror(errno)); |
| 2656 |
|
| goto err; |
| 2657 |
|
| } |
| 2658 |
|
| memcpy(marpaESLIFPerl_stringGeneratorContextp->s, p, sizel); |
| 2659 |
|
| marpaESLIFPerl_stringGeneratorContextp->l = sizel + 1; /* NUL byte is set at exit of the routine */ |
| 2660 |
|
| marpaESLIFPerl_stringGeneratorContextp->allocl = allocl; |
| 2661 |
|
| marpaESLIFPerl_stringGeneratorContextp->okb = 1; |
| 2662 |
|
| } else if (LIKELY(marpaESLIFPerl_stringGeneratorContextp->okb)) { |
| 2663 |
|
| wantedl = marpaESLIFPerl_stringGeneratorContextp->l + sizel; /* +1 for the NUL is already accounted in marpaESLIFPerl_stringGeneratorContextp->l */ |
| 2664 |
|
| allocl = MARPAESLIFPERL_CHUNKED_SIZE_UPPER(wantedl, 1024); |
| 2665 |
|
| /* Check for turn-around, should never happen */ |
| 2666 |
|
| if (UNLIKELY(allocl < wantedl)) { |
| 2667 |
|
| MARPAESLIFPERL_CROAK("size_t turnaround detected"); |
| 2668 |
|
| goto err; |
| 2669 |
|
| } |
| 2670 |
|
| if (allocl > marpaESLIFPerl_stringGeneratorContextp->allocl) { |
| 2671 |
|
| tmpp = realloc(marpaESLIFPerl_stringGeneratorContextp->s, allocl); /* The +1 for the NULL byte is already in */ |
| 2672 |
|
| if (UNLIKELY(tmpp == NULL)) { |
| 2673 |
|
| MARPAESLIFPERL_CROAKF("realloc failure, %s", strerror(errno)); |
| 2674 |
|
| goto err; |
| 2675 |
|
| } |
| 2676 |
|
| marpaESLIFPerl_stringGeneratorContextp->s = tmpp; |
| 2677 |
|
| marpaESLIFPerl_stringGeneratorContextp->allocl = allocl; |
| 2678 |
|
| } |
| 2679 |
|
| memcpy(marpaESLIFPerl_stringGeneratorContextp->s + marpaESLIFPerl_stringGeneratorContextp->l - 1, p, sizel); |
| 2680 |
|
| marpaESLIFPerl_stringGeneratorContextp->l = wantedl; /* Already contains the +1 fir the NUL byte */ |
| 2681 |
|
| } else { |
| 2682 |
|
| MARPAESLIFPERL_CROAKF("Invalid internal call to %s", funcs); |
| 2683 |
|
| goto err; |
| 2684 |
|
| } |
| 2685 |
|
| |
| 2686 |
|
| marpaESLIFPerl_stringGeneratorContextp->s[marpaESLIFPerl_stringGeneratorContextp->l - 1] = '\0'; |
| 2687 |
|
| rcb = 1; |
| 2688 |
|
| goto done; |
| 2689 |
|
| |
| 2690 |
|
| err: |
| 2691 |
|
| if (marpaESLIFPerl_stringGeneratorContextp->s != NULL) { |
| 2692 |
|
| free(marpaESLIFPerl_stringGeneratorContextp->s); |
| 2693 |
|
| marpaESLIFPerl_stringGeneratorContextp->s = NULL; |
| 2694 |
|
| } |
| 2695 |
|
| marpaESLIFPerl_stringGeneratorContextp->okb = 0; |
| 2696 |
|
| marpaESLIFPerl_stringGeneratorContextp->l = 0; |
| 2697 |
|
| marpaESLIFPerl_stringGeneratorContextp->allocl = 0; |
| 2698 |
|
| rcb = 0; |
| 2699 |
|
| |
| 2700 |
|
| done: |
| 2701 |
|
| return rcb; |
| 2702 |
|
| } |
| 2703 |
|
| |
| 2704 |
|
| /*****************************************************************************/ |
| 2705 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_scalar_string_only(pTHX_ SV *svp, int typei) |
| 2706 |
|
| /*****************************************************************************/ |
| 2707 |
|
| { |
| 2708 |
|
| /* It must have been created as a PV or coerced to it at least once */ |
| 2709 |
0 |
▶ | return (typei == SCALAR) && SvPOK(svp); |
Branch: 2 branches
| Branch | True | False | Total |
| return (typei == SCALAR) && SvPOK(svp); |
0 |
0 |
0 |
| return (typei == SCALAR) && SvPOK(svp); |
0 |
0 |
0 |
|
| 2710 |
|
| } |
| 2711 |
|
| |
| 2712 |
|
| /*****************************************************************************/ |
| 2713 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_undef(pTHX_ SV *svp, int typei) |
| 2714 |
|
| /*****************************************************************************/ |
| 2715 |
|
| { |
| 2716 |
0 |
| return (typei == UNDEF); |
| 2717 |
|
| } |
| 2718 |
|
| |
| 2719 |
|
| /*****************************************************************************/ |
| 2720 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_arrayref(pTHX_ SV *svp, int typei) |
| 2721 |
|
| /*****************************************************************************/ |
| 2722 |
|
| { |
| 2723 |
0 |
| return (typei == ARRAYREF); |
| 2724 |
|
| } |
| 2725 |
|
| |
| 2726 |
|
| /*****************************************************************************/ |
| 2727 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_MarpaX__ESLIF__String(pTHX_ SV *svp, int typei) |
| 2728 |
|
| /*****************************************************************************/ |
| 2729 |
|
| { |
| 2730 |
0 |
▶ | return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "MarpaX::ESLIF::String")); |
Branch: 2 branches
| Branch | True | False | Total |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "MarpaX::ESLIF::String")); |
0 |
0 |
0 |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "MarpaX::ESLIF::String")); |
0 |
0 |
0 |
|
| 2731 |
|
| } |
| 2732 |
|
| |
| 2733 |
|
| /*****************************************************************************/ |
| 2734 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_Math__BigInt(pTHX_ SV *svp, int typei) |
| 2735 |
|
| /*****************************************************************************/ |
| 2736 |
|
| { |
| 2737 |
0 |
▶ | return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigInt")); |
Branch: 2 branches
| Branch | True | False | Total |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigInt")); |
0 |
0 |
0 |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigInt")); |
0 |
0 |
0 |
|
| 2738 |
|
| } |
| 2739 |
|
| |
| 2740 |
|
| /*****************************************************************************/ |
| 2741 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_Math__BigFloat(pTHX_ SV *svp, int typei) |
| 2742 |
|
| /*****************************************************************************/ |
| 2743 |
|
| { |
| 2744 |
0 |
▶ | return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigFloat")); |
Branch: 2 branches
| Branch | True | False | Total |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigFloat")); |
0 |
0 |
0 |
| return (((typei & OBJECT) == OBJECT) && sv_derived_from(svp, "Math::BigFloat")); |
0 |
0 |
0 |
|
| 2745 |
|
| } |
| 2746 |
|
| |
| 2747 |
|
| /*****************************************************************************/ |
| 2748 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_hashref(pTHX_ SV *svp, int typei) |
| 2749 |
|
| /*****************************************************************************/ |
| 2750 |
|
| { |
| 2751 |
0 |
| return (typei == HASHREF); |
| 2752 |
|
| } |
| 2753 |
|
| |
| 2754 |
|
| /*****************************************************************************/ |
| 2755 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_is_bool(pTHX_ SV *svp, int typei, MarpaX_ESLIF_constants_t *constantsp) |
| 2756 |
|
| /*****************************************************************************/ |
| 2757 |
|
| { |
| 2758 |
|
| AV *avp; |
| 2759 |
|
| short rcb; |
| 2760 |
|
| |
| 2761 |
|
| /* We request that at least it has be an object - the MarpaX::ESLIF::is_bool will check object nature itself */ |
| 2762 |
0 |
▶ | if ((typei & OBJECT) == OBJECT) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & OBJECT) == OBJECT) { |
0 |
0 |
0 |
|
| 2763 |
0 |
| avp = newAV(); |
| 2764 |
0 |
▶ | av_push(avp, (svp == &PL_sv_undef) ? newSV(0) : newSVsv(svp)); /* Ref count of stringp is transfered to av -; */ |
Branch: 1 branch
| Branch | True | False | Total |
| av_push(avp, (svp == &PL_sv_undef) ? newSV(0) : newSVsv(svp)); /* Ref count of stringp is transfered to av -; */ |
0 |
0 |
0 |
|
| 2765 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ NULL /* interfacep */, "MarpaX::ESLIF::is_bool", avp, constantsp->MarpaX__ESLIF__is_bool_svp); |
| 2766 |
0 |
| av_undef(avp); |
| 2767 |
0 |
| rcb = SvTRUE(svp); |
| 2768 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
|
| 2769 |
|
| } else { |
| 2770 |
0 |
| rcb = 0; |
| 2771 |
|
| } |
| 2772 |
|
| |
| 2773 |
0 |
| return rcb; |
| 2774 |
|
| } |
| 2775 |
|
| |
| 2776 |
|
| /*****************************************************************************/ |
| 2777 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_true(pTHX_ MarpaX_ESLIF_constants_t *constantsp) |
| 2778 |
|
| /*****************************************************************************/ |
| 2779 |
|
| { |
| 2780 |
0 |
| return newSVsv(constantsp->MarpaX__ESLIF__true_svp); |
| 2781 |
|
| } |
| 2782 |
|
| |
| 2783 |
|
| /*****************************************************************************/ |
| 2784 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_false(pTHX_ MarpaX_ESLIF_constants_t *constantsp) |
| 2785 |
|
| /*****************************************************************************/ |
| 2786 |
|
| { |
| 2787 |
0 |
| return newSVsv(constantsp->MarpaX__ESLIF__false_svp); |
| 2788 |
|
| } |
| 2789 |
|
| |
| 2790 |
|
| /*****************************************************************************/ |
| 2791 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_stack_setv(pTHX_ marpaESLIF_t *marpaESLIFp, marpaESLIFValue_t *marpaESLIFValuep, int resulti, SV *svp, marpaESLIFValueResult_t *marpaESLIFValueResultOutputp, short incb, MarpaX_ESLIF_constants_t *constantsp) |
| 2792 |
|
| /*****************************************************************************/ |
| 2793 |
|
| /* Take care: IF resulti is >= 0, then marpaESLIFValuep must be != NULL */ |
| 2794 |
|
| /*****************************************************************************/ |
| 2795 |
|
| { |
| 2796 |
|
| static const char *funcs = "marpaESLIFPerl_stack_setv"; |
| 2797 |
|
| genericStack_t marpaESLIFValueResultStack; |
| 2798 |
0 |
| genericStack_t *marpaESLIFValueResultStackp = &marpaESLIFValueResultStack; |
| 2799 |
|
| genericStack_t svStack; |
| 2800 |
0 |
| genericStack_t *svStackp = &svStack; |
| 2801 |
|
| marpaESLIFValueResult_t marpaESLIFValueResult; |
| 2802 |
|
| marpaESLIFValueResult_t *marpaESLIFValueResultp; |
| 2803 |
|
| int typei; |
| 2804 |
|
| short eslifb; |
| 2805 |
|
| char *bytep; |
| 2806 |
|
| size_t bytel; |
| 2807 |
|
| char *encodings; |
| 2808 |
|
| IV iv; |
| 2809 |
|
| NV nv; |
| 2810 |
|
| HV *hvp; |
| 2811 |
|
| size_t iterl; |
| 2812 |
|
| char *keys; |
| 2813 |
|
| I32 reti; |
| 2814 |
|
| SV *iterp; |
| 2815 |
|
| AV *avp; |
| 2816 |
|
| SSize_t aviteratorl; |
| 2817 |
|
| short marpaESLIFStringb; |
| 2818 |
|
| |
| 2819 |
|
| /* We maintain in parallel a marpaESLIFValueResult and an SV stacks */ |
| 2820 |
0 |
| marpaESLIFPerl_GENERICSTACK_INIT(marpaESLIFValueResultStackp); |
| 2821 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
0 |
0 |
0 |
|
| 2822 |
0 |
| MARPAESLIFPERL_CROAKF("GENERICSTACK_INIT() failure, %s", strerror(errno)); |
| 2823 |
|
| } |
| 2824 |
|
| |
| 2825 |
0 |
| marpaESLIFPerl_GENERICSTACK_INIT(svStackp); |
| 2826 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
0 |
0 |
0 |
|
| 2827 |
0 |
| MARPAESLIFPERL_CROAKF("GENERICSTACK_INIT() failure, %s", strerror(errno)); |
| 2828 |
|
| } |
| 2829 |
|
| |
| 2830 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(marpaESLIFValueResultStackp, &marpaESLIFValueResult); |
| 2831 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
0 |
0 |
0 |
|
| 2832 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValueResultStackp push failure, %s", strerror(errno)); |
| 2833 |
|
| } |
| 2834 |
|
| |
| 2835 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(svStackp, svp); |
| 2836 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
0 |
0 |
0 |
|
| 2837 |
0 |
| MARPAESLIFPERL_CROAKF("svStackp push failure, %s", strerror(errno)); |
| 2838 |
|
| } |
| 2839 |
|
| |
| 2840 |
0 |
▶ | while (marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueResultStackp) > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueResultStackp) > 0) { |
0 |
0 |
0 |
|
| 2841 |
0 |
| marpaESLIFValueResultp = (marpaESLIFValueResult_t *) marpaESLIFPerl_GENERICSTACK_POP_PTR(marpaESLIFValueResultStackp); |
| 2842 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(svStackp); |
| 2843 |
0 |
▶ | if (incb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (incb) { |
0 |
0 |
0 |
|
| 2844 |
0 |
▶ | MARPAESLIFPERL_REFCNT_INC(svp); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_INC(svp); |
0 |
0 |
0 |
|
| 2845 |
|
| } |
| 2846 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ svp); |
| 2847 |
|
| |
| 2848 |
0 |
| eslifb = 0; |
| 2849 |
0 |
▶ | if (marpaESLIFPerl_is_undef(aTHX_ svp, typei)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFPerl_is_undef(aTHX_ svp, typei)) { |
0 |
0 |
0 |
|
| 2850 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_UNDEF; |
| 2851 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2852 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2853 |
0 |
| eslifb = 1; |
| 2854 |
0 |
▶ | } else if (marpaESLIFPerl_is_hashref(aTHX_ svp, typei)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (marpaESLIFPerl_is_hashref(aTHX_ svp, typei)) { |
0 |
0 |
0 |
|
| 2855 |
0 |
| hvp = (HV *) SvRV(svp); |
| 2856 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_TABLE; |
| 2857 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2858 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2859 |
0 |
▶ | marpaESLIFValueResultp->u.t.sizel = (size_t) HvKEYS(hvp); |
Branch: 1 branch
| Branch | True | False | Total |
| marpaESLIFValueResultp->u.t.sizel = (size_t) HvKEYS(hvp); |
0 |
0 |
0 |
|
| 2860 |
0 |
| marpaESLIFValueResultp->u.t.shallowb = 0; |
| 2861 |
0 |
| marpaESLIFValueResultp->u.t.freeUserDatavp = marpaESLIFPerlaTHX; |
| 2862 |
0 |
| marpaESLIFValueResultp->u.t.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 2863 |
0 |
▶ | if (marpaESLIFValueResultp->u.t.sizel > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.t.sizel > 0) { |
0 |
0 |
0 |
|
| 2864 |
0 |
▶ | Newx(marpaESLIFValueResultp->u.t.p, marpaESLIFValueResultp->u.t.sizel, marpaESLIFValueResultPair_t); |
Branch: 1 branch
| Branch | True | False | Total |
| Newx(marpaESLIFValueResultp->u.t.p, marpaESLIFValueResultp->u.t.sizel, marpaESLIFValueResultPair_t); |
0 |
0 |
0 |
|
| 2865 |
0 |
| iterl = 0; |
| 2866 |
|
| /* Note: we never do sv_2mortal, because either we successfully converted an svp, then MARPAESLIFPERL_REFCNT_DEC(svp) is called, */ |
| 2867 |
|
| /* either we need it alive because it does not have an ESLIF equivalent */ |
| 2868 |
0 |
| hv_iterinit(hvp); |
| 2869 |
0 |
▶ | while ((iterp = hv_iternextsv(hvp, &keys, &reti)) != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| while ((iterp = hv_iternextsv(hvp, &keys, &reti)) != NULL) { |
0 |
0 |
0 |
|
| 2870 |
0 |
▶ | if (UNLIKELY(iterl >= marpaESLIFValueResultp->u.t.sizel)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(iterl >= marpaESLIFValueResultp->u.t.sizel)) { |
0 |
0 |
0 |
|
| 2871 |
|
| /* This should not happen */ |
| 2872 |
0 |
| MARPAESLIFPERL_CROAKF("Iterating over hash reaches more than %ld coming from HvKEYS()", (unsigned long) marpaESLIFValueResultp->u.t.sizel); |
| 2873 |
|
| } |
| 2874 |
|
| /* Keep svStackp and marpaESLIFValueResultStackp in synch */ |
| 2875 |
|
| /* - Key */ |
| 2876 |
0 |
▶ | marpaESLIFPerl_GENERICSTACK_PUSH_PTR(svStackp, (void *) MARPAESLIFPERL_NEWSVPVN_UTF8(keys, reti)); |
Branch: 1 branch
| Branch | True | False | Total |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(svStackp, (void *) MARPAESLIFPERL_NEWSVPVN_UTF8(keys, reti)); |
0 |
0 |
0 |
|
| 2877 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
0 |
0 |
0 |
|
| 2878 |
0 |
| MARPAESLIFPERL_CROAKF("svStackp push failure, %s", strerror(errno)); |
| 2879 |
|
| } |
| 2880 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(marpaESLIFValueResultStackp, (void *) &(marpaESLIFValueResultp->u.t.p[iterl].key)); |
| 2881 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
0 |
0 |
0 |
|
| 2882 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValueResultStackp push failure, %s", strerror(errno)); |
| 2883 |
|
| } |
| 2884 |
|
| /* - Value */ |
| 2885 |
0 |
| iterp = newSVsv(iterp); |
| 2886 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(svStackp, (void *) iterp); |
| 2887 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
0 |
0 |
0 |
|
| 2888 |
0 |
| MARPAESLIFPERL_CROAKF("svStackp push failure, %s", strerror(errno)); |
| 2889 |
|
| } |
| 2890 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(marpaESLIFValueResultStackp, (void *) &(marpaESLIFValueResultp->u.t.p[iterl].value)); |
| 2891 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
0 |
0 |
0 |
|
| 2892 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValueResultStackp push failure, %s", strerror(errno)); |
| 2893 |
|
| } |
| 2894 |
0 |
| ++iterl; |
| 2895 |
|
| } |
| 2896 |
|
| } else { |
| 2897 |
0 |
| marpaESLIFValueResultp->u.t.p = NULL; |
| 2898 |
|
| } |
| 2899 |
0 |
| eslifb = 1; |
| 2900 |
|
| |
| 2901 |
0 |
▶ | } else if (marpaESLIFPerl_is_arrayref(aTHX_ svp, typei)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (marpaESLIFPerl_is_arrayref(aTHX_ svp, typei)) { |
0 |
0 |
0 |
|
| 2902 |
0 |
| avp = (AV *) SvRV(svp); |
| 2903 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_ROW; |
| 2904 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2905 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2906 |
0 |
| marpaESLIFValueResultp->u.r.sizel = (size_t) (av_len(avp) + 1); |
| 2907 |
0 |
| marpaESLIFValueResultp->u.r.shallowb = 0; |
| 2908 |
0 |
| marpaESLIFValueResultp->u.r.freeUserDatavp = marpaESLIFPerlaTHX; |
| 2909 |
0 |
| marpaESLIFValueResultp->u.r.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 2910 |
0 |
▶ | if (marpaESLIFValueResultp->u.r.sizel > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultp->u.r.sizel > 0) { |
0 |
0 |
0 |
|
| 2911 |
0 |
▶ | Newx(marpaESLIFValueResultp->u.r.p, marpaESLIFValueResultp->u.r.sizel, marpaESLIFValueResult_t); |
Branch: 1 branch
| Branch | True | False | Total |
| Newx(marpaESLIFValueResultp->u.r.p, marpaESLIFValueResultp->u.r.sizel, marpaESLIFValueResult_t); |
0 |
0 |
0 |
|
| 2912 |
0 |
▶ | for (aviteratorl = 0; aviteratorl < marpaESLIFValueResultp->u.r.sizel; aviteratorl++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (aviteratorl = 0; aviteratorl < marpaESLIFValueResultp->u.r.sizel; aviteratorl++) { |
0 |
0 |
0 |
|
| 2913 |
0 |
| SV **svpp = av_fetch(avp, aviteratorl, 0); |
| 2914 |
0 |
▶ | if (UNLIKELY(svpp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(svpp == NULL)) { |
0 |
0 |
0 |
|
| 2915 |
0 |
| MARPAESLIFPERL_CROAKF("av_fetch returned NULL during export at indice %ld", (unsigned long) aviteratorl); |
| 2916 |
|
| } |
| 2917 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(svStackp, (void *) newSVsv(*svpp)); |
| 2918 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(svStackp))) { |
0 |
0 |
0 |
|
| 2919 |
0 |
| MARPAESLIFPERL_CROAKF("svStackp push failure, %s", strerror(errno)); |
| 2920 |
|
| } |
| 2921 |
0 |
| marpaESLIFPerl_GENERICSTACK_PUSH_PTR(marpaESLIFValueResultStackp, (void *) &(marpaESLIFValueResultp->u.r.p[aviteratorl])); |
| 2922 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_ERROR(marpaESLIFValueResultStackp))) { |
0 |
0 |
0 |
|
| 2923 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValueResultStackp push failure, %s", strerror(errno)); |
| 2924 |
|
| } |
| 2925 |
|
| } |
| 2926 |
|
| } else { |
| 2927 |
0 |
| marpaESLIFValueResultp->u.r.p = NULL; |
| 2928 |
|
| } |
| 2929 |
0 |
| eslifb = 1; |
| 2930 |
0 |
▶ | } else if (marpaESLIFPerl_is_bool(aTHX_ svp, typei, constantsp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (marpaESLIFPerl_is_bool(aTHX_ svp, typei, constantsp)) { |
0 |
0 |
0 |
|
| 2931 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_BOOL; |
| 2932 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2933 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2934 |
|
| /* Since boolean is not a true type in Perl, most booleans involves magic */ |
| 2935 |
0 |
▶ | SvGETMAGIC(svp); |
Branch: 2 branches
| Branch | True | False | Total |
| SvGETMAGIC(svp); |
0 |
0 |
0 |
| SvGETMAGIC(svp); |
0 |
0 |
0 |
|
| 2936 |
0 |
| marpaESLIFValueResultp->u.y = SvTRUE(svp) ? MARPAESLIFVALUERESULTBOOL_TRUE : MARPAESLIFVALUERESULTBOOL_FALSE; |
| 2937 |
0 |
| eslifb = 1; |
| 2938 |
0 |
▶ | } else if ((typei == SCALAR) && SvNOK(svp)) { |
Branch: 2 branches
| Branch | True | False | Total |
| } else if ((typei == SCALAR) && SvNOK(svp)) { |
0 |
0 |
0 |
| } else if ((typei == SCALAR) && SvNOK(svp)) { |
0 |
0 |
0 |
|
| 2939 |
0 |
| nv = SvNVX(svp); |
| 2940 |
0 |
▶ | if (constantsp->nvtype_is_long_doubleb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->nvtype_is_long_doubleb) { |
0 |
0 |
0 |
|
| 2941 |
|
| /* NVTYPE is long double -; */ |
| 2942 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_LONG_DOUBLE; |
| 2943 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2944 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2945 |
0 |
| marpaESLIFValueResultp->u.ld = (long double) nv; |
| 2946 |
0 |
| eslifb = 1; |
| 2947 |
0 |
▶ | } else if (! constantsp->nvtype_is___float128) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (! constantsp->nvtype_is___float128) { |
0 |
0 |
0 |
|
| 2948 |
|
| /* NVTYPE is double -; */ |
| 2949 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_DOUBLE; |
| 2950 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2951 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2952 |
0 |
| marpaESLIFValueResultp->u.d = (double) nv; |
| 2953 |
0 |
| eslifb = 1; |
| 2954 |
|
| } |
| 2955 |
0 |
▶ | } else if ((typei == SCALAR) && SvIOK(svp)) { |
Branch: 2 branches
| Branch | True | False | Total |
| } else if ((typei == SCALAR) && SvIOK(svp)) { |
0 |
0 |
0 |
| } else if ((typei == SCALAR) && SvIOK(svp)) { |
0 |
0 |
0 |
|
| 2956 |
0 |
| iv = SvIVX(svp); |
| 2957 |
0 |
▶ | if ((iv >= SHRT_MIN) && (iv <= SHRT_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((iv >= SHRT_MIN) && (iv <= SHRT_MAX)) { |
0 |
0 |
0 |
| if ((iv >= SHRT_MIN) && (iv <= SHRT_MAX)) { |
0 |
0 |
0 |
|
| 2958 |
|
| /* Ok if it fits into [SHRT_MIN,SHRT_MAX] */ |
| 2959 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_SHORT; |
| 2960 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2961 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2962 |
0 |
| marpaESLIFValueResultp->u.b = (short) iv; |
| 2963 |
0 |
| eslifb = 1; |
| 2964 |
0 |
▶ | } else if ((iv >= INT_MIN) && (iv <= INT_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| } else if ((iv >= INT_MIN) && (iv <= INT_MAX)) { |
0 |
0 |
0 |
| } else if ((iv >= INT_MIN) && (iv <= INT_MAX)) { |
0 |
0 |
0 |
|
| 2965 |
|
| /* Ok if it fits into [INT_MIN,INT_MAX] */ |
| 2966 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_INT; |
| 2967 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2968 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2969 |
0 |
| marpaESLIFValueResultp->u.i = (int) iv; |
| 2970 |
0 |
| eslifb = 1; |
| 2971 |
|
| } else if ((iv >= LONG_MIN) && (iv <= LONG_MAX)) { |
| 2972 |
|
| /* Ok if it fits into [LONG_MIN,LONG_MAX] */ |
| 2973 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_LONG; |
| 2974 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2975 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2976 |
0 |
| marpaESLIFValueResultp->u.l = (long) iv; |
| 2977 |
0 |
| eslifb = 1; |
| 2978 |
|
| #ifdef MARPAESLIF_HAVE_LONG_LONG |
| 2979 |
|
| } else if ((iv >= MARPAESLIF_LLONG_MIN) && (iv <= MARPAESLIF_LLONG_MAX)) { |
| 2980 |
|
| /* Ok if it fits into [MARPAESLIF_LLONG_MIN,MARPAESLIF_LLONG_MAX] */ |
| 2981 |
|
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_LONG_LONG; |
| 2982 |
|
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2983 |
|
| marpaESLIFValueResultp->representationp = NULL; |
| 2984 |
|
| marpaESLIFValueResultp->u.ll = (MARPAESLIF_LONG_LONG) iv; |
| 2985 |
|
| eslifb = 1; |
| 2986 |
|
| #endif |
| 2987 |
|
| } |
| 2988 |
0 |
▶ | } else if ((marpaESLIFStringb = marpaESLIFPerl_is_MarpaX__ESLIF__String(aTHX_ svp, typei)) /* Must be first because of marpaESLIFStringb */ || marpaESLIFPerl_is_scalar_string_only(aTHX_ svp, typei)) { |
Branch: 2 branches
| Branch | True | False | Total |
| } else if ((marpaESLIFStringb = marpaESLIFPerl_is_MarpaX__ESLIF__String(aTHX_ svp, typei)) /* Must be first because of marpaESLIFStringb */ || marpaESLIFPerl_is_scalar_string_only(aTHX_ svp, typei)) { |
0 |
0 |
0 |
| } else if ((marpaESLIFStringb = marpaESLIFPerl_is_MarpaX__ESLIF__String(aTHX_ svp, typei)) /* Must be first because of marpaESLIFStringb */ || marpaESLIFPerl_is_scalar_string_only(aTHX_ svp, typei)) { |
0 |
0 |
0 |
|
| 2989 |
|
| |
| 2990 |
|
| /* fprintf(stderr, "marpaESLIFStringb=%d\n", marpaESLIFStringb); */ |
| 2991 |
0 |
▶ | if (marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, svp, &bytep, &bytel, 1 /* encodingInformationb */, NULL /* characterStreambp */, &encodings, NULL /* encodinglp */, 0 /* warnIsFatalb */, marpaESLIFStringb, constantsp) != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, svp, &bytep, &bytel, 1 /* encodingInformationb */, NULL /* characterStreambp */, &encodings, NULL /* encodinglp */, 0 /* warnIsFatalb */, marpaESLIFStringb, constantsp) != NULL) { |
0 |
0 |
0 |
|
| 2992 |
|
| /* fprintf(stderr, "==> STRING, ENCODING=%s\n", encodings != NULL ? encodings : "(null)"); */ |
| 2993 |
0 |
▶ | if (encodings != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (encodings != NULL) { |
0 |
0 |
0 |
|
| 2994 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_STRING; |
| 2995 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 2996 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 2997 |
0 |
| marpaESLIFValueResultp->u.s.p = (unsigned char*) bytep; |
| 2998 |
0 |
| marpaESLIFValueResultp->u.s.sizel = bytel; |
| 2999 |
0 |
| marpaESLIFValueResultp->u.s.encodingasciis = encodings; |
| 3000 |
0 |
| marpaESLIFValueResultp->u.s.shallowb = 0; |
| 3001 |
0 |
| marpaESLIFValueResultp->u.s.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3002 |
0 |
| marpaESLIFValueResultp->u.s.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3003 |
0 |
| eslifb = 1; |
| 3004 |
0 |
▶ | } else if (bytep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (bytep != NULL) { |
0 |
0 |
0 |
|
| 3005 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_ARRAY; |
| 3006 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3007 |
0 |
| marpaESLIFValueResultp->representationp = NULL; |
| 3008 |
0 |
| marpaESLIFValueResultp->u.a.p = (char *) bytep; |
| 3009 |
0 |
| marpaESLIFValueResultp->u.a.sizel = bytel; |
| 3010 |
0 |
| marpaESLIFValueResultp->u.a.shallowb = 0; |
| 3011 |
0 |
| marpaESLIFValueResultp->u.a.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3012 |
0 |
| marpaESLIFValueResultp->u.a.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3013 |
0 |
| eslifb = 1; |
| 3014 |
|
| } |
| 3015 |
|
| } |
| 3016 |
|
| } |
| 3017 |
|
| |
| 3018 |
0 |
▶ | if (! eslifb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! eslifb) { |
0 |
0 |
0 |
|
| 3019 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3020 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3021 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3022 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3023 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3024 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3025 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3026 |
|
| } else { |
| 3027 |
|
| /* We do not need this svp anymore */ |
| 3028 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(svp); |
0 |
0 |
0 |
|
| 3029 |
|
| } |
| 3030 |
|
| } |
| 3031 |
|
| |
| 3032 |
0 |
▶ | if (resulti >= 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (resulti >= 0) { |
0 |
0 |
0 |
|
| 3033 |
0 |
▶ | if (UNLIKELY(! marpaESLIFValue_stack_setb(marpaESLIFValuep, resulti, &marpaESLIFValueResult))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFValue_stack_setb(marpaESLIFValuep, resulti, &marpaESLIFValueResult))) { |
0 |
0 |
0 |
|
| 3034 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_stack_setb failure, %s", strerror(errno)); |
| 3035 |
|
| } |
| 3036 |
|
| } |
| 3037 |
0 |
▶ | if (marpaESLIFValueResultOutputp != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (marpaESLIFValueResultOutputp != NULL) { |
0 |
0 |
0 |
|
| 3038 |
0 |
| *marpaESLIFValueResultOutputp = marpaESLIFValueResult; |
| 3039 |
|
| } |
| 3040 |
|
| |
| 3041 |
0 |
| marpaESLIFPerl_GENERICSTACK_RESET(svStackp); |
| 3042 |
0 |
| marpaESLIFPerl_GENERICSTACK_RESET(marpaESLIFValueResultStackp); |
| 3043 |
0 |
| } |
| 3044 |
|
| |
| 3045 |
|
| /*****************************************************************************/ |
| 3046 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNumberAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb) |
| 3047 |
|
| /*****************************************************************************/ |
| 3048 |
|
| { |
| 3049 |
|
| /* We always use Math::BigFloat->new(strings) */ |
| 3050 |
|
| static const char *funcs = "marpaESLIFPerl_JSONDecodeNumberAction"; |
| 3051 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 3052 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 3053 |
|
| AV *listp; |
| 3054 |
|
| SV *svp; |
| 3055 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 3056 |
|
| |
| 3057 |
0 |
▶ | if (confidenceb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (confidenceb) { |
0 |
0 |
0 |
|
| 3058 |
0 |
| return 1; |
| 3059 |
|
| } |
| 3060 |
|
| |
| 3061 |
0 |
| listp = newAV(); |
| 3062 |
0 |
| av_push(listp, newSVpvn((const char *) strings, (STRLEN) stringl)); /* Ref count of string is transfered to listp */ |
| 3063 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigFloat_svp, "new", listp, constantsp->Math__BigFloat__new_svp); |
| 3064 |
0 |
| av_undef(listp); |
| 3065 |
|
| |
| 3066 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3067 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3068 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3069 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3070 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3071 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3072 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3073 |
|
| |
| 3074 |
0 |
| return 1; |
| 3075 |
|
| } |
| 3076 |
|
| |
| 3077 |
|
| /*****************************************************************************/ |
| 3078 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodePositiveInfinityAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb) |
| 3079 |
|
| /*****************************************************************************/ |
| 3080 |
|
| { |
| 3081 |
|
| /* We always use Math::BigInt->binf() */ |
| 3082 |
|
| static const char *funcs = "marpaESLIFPerl_JSONDecodePositiveInfinityAction"; |
| 3083 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 3084 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 3085 |
|
| SV *svp; |
| 3086 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 3087 |
|
| |
| 3088 |
0 |
▶ | if (confidenceb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (confidenceb) { |
0 |
0 |
0 |
|
| 3089 |
0 |
| return 1; |
| 3090 |
|
| } |
| 3091 |
|
| |
| 3092 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "binf", NULL /* svp */, constantsp->Math__BigInt__binf_svp); |
| 3093 |
|
| |
| 3094 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3095 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3096 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3097 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3098 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3099 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3100 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3101 |
|
| |
| 3102 |
0 |
| return 1; |
| 3103 |
|
| } |
| 3104 |
|
| |
| 3105 |
|
| /*****************************************************************************/ |
| 3106 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNegativeInfinityAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb) |
| 3107 |
|
| /*****************************************************************************/ |
| 3108 |
|
| { |
| 3109 |
|
| /* We always give priority to Math::BigInt->binf('-') */ |
| 3110 |
|
| static const char *funcs = "marpaESLIFPerl_JSONDecodeNegativeInfinityAction"; |
| 3111 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 3112 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 3113 |
|
| AV *listp; |
| 3114 |
|
| SV *svp; |
| 3115 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 3116 |
|
| |
| 3117 |
0 |
▶ | if (confidenceb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (confidenceb) { |
0 |
0 |
0 |
|
| 3118 |
0 |
| return 1; |
| 3119 |
|
| } |
| 3120 |
|
| |
| 3121 |
0 |
| listp = newAV(); |
| 3122 |
0 |
| av_push(listp, newSVpvn((const char *) "-", (STRLEN) 1)); /* Ref count of string is transfered to listp */ |
| 3123 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "binf", listp, constantsp->Math__BigInt__binf_svp); |
| 3124 |
0 |
| av_undef(listp); |
| 3125 |
|
| |
| 3126 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3127 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3128 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3129 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3130 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3131 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3132 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3133 |
|
| |
| 3134 |
0 |
| return 1; |
| 3135 |
|
| } |
| 3136 |
|
| |
| 3137 |
|
| /*****************************************************************************/ |
| 3138 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodePositiveNanAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb) |
| 3139 |
|
| /*****************************************************************************/ |
| 3140 |
|
| { |
| 3141 |
|
| /* We always give priority to Math::BigInt->bnan() */ |
| 3142 |
|
| static const char *funcs = "marpaESLIFPerl_JSONDecodePositiveNanAction"; |
| 3143 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 3144 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 3145 |
|
| SV *svp; |
| 3146 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 3147 |
|
| |
| 3148 |
0 |
▶ | if (confidenceb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (confidenceb) { |
0 |
0 |
0 |
|
| 3149 |
0 |
| return 1; |
| 3150 |
|
| } |
| 3151 |
|
| |
| 3152 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "bnan", NULL /* svp */, constantsp->Math__BigInt__bnan_svp); |
| 3153 |
|
| |
| 3154 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3155 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3156 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3157 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3158 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3159 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3160 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3161 |
|
| |
| 3162 |
0 |
| return 1; |
| 3163 |
|
| } |
| 3164 |
|
| |
| 3165 |
|
| /*****************************************************************************/ |
| 3166 |
0 |
| PERL_STATIC_INLINE short marpaESLIFPerl_JSONDecodeNegativeNanAction(void *userDatavp, char *strings, size_t stringl, marpaESLIFValueResult_t *marpaESLIFValueResultp, short confidenceb) |
| 3167 |
|
| /*****************************************************************************/ |
| 3168 |
|
| { |
| 3169 |
|
| /* We always give priority to Math::BigInt->bnan() */ |
| 3170 |
|
| static const char *funcs = "marpaESLIFPerl_JSONDecodeNegativeNanAction"; |
| 3171 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = (MarpaX_ESLIF_Recognizer_t *) userDatavp; |
| 3172 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Recognizerp->constantsp; |
| 3173 |
|
| SV *svp; |
| 3174 |
|
| dTHXa(MarpaX_ESLIF_Recognizerp->PerlInterpreterp); |
| 3175 |
|
| |
| 3176 |
0 |
▶ | if (confidenceb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (confidenceb) { |
0 |
0 |
0 |
|
| 3177 |
|
| /* This will be injected as a float for sure. Take care Perl may very represent it a "NaN" */ |
| 3178 |
|
| /* instead of "-NaN" though. */ |
| 3179 |
0 |
| return 1; |
| 3180 |
|
| } |
| 3181 |
|
| |
| 3182 |
0 |
| marpaESLIFPerl_genericLoggerCallbackv(MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp, GENERICLOGGER_LOGLEVEL_WARNING, "Negative NaN converted to Math::BigInt->bnan()"); |
| 3183 |
|
| |
| 3184 |
|
| /* Take care! Math::BigInt do not have a notion of negative nan */ |
| 3185 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ constantsp->Math__BigInt_svp, "bnan", NULL /* svp */, constantsp->Math__BigInt__bnan_svp); |
| 3186 |
|
| |
| 3187 |
0 |
| marpaESLIFValueResultp->type = MARPAESLIF_VALUE_TYPE_PTR; |
| 3188 |
0 |
| marpaESLIFValueResultp->contextp = MARPAESLIFPERL_CONTEXT; |
| 3189 |
0 |
| marpaESLIFValueResultp->representationp = marpaESLIFPerl_representationb; |
| 3190 |
0 |
| marpaESLIFValueResultp->u.p.p = svp; |
| 3191 |
0 |
| marpaESLIFValueResultp->u.p.shallowb = 0; |
| 3192 |
0 |
| marpaESLIFValueResultp->u.p.freeUserDatavp = marpaESLIFPerlaTHX; |
| 3193 |
0 |
| marpaESLIFValueResultp->u.p.freeCallbackp = marpaESLIFPerl_genericFreeCallbackv; |
| 3194 |
|
| |
| 3195 |
0 |
| return 1; |
| 3196 |
|
| } |
| 3197 |
|
| |
| 3198 |
|
| /*****************************************************************************/ |
| 3199 |
0 |
| PERL_STATIC_INLINE void *marpaESLIFPerl_Perl2enginep(pTHX_ SV *Perl_argumentp) |
| 3200 |
|
| /*****************************************************************************/ |
| 3201 |
|
| { |
| 3202 |
|
| static const char *funcs = "marpaESLIFPerl_Perl2enginep"; |
| 3203 |
|
| int typei; |
| 3204 |
|
| HV *hvp; |
| 3205 |
|
| SV **svpp; |
| 3206 |
|
| |
| 3207 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ Perl_argumentp); |
| 3208 |
0 |
▶ | if (UNLIKELY((typei & HASHREF) != HASHREF)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY((typei & HASHREF) != HASHREF)) { |
0 |
0 |
0 |
|
| 3209 |
0 |
| MARPAESLIFPERL_CROAK("Argument is not a HASH reference"); |
| 3210 |
|
| } |
| 3211 |
|
| |
| 3212 |
0 |
| hvp = (HV *) SvRV(Perl_argumentp); |
| 3213 |
0 |
| svpp = hv_fetch(hvp, "engine", 6, 0); |
| 3214 |
0 |
▶ | if (UNLIKELY(svpp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(svpp == NULL)) { |
0 |
0 |
0 |
|
| 3215 |
0 |
| MARPAESLIFPERL_CROAK("No 'engine' key in hash"); |
| 3216 |
|
| } |
| 3217 |
|
| |
| 3218 |
0 |
| return INT2PTR(void *, SvIV(*svpp)); |
| 3219 |
|
| } |
| 3220 |
|
| |
| 3221 |
|
| /*****************************************************************************/ |
| 3222 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_constants_initv(pTHX_ MarpaX_ESLIF_constants_t *constantsp) |
| 3223 |
|
| /*****************************************************************************/ |
| 3224 |
|
| { |
| 3225 |
|
| static const char *funcs = "marpaESLIFPerl_constants_initv"; |
| 3226 |
|
| |
| 3227 |
0 |
| constantsp->MarpaX__ESLIF_svp = newSVpvn("MarpaX::ESLIF", strlen("MarpaX::ESLIF")); |
| 3228 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF_svp, "is_bool", &(constantsp->MarpaX__ESLIF__is_bool_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF_svp, "is_bool", &(constantsp->MarpaX__ESLIF__is_bool_svp), NULL)) { |
0 |
0 |
0 |
|
| 3229 |
0 |
| MARPAESLIFPERL_CROAK("MarpaX::ESLIF must do \"is_bool\""); |
| 3230 |
|
| } |
| 3231 |
0 |
| constantsp->MarpaX__ESLIF__UTF_8_svp = newSVpvn("UTF-8", strlen("UTF-8")); |
| 3232 |
0 |
| constantsp->Math__BigFloat_svp = newSVpvn("Math::BigFloat", strlen("Math::BigFloat")); |
| 3233 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigFloat_svp, "new", &(constantsp->Math__BigFloat__new_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigFloat_svp, "new", &(constantsp->Math__BigFloat__new_svp), NULL)) { |
0 |
0 |
0 |
|
| 3234 |
0 |
| MARPAESLIFPERL_CROAK("Math::BigFloat must do \"new\""); |
| 3235 |
|
| } |
| 3236 |
0 |
| constantsp->Math__BigInt_svp = newSVpvn("Math::BigInt", strlen("Math::BigInt")); |
| 3237 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "new", &(constantsp->Math__BigInt__new_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "new", &(constantsp->Math__BigInt__new_svp), NULL)) { |
0 |
0 |
0 |
|
| 3238 |
0 |
| MARPAESLIFPERL_CROAK("Math::BigInt must do \"new\""); |
| 3239 |
|
| } |
| 3240 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "binf", &(constantsp->Math__BigInt__binf_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "binf", &(constantsp->Math__BigInt__binf_svp), NULL)) { |
0 |
0 |
0 |
|
| 3241 |
0 |
| MARPAESLIFPERL_CROAK("Math::BigInt must do \"binf\""); |
| 3242 |
|
| } |
| 3243 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "bnan", &(constantsp->Math__BigInt__bnan_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->Math__BigInt_svp, "bnan", &(constantsp->Math__BigInt__bnan_svp), NULL)) { |
0 |
0 |
0 |
|
| 3244 |
0 |
| MARPAESLIFPERL_CROAK("Math::BigInt must do \"bnan\""); |
| 3245 |
|
| } |
| 3246 |
0 |
| constantsp->nvtype_is_long_doubleb = marpaESLIFPerl_call_methodb(aTHX_ constantsp->MarpaX__ESLIF_svp, "_nvtype_is_long_double", NULL /* subSvp */); |
| 3247 |
0 |
| constantsp->nvtype_is___float128 = marpaESLIFPerl_call_methodb(aTHX_ constantsp->MarpaX__ESLIF_svp, "_nvtype_is___float128", NULL /* subSvp */); |
| 3248 |
0 |
| constantsp->MarpaX__ESLIF__true_svp = get_sv("MarpaX::ESLIF::true", 0); |
| 3249 |
0 |
| constantsp->MarpaX__ESLIF__false_svp = get_sv("MarpaX::ESLIF::false", 0); |
| 3250 |
0 |
| constantsp->MarpaX__ESLIF__Grammar__Properties_svp = newSVpvn("MarpaX::ESLIF::Grammar::Properties", strlen("MarpaX::ESLIF::Grammar::Properties")); |
| 3251 |
0 |
| constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp = newSVpvn("MarpaX::ESLIF::Grammar::Rule::Properties", strlen("MarpaX::ESLIF::Grammar::Rule::Properties")); |
| 3252 |
0 |
| constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp = newSVpvn("MarpaX::ESLIF::Grammar::Symbol::Properties", strlen("MarpaX::ESLIF::Grammar::Symbol::Properties")); |
| 3253 |
0 |
| constantsp->MarpaX__ESLIF__String_svp = newSVpvn("MarpaX::ESLIF::String", strlen("MarpaX::ESLIF::String")); |
| 3254 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "new", &(constantsp->MarpaX__ESLIF__String__new_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "new", &(constantsp->MarpaX__ESLIF__String__new_svp), NULL)) { |
0 |
0 |
0 |
|
| 3255 |
0 |
| MARPAESLIFPERL_CROAK("MarpaX::ESLIF::String must do \"new\""); |
| 3256 |
|
| } |
| 3257 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "encoding", &(constantsp->MarpaX__ESLIF__String__encoding_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "encoding", &(constantsp->MarpaX__ESLIF__String__encoding_svp), NULL)) { |
0 |
0 |
0 |
|
| 3258 |
0 |
| MARPAESLIFPERL_CROAK("MarpaX::ESLIF::String must do \"encoding\""); |
| 3259 |
|
| } |
| 3260 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "value", &(constantsp->MarpaX__ESLIF__String__value_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__String_svp, "value", &(constantsp->MarpaX__ESLIF__String__value_svp), NULL)) { |
0 |
0 |
0 |
|
| 3261 |
0 |
| MARPAESLIFPERL_CROAK("MarpaX::ESLIF::String must do \"value\""); |
| 3262 |
|
| } |
| 3263 |
0 |
| constantsp->Encode_svp = newSVpvn("Encode", strlen("Encode")); |
| 3264 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->Encode_svp, "decode", &(constantsp->Encode__decode_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->Encode_svp, "decode", &(constantsp->Encode__decode_svp), NULL)) { |
0 |
0 |
0 |
|
| 3265 |
0 |
| MARPAESLIFPERL_CROAK("Encode must do \"decode\""); |
| 3266 |
|
| } |
| 3267 |
0 |
| constantsp->MarpaX__ESLIF__Recognizer_svp = newSVpvn("MarpaX::ESLIF::Recognizer", strlen("MarpaX::ESLIF::Recognizer")); |
| 3268 |
0 |
▶ | if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__Recognizer_svp, "SHALLOW", &(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp), NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_canb(aTHX_ constantsp->MarpaX__ESLIF__Recognizer_svp, "SHALLOW", &(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp), NULL)) { |
0 |
0 |
0 |
|
| 3269 |
0 |
| MARPAESLIFPERL_CROAK("MarpaX::ESLIF::Recognizer must do \"SHALLOW\""); |
| 3270 |
|
| } |
| 3271 |
0 |
| constantsp->MarpaX__ESLIF__Context__symbolName_svp = get_sv("MarpaX::ESLIF::Context::symbolName", GV_ADD | GV_ADDMULTI); |
| 3272 |
0 |
▶ | if (constantsp->MarpaX__ESLIF__Context__symbolName_svp == NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->MarpaX__ESLIF__Context__symbolName_svp == NULL) { |
0 |
0 |
0 |
|
| 3273 |
0 |
| MARPAESLIFPERL_CROAK("Failed to create MarpaX::ESLIF::Context::symbolName variable"); |
| 3274 |
|
| } |
| 3275 |
0 |
| constantsp->MarpaX__ESLIF__Context__symbolNumber_svp = get_sv("MarpaX::ESLIF::Context::symbolNumber", GV_ADD | GV_ADDMULTI); |
| 3276 |
0 |
▶ | if (constantsp->MarpaX__ESLIF__Context__symbolNumber_svp == NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->MarpaX__ESLIF__Context__symbolNumber_svp == NULL) { |
0 |
0 |
0 |
|
| 3277 |
0 |
| MARPAESLIFPERL_CROAK("Failed to create MarpaX::ESLIF::Context::symbolNumber variable"); |
| 3278 |
|
| } |
| 3279 |
0 |
| constantsp->MarpaX__ESLIF__Context__ruleName_svp = get_sv("MarpaX::ESLIF::Context::ruleName", GV_ADD | GV_ADDMULTI); |
| 3280 |
0 |
▶ | if (constantsp->MarpaX__ESLIF__Context__ruleName_svp == NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->MarpaX__ESLIF__Context__ruleName_svp == NULL) { |
0 |
0 |
0 |
|
| 3281 |
0 |
| MARPAESLIFPERL_CROAK("Failed to create MarpaX::ESLIF::Context::ruleName variable"); |
| 3282 |
|
| } |
| 3283 |
0 |
| constantsp->MarpaX__ESLIF__Context__ruleNumber_svp = get_sv("MarpaX::ESLIF::Context::ruleNumber", GV_ADD | GV_ADDMULTI); |
| 3284 |
0 |
▶ | if (constantsp->MarpaX__ESLIF__Context__ruleNumber_svp == NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->MarpaX__ESLIF__Context__ruleNumber_svp == NULL) { |
0 |
0 |
0 |
|
| 3285 |
0 |
| MARPAESLIFPERL_CROAK("Failed to create MarpaX::ESLIF::Context::ruleNumber variable"); |
| 3286 |
|
| } |
| 3287 |
0 |
| constantsp->MarpaX__ESLIF__Context__grammar_svp = get_sv("MarpaX::ESLIF::Context::grammar", GV_ADD | GV_ADDMULTI); |
| 3288 |
0 |
▶ | if (constantsp->MarpaX__ESLIF__Context__grammar_svp == NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (constantsp->MarpaX__ESLIF__Context__grammar_svp == NULL) { |
0 |
0 |
0 |
|
| 3289 |
0 |
| MARPAESLIFPERL_CROAK("Failed to create MarpaX::ESLIF::Context::grammar variable"); |
| 3290 |
|
| } |
| 3291 |
0 |
| } |
| 3292 |
|
| |
| 3293 |
|
| /*****************************************************************************/ |
| 3294 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_constants_disposev(pTHX_ MarpaX_ESLIF_constants_t *constantsp) |
| 3295 |
|
| /*****************************************************************************/ |
| 3296 |
|
| { |
| 3297 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF_svp); |
0 |
0 |
0 |
|
| 3298 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__is_bool_svp); |
0 |
0 |
0 |
|
| 3299 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__UTF_8_svp); |
0 |
0 |
0 |
|
| 3300 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat_svp); |
0 |
0 |
0 |
|
| 3301 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigFloat__new_svp); |
0 |
0 |
0 |
|
| 3302 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt_svp); |
0 |
0 |
0 |
|
| 3303 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__new_svp); |
0 |
0 |
0 |
|
| 3304 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__binf_svp); |
0 |
0 |
0 |
|
| 3305 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Math__BigInt__bnan_svp); |
0 |
0 |
0 |
|
| 3306 |
|
| /* |
| 3307 |
|
| constantsp->nvtype_is_long_doubleb = 0; |
| 3308 |
|
| constantsp->nvtype_is___float128 = 0; |
| 3309 |
|
| */ |
| 3310 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__true_svp); |
0 |
0 |
0 |
|
| 3311 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__false_svp); |
0 |
0 |
0 |
|
| 3312 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Properties_svp); |
0 |
0 |
0 |
|
| 3313 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp); |
0 |
0 |
0 |
|
| 3314 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp); |
0 |
0 |
0 |
|
| 3315 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String_svp); |
0 |
0 |
0 |
|
| 3316 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__new_svp); |
0 |
0 |
0 |
|
| 3317 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__encoding_svp); |
0 |
0 |
0 |
|
| 3318 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__String__value_svp); |
0 |
0 |
0 |
|
| 3319 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode_svp); |
0 |
0 |
0 |
|
| 3320 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->Encode__decode_svp); |
0 |
0 |
0 |
|
| 3321 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer_svp); |
0 |
0 |
0 |
|
| 3322 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(constantsp->MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
0 |
0 |
0 |
|
| 3323 |
0 |
| } |
| 3324 |
|
| |
| 3325 |
|
| /*****************************************************************************/ |
| 3326 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_engine2Perlp(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp) |
| 3327 |
|
| /*****************************************************************************/ |
| 3328 |
|
| { |
| 3329 |
|
| static const char *funcs = "marpaESLIFPerl_engine2Perlp"; |
| 3330 |
|
| AV *avp; |
| 3331 |
|
| SV *svp; |
| 3332 |
|
| |
| 3333 |
0 |
| avp = newAV(); |
| 3334 |
0 |
| av_push(avp, newSViv(PTR2IV(MarpaX_ESLIF_Recognizerp))); |
| 3335 |
0 |
| svp = marpaESLIFPerl_call_methodp(aTHX_ MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp->constants.MarpaX__ESLIF__Recognizer_svp, |
| 3336 |
|
| "SHALLOW", /* methods */ |
| 3337 |
|
| avp, |
| 3338 |
0 |
| MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp->constants.MarpaX__ESLIF__Recognizer__SHALLOW_svp); |
| 3339 |
0 |
| av_undef(avp); |
| 3340 |
|
| |
| 3341 |
0 |
| return svp; |
| 3342 |
|
| } |
| 3343 |
|
| |
| 3344 |
|
| /*****************************************************************************/ |
| 3345 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_setRecognizerEngineForCallbackv(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp, marpaESLIFRecognizer_t *marpaESLIFRecognizerp) |
| 3346 |
|
| /*****************************************************************************/ |
| 3347 |
|
| { |
| 3348 |
|
| static const char *funcs = "marpaESLIFPerl_setRecognizerEngineForCallbackv"; |
| 3349 |
|
| SV *shallowp; |
| 3350 |
|
| |
| 3351 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->setRecognizerSvp != &PL_sv_undef) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->setRecognizerSvp != &PL_sv_undef) { |
0 |
0 |
0 |
|
| 3352 |
|
| /* MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp MAY BE NULL when we are called back via the parse interface */ |
| 3353 |
|
| /* When we the user is doing an explicit new MarpaX::ESLIF::Recognizer(), then marpaESLIFRecognizerp is equal to */ |
| 3354 |
|
| /* MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp. But take care: newFrom will create a recognizer that is */ |
| 3355 |
|
| /* sharing the userDatavp of its parent, that is pointer to original's MarpaX_ESLIF_Recognizerp that will point */ |
| 3356 |
|
| /* to... original's marpaESLIFRecognizerp. This is why it is always vital to do: */ |
| 3357 |
|
| /* marpaESLIFPerl_setRecognizerEngineForCallbackv() */ |
| 3358 |
|
| /* { your work } */ |
| 3359 |
|
| /* There is no consequence to overwrite MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp in any case: */ |
| 3360 |
|
| /* - Either we are an explicit MarpaX::ESLIF::Recognizer::new or newFrom and it is a no-op */ |
| 3361 |
|
| /* - Either we are created by MarpaX::ESLIF::Recognizer::parse internally and we are never going to be DESTROYed */ |
| 3362 |
|
| /* (then the context in on the stack in this method in fact). */ |
| 3363 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerBackupp = MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp; |
| 3364 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp = marpaESLIFRecognizerp; |
| 3365 |
|
| |
| 3366 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerLastp != marpaESLIFRecognizerp) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerLastp != marpaESLIFRecognizerp) { |
0 |
0 |
0 |
|
| 3367 |
0 |
| shallowp = marpaESLIFPerl_engine2Perlp(aTHX_ MarpaX_ESLIF_Recognizerp); |
| 3368 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ MarpaX_ESLIF_Recognizerp->Perl_recognizerInterfacep, |
| 3369 |
|
| "setRecognizer", |
| 3370 |
|
| shallowp, |
| 3371 |
|
| MarpaX_ESLIF_Recognizerp->setRecognizerSvp); |
| 3372 |
0 |
▶ | MARPAESLIFPERL_REFCNT_DEC(shallowp); |
Branch: 5 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_REFCNT_DEC(shallowp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(shallowp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(shallowp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(shallowp); |
0 |
0 |
0 |
| MARPAESLIFPERL_REFCNT_DEC(shallowp); |
0 |
0 |
0 |
|
| 3373 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerLastp = marpaESLIFRecognizerp; |
| 3374 |
|
| } |
| 3375 |
|
| } |
| 3376 |
0 |
| } |
| 3377 |
|
| |
| 3378 |
|
| /*****************************************************************************/ |
| 3379 |
0 |
| PERL_STATIC_INLINE void marpaESLIFPerl_restoreRecognizerEngineForCallbackv(pTHX_ MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp) |
| 3380 |
|
| /*****************************************************************************/ |
| 3381 |
|
| { |
| 3382 |
|
| static const char *funcs = "marpaESLIFPerl_restoreRecognizerEngineForCallbackv"; |
| 3383 |
|
| |
| 3384 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->setRecognizerSvp != &PL_sv_undef) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->setRecognizerSvp != &PL_sv_undef) { |
0 |
0 |
0 |
|
| 3385 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp = MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerBackupp; |
| 3386 |
|
| } |
| 3387 |
0 |
| } |
| 3388 |
|
| |
| 3389 |
|
| /*****************************************************************************/ |
| 3390 |
0 |
| PERL_STATIC_INLINE SV *marpaESLIFPerl_arraycopyp(pTHX_ char *p, STRLEN sizel, short arraycopyb) |
| 3391 |
|
| /*****************************************************************************/ |
| 3392 |
|
| { |
| 3393 |
|
| static const char *funcs = "marpaESLIFPerl_arraycopyp"; |
| 3394 |
|
| SV *svp; |
| 3395 |
|
| |
| 3396 |
0 |
▶ | if (arraycopyb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (arraycopyb) { |
0 |
0 |
0 |
|
| 3397 |
|
| /* We want an explicit copy */ |
| 3398 |
0 |
| svp = newSVpvn(p, sizel); |
| 3399 |
|
| } else { |
| 3400 |
|
| /* We do not really want memcpy - we do an import based on the address. */ |
| 3401 |
|
| /* C.f .https://codeverge.com/perl.perl5.porters/xs-question/200124 */ |
| 3402 |
0 |
| svp = newSV(0); |
| 3403 |
0 |
▶ | SvUPGRADE(svp, SVt_PV); |
Branch: 1 branch
| Branch | True | False | Total |
| SvUPGRADE(svp, SVt_PV); |
0 |
0 |
0 |
|
| 3404 |
0 |
| SvPOK_only(svp); |
| 3405 |
0 |
| SvPV_set(svp, p); |
| 3406 |
0 |
| SvLEN_set(svp, 0); |
| 3407 |
0 |
| SvCUR_set(svp, sizel); |
| 3408 |
0 |
| SvREADONLY_on(svp); |
| 3409 |
|
| } |
| 3410 |
|
| |
| 3411 |
0 |
| return svp; |
| 3412 |
|
| } |
| 3413 |
|
| |
| 3414 |
|
| =for comment |
| 3415 |
|
| /* ======================================================================= */ |
| 3416 |
|
| /* MarpaX::ESLIF */ |
| 3417 |
|
| /* ======================================================================= */ |
| 3418 |
|
| =cut |
| 3419 |
|
| |
| 3420 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF |
| 3421 |
|
| |
| 3422 |
|
| PROTOTYPES: ENABLE |
| 3423 |
|
| |
| 3424 |
|
| =for comment |
| 3425 |
|
| /* ----------------------------------------------------------------------- */ |
| 3426 |
|
| /* MarpaX::ESLIF::allocate */ |
| 3427 |
|
| /* ----------------------------------------------------------------------- */ |
| 3428 |
|
| =cut |
| 3429 |
|
| |
| 3430 |
|
| void * |
| 3431 |
|
| allocate(Perl_packagep, ...) |
| 3432 |
|
| SV *Perl_packagep; |
| 3433 |
|
| PREINIT: |
| 3434 |
|
| static const char *funcs = "MarpaX::ESLIF::allocate"; |
| 3435 |
|
| CODE: |
| 3436 |
0 |
| SV *Perl_loggerInterfacep = &PL_sv_undef; |
| 3437 |
0 |
| short loggerInterfaceIsObjectb = 0; |
| 3438 |
|
| MarpaX_ESLIF_t *MarpaX_ESLIFp; |
| 3439 |
|
| marpaESLIFOption_t marpaESLIFOption; |
| 3440 |
|
| |
| 3441 |
0 |
▶ | if(items > 1) { |
Branch: 1 branch
| Branch | True | False | Total |
| if(items > 1) { |
0 |
0 |
0 |
|
| 3442 |
0 |
| loggerInterfaceIsObjectb = marpaESLIFPerl_paramIsLoggerInterfaceOrUndefb(aTHX_ Perl_loggerInterfacep = ST(1)); |
| 3443 |
|
| } |
| 3444 |
|
| |
| 3445 |
0 |
| Newx(MarpaX_ESLIFp, 1, MarpaX_ESLIF_t); |
| 3446 |
0 |
| marpaESLIFPerl_ContextInitv(aTHX_ MarpaX_ESLIFp); |
| 3447 |
|
| |
| 3448 |
|
| /* ------------- */ |
| 3449 |
|
| /* genericLogger */ |
| 3450 |
|
| /* ------------- */ |
| 3451 |
0 |
▶ | if (loggerInterfaceIsObjectb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (loggerInterfaceIsObjectb) { |
0 |
0 |
0 |
|
| 3452 |
0 |
| MarpaX_ESLIFp->Perl_loggerInterfacep = Perl_loggerInterfacep; |
| 3453 |
0 |
| MarpaX_ESLIFp->genericLoggerp = genericLogger_newp(marpaESLIFPerl_genericLoggerCallbackv, MarpaX_ESLIFp, GENERICLOGGER_LOGLEVEL_TRACE); |
| 3454 |
0 |
▶ | if (UNLIKELY(MarpaX_ESLIFp->genericLoggerp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(MarpaX_ESLIFp->genericLoggerp == NULL)) { |
0 |
0 |
0 |
|
| 3455 |
0 |
| int save_errno = errno; |
| 3456 |
0 |
| marpaESLIFPerl_ContextFreev(aTHX_ MarpaX_ESLIFp); |
| 3457 |
0 |
| MARPAESLIFPERL_CROAKF("genericLogger_newp failure, %s", strerror(save_errno)); |
| 3458 |
|
| } |
| 3459 |
|
| } |
| 3460 |
|
| |
| 3461 |
|
| /* ---------- */ |
| 3462 |
|
| /* marpaESLIF */ |
| 3463 |
|
| /* ---------- */ |
| 3464 |
0 |
| marpaESLIFOption.genericLoggerp = MarpaX_ESLIFp->genericLoggerp; |
| 3465 |
0 |
| MarpaX_ESLIFp->marpaESLIFp = marpaESLIF_newp(&marpaESLIFOption); |
| 3466 |
0 |
▶ | if (UNLIKELY(MarpaX_ESLIFp->marpaESLIFp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(MarpaX_ESLIFp->marpaESLIFp == NULL)) { |
0 |
0 |
0 |
|
| 3467 |
0 |
| int save_errno = errno; |
| 3468 |
0 |
| marpaESLIFPerl_ContextFreev(aTHX_ MarpaX_ESLIFp); |
| 3469 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIF_newp failure, %s", strerror(save_errno)); |
| 3470 |
|
| } |
| 3471 |
|
| |
| 3472 |
0 |
▶ | RETVAL = MarpaX_ESLIFp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIFp; |
0 |
0 |
0 |
|
| 3473 |
|
| OUTPUT: |
| 3474 |
|
| RETVAL |
| 3475 |
|
| |
| 3476 |
|
| =for comment |
| 3477 |
|
| /* ----------------------------------------------------------------------- */ |
| 3478 |
|
| /* MarpaX::ESLIF::dispose */ |
| 3479 |
|
| /* ----------------------------------------------------------------------- */ |
| 3480 |
|
| =cut |
| 3481 |
|
| |
| 3482 |
|
| void |
| 3483 |
|
| dispose(p) |
| 3484 |
|
| SV *p; |
| 3485 |
|
| PREINIT: |
| 3486 |
|
| static const char *funcs = "MarpaX::ESLIF::dispose"; |
| 3487 |
|
| CODE: |
| 3488 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3489 |
|
| |
| 3490 |
0 |
| marpaESLIFPerl_ContextFreev(aTHX_ MarpaX_ESLIFp); |
| 3491 |
|
| |
| 3492 |
|
| =for comment |
| 3493 |
|
| /* ----------------------------------------------------------------------- */ |
| 3494 |
|
| /* MarpaX::ESLIF::version */ |
| 3495 |
|
| /* ----------------------------------------------------------------------- */ |
| 3496 |
|
| =cut |
| 3497 |
|
| |
| 3498 |
|
| char * |
| 3499 |
|
| version(p) |
| 3500 |
|
| SV *p; |
| 3501 |
|
| PREINIT: |
| 3502 |
|
| static const char *funcs = "MarpaX::ESLIF::version"; |
| 3503 |
|
| CODE: |
| 3504 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3505 |
|
| char *versions; |
| 3506 |
|
| |
| 3507 |
0 |
▶ | if (UNLIKELY(! marpaESLIF_versionb(MarpaX_ESLIFp->marpaESLIFp, &versions))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIF_versionb(MarpaX_ESLIFp->marpaESLIFp, &versions))) { |
0 |
0 |
0 |
|
| 3508 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIF_versionb failure, %s", strerror(errno)); |
| 3509 |
|
| } |
| 3510 |
0 |
| RETVAL = versions; |
| 3511 |
|
| OUTPUT: |
| 3512 |
|
| RETVAL |
| 3513 |
|
| |
| 3514 |
|
| =for comment |
| 3515 |
|
| /* ======================================================================= */ |
| 3516 |
|
| /* MarpaX::ESLIF::JSON::Encoder */ |
| 3517 |
|
| /* ======================================================================= */ |
| 3518 |
|
| =cut |
| 3519 |
|
| |
| 3520 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::JSON::Encoder |
| 3521 |
|
| |
| 3522 |
|
| PROTOTYPES: ENABLE |
| 3523 |
|
| |
| 3524 |
|
| =for comment |
| 3525 |
|
| /* ----------------------------------------------------------------------- */ |
| 3526 |
|
| /* MarpaX::ESLIF::JSON::Encoder::allocate */ |
| 3527 |
|
| /* ----------------------------------------------------------------------- */ |
| 3528 |
|
| =cut |
| 3529 |
|
| |
| 3530 |
|
| void * |
| 3531 |
|
| allocate(Perl_packagep, p, ...) |
| 3532 |
|
| SV *Perl_packagep; |
| 3533 |
|
| SV *p; |
| 3534 |
|
| PREINIT: |
| 3535 |
|
| static const char *funcs = "MarpaX::ESLIF::JSON::Encoder::allocate"; |
| 3536 |
|
| CODE: |
| 3537 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3538 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 3539 |
|
| MarpaX_ESLIF_JSON_Encoder_t *MarpaX_ESLIF_JSON_Encoderp; |
| 3540 |
|
| marpaESLIFGrammar_t *marpaESLIFGrammarp; |
| 3541 |
0 |
| short strictb = 1; |
| 3542 |
|
| |
| 3543 |
0 |
▶ | if(items > 2) { |
Branch: 1 branch
| Branch | True | False | Total |
| if(items > 2) { |
0 |
0 |
0 |
|
| 3544 |
0 |
| strictb = SvTRUE(ST(2)) ? 1 : 0; |
| 3545 |
|
| } |
| 3546 |
|
| |
| 3547 |
0 |
| Newx(MarpaX_ESLIF_JSON_Encoderp, 1, MarpaX_ESLIF_JSON_Encoder_t); |
| 3548 |
0 |
| marpaESLIFPerl_grammarContextInitv(aTHX_ p, MarpaX_ESLIFp, MarpaX_ESLIF_JSON_Encoderp, &(MarpaX_ESLIFp->constants)); |
| 3549 |
|
| |
| 3550 |
0 |
| marpaESLIFGrammarp = marpaESLIFJSON_encode_newp(marpaESLIFp, strictb); |
| 3551 |
0 |
▶ | if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
0 |
0 |
0 |
|
| 3552 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFJSON_encode_newp failure, %s", strerror(errno)); |
| 3553 |
|
| } |
| 3554 |
0 |
| MarpaX_ESLIF_JSON_Encoderp->marpaESLIFGrammarp = marpaESLIFGrammarp; |
| 3555 |
|
| |
| 3556 |
0 |
▶ | RETVAL = MarpaX_ESLIF_JSON_Encoderp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_JSON_Encoderp; |
0 |
0 |
0 |
|
| 3557 |
|
| OUTPUT: |
| 3558 |
|
| RETVAL |
| 3559 |
|
| |
| 3560 |
|
| =for comment |
| 3561 |
|
| /* ----------------------------------------------------------------------- */ |
| 3562 |
|
| /* MarpaX::ESLIF::JSON::Encoder::encode */ |
| 3563 |
|
| /* ----------------------------------------------------------------------- */ |
| 3564 |
|
| =cut |
| 3565 |
|
| |
| 3566 |
|
| SV * |
| 3567 |
|
| encode(p, Perl_inputp) |
| 3568 |
|
| SV *p; |
| 3569 |
|
| SV *Perl_inputp; |
| 3570 |
|
| PREINIT: |
| 3571 |
|
| static const char *funcs = "MarpaX::ESLIF::JSON::Encoder::encode"; |
| 3572 |
|
| CODE: |
| 3573 |
0 |
| MarpaX_ESLIF_JSON_Encoder_t *MarpaX_ESLIF_JSON_Encoderp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3574 |
|
| marpaESLIFValueOption_t marpaESLIFValueOption; |
| 3575 |
|
| MarpaX_ESLIF_Value_t marpaESLIFValueContext; |
| 3576 |
|
| marpaESLIFValueResult_t marpaESLIFValueResult; |
| 3577 |
|
| SV *svp; |
| 3578 |
|
| |
| 3579 |
0 |
| marpaESLIFPerl_valueContextInitv(aTHX_ p, NULL /* SV of value interface */, &marpaESLIFValueContext, MarpaX_ESLIF_JSON_Encoderp->constantsp, MarpaX_ESLIF_JSON_Encoderp->MarpaX_ESLIFp); |
| 3580 |
|
| |
| 3581 |
0 |
| marpaESLIFValueOption.userDatavp = &marpaESLIFValueContext; |
| 3582 |
0 |
| marpaESLIFValueOption.importerp = marpaESLIFPerl_valueImportb; |
| 3583 |
|
| |
| 3584 |
|
| /* Create a marpaESLIFValueResult from Perl_inputp */ |
| 3585 |
0 |
| marpaESLIFPerl_stack_setv(aTHX_ marpaESLIFGrammar_eslifp(MarpaX_ESLIF_JSON_Encoderp->marpaESLIFGrammarp), NULL /* marpaESLIFValuep */, -1 /* resulti */, Perl_inputp, &marpaESLIFValueResult, 1 /* incb */, MarpaX_ESLIF_JSON_Encoderp->constantsp); |
| 3586 |
0 |
▶ | if (UNLIKELY(! marpaESLIFJSON_encodeb(MarpaX_ESLIF_JSON_Encoderp->marpaESLIFGrammarp, &marpaESLIFValueResult, &marpaESLIFValueOption))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFJSON_encodeb(MarpaX_ESLIF_JSON_Encoderp->marpaESLIFGrammarp, &marpaESLIFValueResult, &marpaESLIFValueOption))) { |
0 |
0 |
0 |
|
| 3587 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ &marpaESLIFValueContext, 1 /* onStackb */); |
| 3588 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFJSON_encodeb failure"); |
| 3589 |
|
| } |
| 3590 |
|
| |
| 3591 |
|
| /* Propagate the result to Perl */ |
| 3592 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 3593 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp)); |
| 3594 |
|
| } |
| 3595 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(marpaESLIFValueContext.internalStackp); |
| 3596 |
|
| |
| 3597 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ &marpaESLIFValueContext, 1 /* onStackb */); |
| 3598 |
|
| |
| 3599 |
0 |
| RETVAL = svp; |
| 3600 |
|
| OUTPUT: |
| 3601 |
|
| RETVAL |
| 3602 |
|
| |
| 3603 |
|
| =for comment |
| 3604 |
|
| /* ======================================================================= */ |
| 3605 |
|
| /* MarpaX::ESLIF::JSON::Decoder */ |
| 3606 |
|
| /* ======================================================================= */ |
| 3607 |
|
| =cut |
| 3608 |
|
| |
| 3609 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::JSON::Decoder |
| 3610 |
|
| |
| 3611 |
|
| PROTOTYPES: ENABLE |
| 3612 |
|
| |
| 3613 |
|
| =for comment |
| 3614 |
|
| /* ----------------------------------------------------------------------- */ |
| 3615 |
|
| /* MarpaX::ESLIF::JSON::Decoder::allocate */ |
| 3616 |
|
| /* ----------------------------------------------------------------------- */ |
| 3617 |
|
| =cut |
| 3618 |
|
| |
| 3619 |
|
| void * |
| 3620 |
|
| allocate(Perl_packagep, p, ...) |
| 3621 |
|
| SV *Perl_packagep; |
| 3622 |
|
| SV *p; |
| 3623 |
|
| PREINIT: |
| 3624 |
|
| static const char *funcs = "MarpaX::ESLIF::JSON::Decoder::allocate"; |
| 3625 |
|
| CODE: |
| 3626 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3627 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 3628 |
|
| MarpaX_ESLIF_JSON_Decoder_t *MarpaX_ESLIF_JSON_Decoderp; |
| 3629 |
|
| marpaESLIFGrammar_t *marpaESLIFGrammarp; |
| 3630 |
0 |
| short strictb = 1; |
| 3631 |
|
| |
| 3632 |
0 |
▶ | if(items > 2) { |
Branch: 1 branch
| Branch | True | False | Total |
| if(items > 2) { |
0 |
0 |
0 |
|
| 3633 |
0 |
| strictb = SvTRUE(ST(2)) ? 1 : 0; |
| 3634 |
|
| } |
| 3635 |
|
| |
| 3636 |
0 |
| Newx(MarpaX_ESLIF_JSON_Decoderp, 1, MarpaX_ESLIF_JSON_Decoder_t); |
| 3637 |
0 |
| marpaESLIFPerl_grammarContextInitv(aTHX_ p, MarpaX_ESLIFp, MarpaX_ESLIF_JSON_Decoderp, &(MarpaX_ESLIFp->constants)); |
| 3638 |
|
| |
| 3639 |
0 |
| marpaESLIFGrammarp = marpaESLIFJSON_decode_newp(marpaESLIFp, strictb); |
| 3640 |
0 |
▶ | if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
0 |
0 |
0 |
|
| 3641 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFJSON_decode_newp failure, %s", strerror(errno)); |
| 3642 |
|
| } |
| 3643 |
0 |
| MarpaX_ESLIF_JSON_Decoderp->marpaESLIFGrammarp = marpaESLIFGrammarp; |
| 3644 |
|
| |
| 3645 |
0 |
▶ | RETVAL = MarpaX_ESLIF_JSON_Decoderp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_JSON_Decoderp; |
0 |
0 |
0 |
|
| 3646 |
|
| OUTPUT: |
| 3647 |
|
| RETVAL |
| 3648 |
|
| |
| 3649 |
|
| =for comment |
| 3650 |
|
| /* ----------------------------------------------------------------------- */ |
| 3651 |
|
| /* MarpaX::ESLIF::JSON::Decoder::_decode */ |
| 3652 |
|
| /* ----------------------------------------------------------------------- */ |
| 3653 |
|
| =cut |
| 3654 |
|
| |
| 3655 |
|
| SV * |
| 3656 |
|
| _decode(p, Perl_recognizerInterfacep, Perl_disallowDupkeysp, Perl_maxDepthp, Perl_noReplacementCharacterp) |
| 3657 |
|
| SV *p; |
| 3658 |
|
| SV *Perl_recognizerInterfacep; |
| 3659 |
|
| SV *Perl_disallowDupkeysp; |
| 3660 |
|
| SV *Perl_maxDepthp; |
| 3661 |
|
| SV *Perl_noReplacementCharacterp; |
| 3662 |
|
| PREINIT: |
| 3663 |
|
| static const char *funcs = "MarpaX::ESLIF::JSON::Decoder::_decode"; |
| 3664 |
|
| CODE: |
| 3665 |
0 |
| MarpaX_ESLIF_JSON_Decoder_t *MarpaX_ESLIF_JSON_Decoderp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3666 |
|
| marpaESLIFValueOption_t marpaESLIFValueOption; |
| 3667 |
|
| MarpaX_ESLIF_Value_t marpaESLIFValueContext; |
| 3668 |
|
| MarpaX_ESLIF_Recognizer_t marpaESLIFRecognizerContext; |
| 3669 |
|
| marpaESLIFJSONDecodeOption_t marpaESLIFJSONDecodeOption; |
| 3670 |
|
| marpaESLIFRecognizerOption_t marpaESLIFRecognizerOption; |
| 3671 |
|
| SV *svp; |
| 3672 |
|
| int typei; |
| 3673 |
0 |
| size_t maxDepthl = 0; |
| 3674 |
|
| |
| 3675 |
|
| /* |
| 3676 |
|
| CALLGRIND_START_INSTRUMENTATION; |
| 3677 |
|
| CALLGRIND_TOGGLE_COLLECT; |
| 3678 |
|
| */ |
| 3679 |
|
| |
| 3680 |
0 |
| marpaESLIFPerl_recognizerContextInitv(aTHX_ MarpaX_ESLIF_JSON_Decoderp, p, Perl_recognizerInterfacep, &marpaESLIFRecognizerContext, NULL, MarpaX_ESLIF_JSON_Decoderp->constantsp, MarpaX_ESLIF_JSON_Decoderp->MarpaX_ESLIFp); |
| 3681 |
0 |
| marpaESLIFPerl_valueContextInitv(aTHX_ p, NULL /* SV of value interface */, &marpaESLIFValueContext, MarpaX_ESLIF_JSON_Decoderp->constantsp, MarpaX_ESLIF_JSON_Decoderp->MarpaX_ESLIFp); |
| 3682 |
|
| |
| 3683 |
|
| /* maxDepth option verification */ |
| 3684 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ Perl_maxDepthp); |
| 3685 |
0 |
▶ | if ((typei != SCALAR) || (!SvIOK(Perl_maxDepthp))) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((typei != SCALAR) || (!SvIOK(Perl_maxDepthp))) { |
0 |
0 |
0 |
| if ((typei != SCALAR) || (!SvIOK(Perl_maxDepthp))) { |
0 |
0 |
0 |
|
| 3686 |
|
| /* This is an error unless it is undef */ |
| 3687 |
0 |
▶ | if (! marpaESLIFPerl_is_undef(aTHX_ Perl_maxDepthp, typei)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFPerl_is_undef(aTHX_ Perl_maxDepthp, typei)) { |
0 |
0 |
0 |
|
| 3688 |
0 |
| MARPAESLIFPERL_CROAK("maxDepth option must be an integer scalar or undef"); |
| 3689 |
|
| } |
| 3690 |
|
| } else { |
| 3691 |
0 |
| maxDepthl = (size_t) SvIVX(Perl_maxDepthp); |
| 3692 |
|
| } |
| 3693 |
0 |
| marpaESLIFJSONDecodeOption.disallowDupkeysb = SvTRUE(Perl_disallowDupkeysp) ? 1 : 0; |
| 3694 |
0 |
| marpaESLIFJSONDecodeOption.maxDepthl = maxDepthl; |
| 3695 |
0 |
| marpaESLIFJSONDecodeOption.noReplacementCharacterb = SvTRUE(Perl_noReplacementCharacterp) ? 1 : 0; |
| 3696 |
0 |
| marpaESLIFJSONDecodeOption.positiveInfinityActionp = marpaESLIFPerl_JSONDecodePositiveInfinityAction; |
| 3697 |
0 |
| marpaESLIFJSONDecodeOption.negativeInfinityActionp = marpaESLIFPerl_JSONDecodeNegativeInfinityAction; |
| 3698 |
0 |
| marpaESLIFJSONDecodeOption.positiveNanActionp = marpaESLIFPerl_JSONDecodePositiveNanAction; |
| 3699 |
0 |
| marpaESLIFJSONDecodeOption.negativeNanActionp = marpaESLIFPerl_JSONDecodeNegativeNanAction; |
| 3700 |
0 |
| marpaESLIFJSONDecodeOption.numberActionp = marpaESLIFPerl_JSONDecodeNumberAction; |
| 3701 |
|
| |
| 3702 |
0 |
| marpaESLIFRecognizerOption.userDatavp = &marpaESLIFRecognizerContext; |
| 3703 |
0 |
| marpaESLIFRecognizerOption.readerCallbackp = marpaESLIFPerl_readerCallbackb; |
| 3704 |
0 |
| marpaESLIFRecognizerOption.disableThresholdb = 1; |
| 3705 |
0 |
| marpaESLIFRecognizerOption.exhaustedb = 0; |
| 3706 |
0 |
| marpaESLIFRecognizerOption.newlineb = 1; |
| 3707 |
0 |
| marpaESLIFRecognizerOption.trackb = 0; |
| 3708 |
0 |
| marpaESLIFRecognizerOption.bufsizl = 0; /* Recommended value */ |
| 3709 |
0 |
| marpaESLIFRecognizerOption.buftriggerperci = 50; /* Recommended value */ |
| 3710 |
0 |
| marpaESLIFRecognizerOption.bufaddperci = 50; /* Recommended value */ |
| 3711 |
0 |
| marpaESLIFRecognizerOption.ifActionResolverp = NULL; |
| 3712 |
0 |
| marpaESLIFRecognizerOption.eventActionResolverp = NULL; |
| 3713 |
0 |
| marpaESLIFRecognizerOption.regexActionResolverp = NULL; |
| 3714 |
0 |
| marpaESLIFRecognizerOption.generatorActionResolverp = NULL; |
| 3715 |
0 |
| marpaESLIFRecognizerOption.importerp = NULL; |
| 3716 |
|
| |
| 3717 |
0 |
| marpaESLIFValueOption.userDatavp = &marpaESLIFValueContext; |
| 3718 |
0 |
| marpaESLIFValueOption.importerp = marpaESLIFPerl_valueImportb; |
| 3719 |
|
| |
| 3720 |
0 |
▶ | if (! marpaESLIFJSON_decodeb(MarpaX_ESLIF_JSON_Decoderp->marpaESLIFGrammarp, &marpaESLIFJSONDecodeOption, &marpaESLIFRecognizerOption, &marpaESLIFValueOption)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFJSON_decodeb(MarpaX_ESLIF_JSON_Decoderp->marpaESLIFGrammarp, &marpaESLIFJSONDecodeOption, &marpaESLIFRecognizerOption, &marpaESLIFValueOption)) { |
0 |
0 |
0 |
|
| 3721 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFJSON_decodeb failure"); |
| 3722 |
|
| } |
| 3723 |
|
| |
| 3724 |
|
| /* Propagate the result to Perl */ |
| 3725 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 3726 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp)); |
| 3727 |
|
| } |
| 3728 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(marpaESLIFValueContext.internalStackp); |
| 3729 |
|
| |
| 3730 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ &marpaESLIFValueContext, 1 /* onStackb */); |
| 3731 |
0 |
| marpaESLIFPerl_recognizerContextFreev(aTHX_ &marpaESLIFRecognizerContext, 1 /* onStackb */); |
| 3732 |
|
| |
| 3733 |
0 |
| RETVAL = svp; |
| 3734 |
|
| /* |
| 3735 |
|
| CALLGRIND_TOGGLE_COLLECT; |
| 3736 |
|
| CALLGRIND_STOP_INSTRUMENTATION; |
| 3737 |
|
| */ |
| 3738 |
|
| OUTPUT: |
| 3739 |
|
| RETVAL |
| 3740 |
|
| |
| 3741 |
|
| =for comment |
| 3742 |
|
| /* ======================================================================= */ |
| 3743 |
|
| /* MarpaX::ESLIF::Grammar */ |
| 3744 |
|
| /* ======================================================================= */ |
| 3745 |
|
| =cut |
| 3746 |
|
| |
| 3747 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Grammar |
| 3748 |
|
| |
| 3749 |
|
| PROTOTYPES: ENABLE |
| 3750 |
|
| |
| 3751 |
|
| =for comment |
| 3752 |
|
| /* ----------------------------------------------------------------------- */ |
| 3753 |
|
| /* MarpaX::ESLIF::Grammar::allocate */ |
| 3754 |
|
| /* ----------------------------------------------------------------------- */ |
| 3755 |
|
| =cut |
| 3756 |
|
| |
| 3757 |
|
| void * |
| 3758 |
|
| allocate(Perl_packagep, p, Perl_grammarp, ...) |
| 3759 |
|
| SV *Perl_packagep; |
| 3760 |
|
| SV *p; |
| 3761 |
|
| SV *Perl_grammarp; |
| 3762 |
|
| PREINIT: |
| 3763 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::allocate"; |
| 3764 |
|
| CODE: |
| 3765 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3766 |
0 |
| SV *Perl_encodingp = &PL_sv_undef; |
| 3767 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 3768 |
0 |
| void *string1s = NULL; |
| 3769 |
0 |
| void *string2s = NULL; |
| 3770 |
0 |
| void *string3s = NULL; |
| 3771 |
|
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp; |
| 3772 |
|
| marpaESLIFGrammar_t *marpaESLIFGrammarp; |
| 3773 |
|
| marpaESLIFGrammarOption_t marpaESLIFGrammarOption; |
| 3774 |
|
| |
| 3775 |
0 |
| marpaESLIFPerl_paramIsGrammarv(aTHX_ Perl_grammarp); |
| 3776 |
0 |
▶ | if (items > 3) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items > 3) { |
0 |
0 |
0 |
|
| 3777 |
0 |
| marpaESLIFPerl_paramIsEncodingv(aTHX_ Perl_encodingp = ST(3)); |
| 3778 |
0 |
| string1s = marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, |
| 3779 |
|
| Perl_encodingp, |
| 3780 |
|
| &(marpaESLIFGrammarOption.encodings), |
| 3781 |
|
| &(marpaESLIFGrammarOption.encodingl), |
| 3782 |
|
| 1, /* encodingInformationb */ |
| 3783 |
|
| NULL, /* characterStreambp */ |
| 3784 |
|
| NULL, /* encodingsp */ |
| 3785 |
|
| NULL, /* encodinglp */ |
| 3786 |
|
| 1, /* warnIsFatalb */ |
| 3787 |
|
| 0, /* marpaESLIFStringb */ |
| 3788 |
|
| &(MarpaX_ESLIFp->constants)); |
| 3789 |
0 |
| string2s = marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, |
| 3790 |
|
| Perl_grammarp, |
| 3791 |
|
| (char **) &(marpaESLIFGrammarOption.bytep), |
| 3792 |
|
| &(marpaESLIFGrammarOption.bytel), |
| 3793 |
|
| 0, /* encodingInformationb */ |
| 3794 |
|
| NULL, /* characterStreambp */ |
| 3795 |
|
| NULL, /* encodingsp */ |
| 3796 |
|
| NULL, /* encodinglp */ |
| 3797 |
|
| 1, /* warnIsFatalb */ |
| 3798 |
|
| 0, /* marpaESLIFStringb */ |
| 3799 |
|
| &(MarpaX_ESLIFp->constants)); |
| 3800 |
|
| } else { |
| 3801 |
0 |
| string3s = marpaESLIFPerl_sv2byte(aTHX_ marpaESLIFp, |
| 3802 |
|
| Perl_grammarp, |
| 3803 |
|
| (char **) &(marpaESLIFGrammarOption.bytep), |
| 3804 |
|
| &(marpaESLIFGrammarOption.bytel), |
| 3805 |
|
| 1, /* encodingInformationb */ |
| 3806 |
|
| NULL, /* characterStreambp */ |
| 3807 |
|
| &(marpaESLIFGrammarOption.encodings), |
| 3808 |
|
| &(marpaESLIFGrammarOption.encodingl), |
| 3809 |
|
| 1, /* warnIsFatalb */ |
| 3810 |
|
| 0, /* marpaESLIFStringb */ |
| 3811 |
|
| &(MarpaX_ESLIFp->constants)); |
| 3812 |
|
| } |
| 3813 |
|
| |
| 3814 |
0 |
| Newx(MarpaX_ESLIF_Grammarp, 1, MarpaX_ESLIF_Grammar_t); |
| 3815 |
0 |
| marpaESLIFPerl_grammarContextInitv(aTHX_ p, MarpaX_ESLIFp, MarpaX_ESLIF_Grammarp, &(MarpaX_ESLIFp->constants)); |
| 3816 |
|
| |
| 3817 |
0 |
| marpaESLIFGrammarp = marpaESLIFGrammar_newp(marpaESLIFp, &marpaESLIFGrammarOption); |
| 3818 |
0 |
▶ | if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFGrammarp == NULL)) { |
0 |
0 |
0 |
|
| 3819 |
0 |
| int save_errno = errno; |
| 3820 |
0 |
| marpaESLIFPerl_grammarContextFreev(aTHX_ MarpaX_ESLIF_Grammarp); |
| 3821 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFGrammar_newp failure, %s", strerror(save_errno)); |
| 3822 |
|
| } |
| 3823 |
0 |
| MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp = marpaESLIFGrammarp; |
| 3824 |
|
| |
| 3825 |
0 |
▶ | if (string1s != NULL) { Safefree(string1s); } |
Branch: 1 branch
| Branch | True | False | Total |
| if (string1s != NULL) { Safefree(string1s); } |
0 |
0 |
0 |
|
| 3826 |
0 |
▶ | if (string2s != NULL) { Safefree(string2s); } |
Branch: 1 branch
| Branch | True | False | Total |
| if (string2s != NULL) { Safefree(string2s); } |
0 |
0 |
0 |
|
| 3827 |
0 |
▶ | if (string3s != NULL) { Safefree(string3s); } |
Branch: 1 branch
| Branch | True | False | Total |
| if (string3s != NULL) { Safefree(string3s); } |
0 |
0 |
0 |
|
| 3828 |
|
| |
| 3829 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Grammarp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Grammarp; |
0 |
0 |
0 |
|
| 3830 |
|
| OUTPUT: |
| 3831 |
|
| RETVAL |
| 3832 |
|
| |
| 3833 |
|
| =for comment |
| 3834 |
|
| /* ----------------------------------------------------------------------- */ |
| 3835 |
|
| /* MarpaX::ESLIF::Grammar::dispose */ |
| 3836 |
|
| /* ----------------------------------------------------------------------- */ |
| 3837 |
|
| =cut |
| 3838 |
|
| |
| 3839 |
|
| void |
| 3840 |
|
| dispose(p) |
| 3841 |
|
| SV *p; |
| 3842 |
|
| PREINIT: |
| 3843 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::dispose"; |
| 3844 |
|
| CODE: |
| 3845 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3846 |
|
| |
| 3847 |
0 |
| marpaESLIFPerl_grammarContextFreev(aTHX_ MarpaX_ESLIF_Grammarp); |
| 3848 |
|
| |
| 3849 |
|
| =for comment |
| 3850 |
|
| /* ----------------------------------------------------------------------- */ |
| 3851 |
|
| /* MarpaX::ESLIF::Grammar::ngrammar */ |
| 3852 |
|
| /* ----------------------------------------------------------------------- */ |
| 3853 |
|
| =cut |
| 3854 |
|
| |
| 3855 |
|
| IV |
| 3856 |
|
| ngrammar(p) |
| 3857 |
|
| SV *p; |
| 3858 |
|
| PREINIT: |
| 3859 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ngrammar"; |
| 3860 |
|
| CODE: |
| 3861 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3862 |
|
| int ngrammari; |
| 3863 |
|
| |
| 3864 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ngrammarib(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ngrammari))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ngrammarib(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ngrammari))) { |
0 |
0 |
0 |
|
| 3865 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ngrammarib failure"); |
| 3866 |
|
| } |
| 3867 |
|
| |
| 3868 |
0 |
▶ | RETVAL = (IV) ngrammari; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (IV) ngrammari; |
0 |
0 |
0 |
|
| 3869 |
|
| OUTPUT: |
| 3870 |
|
| RETVAL |
| 3871 |
|
| |
| 3872 |
|
| =for comment |
| 3873 |
|
| /* ----------------------------------------------------------------------- */ |
| 3874 |
|
| /* MarpaX::ESLIF::Grammar::currentLevel */ |
| 3875 |
|
| /* ----------------------------------------------------------------------- */ |
| 3876 |
|
| =cut |
| 3877 |
|
| |
| 3878 |
|
| IV |
| 3879 |
|
| currentLevel(p) |
| 3880 |
|
| SV *p; |
| 3881 |
|
| PREINIT: |
| 3882 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentLevel"; |
| 3883 |
|
| CODE: |
| 3884 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3885 |
|
| int leveli; |
| 3886 |
|
| |
| 3887 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammar_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammar_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &leveli, NULL))) { |
0 |
0 |
0 |
|
| 3888 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammar_currentb failure"); |
| 3889 |
|
| } |
| 3890 |
0 |
▶ | RETVAL = (IV) leveli; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (IV) leveli; |
0 |
0 |
0 |
|
| 3891 |
|
| OUTPUT: |
| 3892 |
|
| RETVAL |
| 3893 |
|
| |
| 3894 |
|
| =for comment |
| 3895 |
|
| /* ----------------------------------------------------------------------- */ |
| 3896 |
|
| /* MarpaX::ESLIF::Grammar::currentDescription */ |
| 3897 |
|
| /* ----------------------------------------------------------------------- */ |
| 3898 |
|
| =cut |
| 3899 |
|
| |
| 3900 |
|
| SV * |
| 3901 |
|
| currentDescription(p) |
| 3902 |
|
| SV *p; |
| 3903 |
|
| PREINIT: |
| 3904 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentDescription"; |
| 3905 |
|
| CODE: |
| 3906 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3907 |
|
| marpaESLIFString_t *descp; |
| 3908 |
|
| SV *svp; |
| 3909 |
|
| |
| 3910 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammar_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, NULL, &descp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammar_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, NULL, &descp))) { |
0 |
0 |
0 |
|
| 3911 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammar_currentb failure"); |
| 3912 |
|
| } |
| 3913 |
|
| /* It is in the same encoding as original grammar */ |
| 3914 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(descp->bytep, descp->bytel); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(descp->bytep, descp->bytel); |
0 |
0 |
0 |
|
| 3915 |
0 |
| RETVAL = svp; |
| 3916 |
|
| OUTPUT: |
| 3917 |
|
| RETVAL |
| 3918 |
|
| |
| 3919 |
|
| =for comment |
| 3920 |
|
| /* ----------------------------------------------------------------------- */ |
| 3921 |
|
| /* MarpaX::ESLIF::Grammar::descriptionByLevel */ |
| 3922 |
|
| /* ----------------------------------------------------------------------- */ |
| 3923 |
|
| =cut |
| 3924 |
|
| |
| 3925 |
|
| SV * |
| 3926 |
|
| descriptionByLevel(p, Perl_leveli) |
| 3927 |
|
| SV *p; |
| 3928 |
|
| IV Perl_leveli; |
| 3929 |
|
| PREINIT: |
| 3930 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::descriptionByLevel"; |
| 3931 |
|
| CODE: |
| 3932 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3933 |
|
| marpaESLIFString_t *descp; |
| 3934 |
|
| SV *svp; |
| 3935 |
|
| |
| 3936 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammar_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_leveli, NULL, NULL, &descp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammar_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_leveli, NULL, NULL, &descp))) { |
0 |
0 |
0 |
|
| 3937 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammar_by_levelb failure"); |
| 3938 |
|
| } |
| 3939 |
|
| /* It is in the same encoding as original grammar */ |
| 3940 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(descp->bytep, descp->bytel); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(descp->bytep, descp->bytel); |
0 |
0 |
0 |
|
| 3941 |
0 |
| RETVAL = svp; |
| 3942 |
|
| OUTPUT: |
| 3943 |
|
| RETVAL |
| 3944 |
|
| |
| 3945 |
|
| =for comment |
| 3946 |
|
| /* ----------------------------------------------------------------------- */ |
| 3947 |
|
| /* MarpaX::ESLIF::Grammar::currentRuleIds */ |
| 3948 |
|
| /* ----------------------------------------------------------------------- */ |
| 3949 |
|
| =cut |
| 3950 |
|
| |
| 3951 |
|
| AV * |
| 3952 |
|
| currentRuleIds(p) |
| 3953 |
|
| SV *p; |
| 3954 |
|
| PREINIT: |
| 3955 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentRuleIds"; |
| 3956 |
|
| CODE: |
| 3957 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3958 |
|
| int *ruleip; |
| 3959 |
|
| size_t rulel; |
| 3960 |
|
| size_t i; |
| 3961 |
|
| AV *av; |
| 3962 |
|
| |
| 3963 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_rulearray_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ruleip, &rulel))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_rulearray_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ruleip, &rulel))) { |
0 |
0 |
0 |
|
| 3964 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_rulearray_currentb failure"); |
| 3965 |
|
| } |
| 3966 |
0 |
▶ | if (UNLIKELY(rulel <= 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(rulel <= 0)) { |
0 |
0 |
0 |
|
| 3967 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_rulearray_currentb returned no rule"); |
| 3968 |
|
| } |
| 3969 |
0 |
| av = newAV(); |
| 3970 |
0 |
▶ | for (i = 0; i < rulel; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < rulel; i++) { |
0 |
0 |
0 |
|
| 3971 |
0 |
| av_push(av, newSViv((IV) ruleip[i])); |
| 3972 |
|
| } |
| 3973 |
0 |
| RETVAL = av; |
| 3974 |
|
| OUTPUT: |
| 3975 |
|
| RETVAL |
| 3976 |
|
| |
| 3977 |
|
| =for comment |
| 3978 |
|
| /* ----------------------------------------------------------------------- */ |
| 3979 |
|
| /* MarpaX::ESLIF::Grammar::ruleIdsByLevel */ |
| 3980 |
|
| /* ----------------------------------------------------------------------- */ |
| 3981 |
|
| =cut |
| 3982 |
|
| |
| 3983 |
|
| AV * |
| 3984 |
|
| ruleIdsByLevel(p, Perl_leveli) |
| 3985 |
|
| SV *p; |
| 3986 |
|
| IV Perl_leveli; |
| 3987 |
|
| PREINIT: |
| 3988 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ruleIdsByLevel"; |
| 3989 |
|
| CODE: |
| 3990 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 3991 |
|
| int *ruleip; |
| 3992 |
|
| size_t rulel; |
| 3993 |
|
| size_t i; |
| 3994 |
|
| AV *av; |
| 3995 |
|
| |
| 3996 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_rulearray_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ruleip, &rulel, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_rulearray_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &ruleip, &rulel, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 3997 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_rulearray_by_levelb failure"); |
| 3998 |
|
| } |
| 3999 |
0 |
▶ | if (UNLIKELY(rulel <= 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(rulel <= 0)) { |
0 |
0 |
0 |
|
| 4000 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_rulearray_by_levelb returned no rule"); |
| 4001 |
|
| } |
| 4002 |
0 |
| av = newAV(); |
| 4003 |
0 |
▶ | for (i = 0; i < rulel; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < rulel; i++) { |
0 |
0 |
0 |
|
| 4004 |
0 |
| av_push(av, newSViv((IV) ruleip[i])); |
| 4005 |
|
| } |
| 4006 |
0 |
| RETVAL = av; |
| 4007 |
|
| OUTPUT: |
| 4008 |
|
| RETVAL |
| 4009 |
|
| |
| 4010 |
|
| =for comment |
| 4011 |
|
| /* ----------------------------------------------------------------------- */ |
| 4012 |
|
| /* MarpaX::ESLIF::Grammar::currentSymbolIds */ |
| 4013 |
|
| /* ----------------------------------------------------------------------- */ |
| 4014 |
|
| =cut |
| 4015 |
|
| |
| 4016 |
|
| AV * |
| 4017 |
|
| currentSymbolIds(p) |
| 4018 |
|
| SV *p; |
| 4019 |
|
| PREINIT: |
| 4020 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentSymbolIds"; |
| 4021 |
|
| CODE: |
| 4022 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4023 |
|
| int *symbolip; |
| 4024 |
|
| size_t symboll; |
| 4025 |
|
| size_t i; |
| 4026 |
|
| AV *av; |
| 4027 |
|
| |
| 4028 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symbolarray_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &symbolip, &symboll))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symbolarray_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &symbolip, &symboll))) { |
0 |
0 |
0 |
|
| 4029 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolarray_currentb failure"); |
| 4030 |
|
| } |
| 4031 |
0 |
▶ | if (UNLIKELY(symboll <= 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(symboll <= 0)) { |
0 |
0 |
0 |
|
| 4032 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolarray_currentb returned no symbol"); |
| 4033 |
|
| } |
| 4034 |
0 |
| av = newAV(); |
| 4035 |
0 |
▶ | for (i = 0; i < symboll; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < symboll; i++) { |
0 |
0 |
0 |
|
| 4036 |
0 |
| av_push(av, newSViv((IV) symbolip[i])); |
| 4037 |
|
| } |
| 4038 |
0 |
| RETVAL = av; |
| 4039 |
|
| OUTPUT: |
| 4040 |
|
| RETVAL |
| 4041 |
|
| |
| 4042 |
|
| =for comment |
| 4043 |
|
| /* ----------------------------------------------------------------------- */ |
| 4044 |
|
| /* MarpaX::ESLIF::Grammar::symbolIdsByLevel */ |
| 4045 |
|
| /* ----------------------------------------------------------------------- */ |
| 4046 |
|
| =cut |
| 4047 |
|
| |
| 4048 |
|
| AV * |
| 4049 |
|
| symbolIdsByLevel(p, Perl_leveli) |
| 4050 |
|
| SV *p; |
| 4051 |
|
| IV Perl_leveli; |
| 4052 |
|
| PREINIT: |
| 4053 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::symbolIdsByLevel"; |
| 4054 |
|
| CODE: |
| 4055 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4056 |
|
| int *symbolip; |
| 4057 |
|
| size_t symboll; |
| 4058 |
|
| size_t i; |
| 4059 |
|
| AV *av; |
| 4060 |
|
| |
| 4061 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symbolarray_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &symbolip, &symboll, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symbolarray_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &symbolip, &symboll, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 4062 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolarray_by_levelb failure"); |
| 4063 |
|
| } |
| 4064 |
0 |
▶ | if (UNLIKELY(symboll <= 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(symboll <= 0)) { |
0 |
0 |
0 |
|
| 4065 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolarray_by_levelb returned no symbol"); |
| 4066 |
|
| } |
| 4067 |
0 |
| av = newAV(); |
| 4068 |
0 |
▶ | for (i = 0; i < symboll; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < symboll; i++) { |
0 |
0 |
0 |
|
| 4069 |
0 |
| av_push(av, newSViv((IV) symbolip[i])); |
| 4070 |
|
| } |
| 4071 |
0 |
| RETVAL = av; |
| 4072 |
|
| OUTPUT: |
| 4073 |
|
| RETVAL |
| 4074 |
|
| |
| 4075 |
|
| =for comment |
| 4076 |
|
| /* ----------------------------------------------------------------------- */ |
| 4077 |
|
| /* MarpaX::ESLIF::Grammar::currentProperties */ |
| 4078 |
|
| /* ----------------------------------------------------------------------- */ |
| 4079 |
|
| =cut |
| 4080 |
|
| |
| 4081 |
|
| SV * |
| 4082 |
|
| currentProperties(p) |
| 4083 |
|
| SV *p; |
| 4084 |
|
| PREINIT: |
| 4085 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentProperties"; |
| 4086 |
|
| CODE: |
| 4087 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4088 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4089 |
|
| marpaESLIFGrammarProperty_t grammarProperty; |
| 4090 |
|
| AV *avp; |
| 4091 |
|
| |
| 4092 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammarproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &grammarProperty))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammarproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &grammarProperty))) { |
0 |
0 |
0 |
|
| 4093 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammarproperty_currentb failure"); |
| 4094 |
|
| } |
| 4095 |
|
| |
| 4096 |
0 |
| avp = newAV(); |
| 4097 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
|
| 4098 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
|
| 4099 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
|
| 4100 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
|
| 4101 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
|
| 4102 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
|
| 4103 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
|
| 4104 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
|
| 4105 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
|
| 4106 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
|
| 4107 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
|
| 4108 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
|
| 4109 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
|
| 4110 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
|
| 4111 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
|
| 4112 |
|
| |
| 4113 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4114 |
0 |
| av_undef(avp); |
| 4115 |
|
| OUTPUT: |
| 4116 |
|
| RETVAL |
| 4117 |
|
| |
| 4118 |
|
| =for comment |
| 4119 |
|
| /* ----------------------------------------------------------------------- */ |
| 4120 |
|
| /* MarpaX::ESLIF::Grammar::propertiesByLevel */ |
| 4121 |
|
| /* ----------------------------------------------------------------------- */ |
| 4122 |
|
| =cut |
| 4123 |
|
| |
| 4124 |
|
| SV * |
| 4125 |
|
| propertiesByLevel(p, Perl_leveli) |
| 4126 |
|
| SV *p; |
| 4127 |
|
| IV Perl_leveli; |
| 4128 |
|
| PREINIT: |
| 4129 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::propertiesByLevel"; |
| 4130 |
|
| CODE: |
| 4131 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4132 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4133 |
|
| marpaESLIFGrammarProperty_t grammarProperty; |
| 4134 |
|
| AV *avp; |
| 4135 |
|
| |
| 4136 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammarproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &grammarProperty, (int) Perl_leveli, NULL /* descp */))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammarproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &grammarProperty, (int) Perl_leveli, NULL /* descp */))) { |
0 |
0 |
0 |
|
| 4137 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammarproperty_by_levelb failure"); |
| 4138 |
|
| } |
| 4139 |
|
| |
| 4140 |
0 |
| avp = newAV(); |
| 4141 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "level", grammarProperty.leveli); |
0 |
0 |
0 |
|
| 4142 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "maxLevel", grammarProperty.maxLeveli); |
0 |
0 |
0 |
|
| 4143 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", grammarProperty.descp); |
0 |
0 |
0 |
|
| 4144 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "latm", grammarProperty.latmb); |
0 |
0 |
0 |
|
| 4145 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardIsFallback", grammarProperty.discardIsFallbackb); |
0 |
0 |
0 |
|
| 4146 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultSymbolAction", grammarProperty.defaultSymbolActionp); |
0 |
0 |
0 |
|
| 4147 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRuleAction", grammarProperty.defaultRuleActionp); |
0 |
0 |
0 |
|
| 4148 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultEventAction", grammarProperty.defaultEventActionp); |
0 |
0 |
0 |
|
| 4149 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "defaultRegexAction", grammarProperty.defaultRegexActionp); |
0 |
0 |
0 |
|
| 4150 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "startId", grammarProperty.starti); |
0 |
0 |
0 |
|
| 4151 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardId", grammarProperty.discardi); |
0 |
0 |
0 |
|
| 4152 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "symbolIds", grammarProperty.nsymboll, grammarProperty.symbolip); |
0 |
0 |
0 |
|
| 4153 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "ruleIds", grammarProperty.nrulel, grammarProperty.ruleip); |
0 |
0 |
0 |
|
| 4154 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "defaultEncoding", grammarProperty.defaultEncodings); |
0 |
0 |
0 |
|
| 4155 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "fallbackEncoding", grammarProperty.fallbackEncodings); |
0 |
0 |
0 |
|
| 4156 |
|
| |
| 4157 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4158 |
0 |
| av_undef(avp); |
| 4159 |
|
| OUTPUT: |
| 4160 |
|
| RETVAL |
| 4161 |
|
| |
| 4162 |
|
| =for comment |
| 4163 |
|
| /* ----------------------------------------------------------------------- */ |
| 4164 |
|
| /* MarpaX::ESLIF::Grammar::currentRuleProperties */ |
| 4165 |
|
| /* ----------------------------------------------------------------------- */ |
| 4166 |
|
| =cut |
| 4167 |
|
| |
| 4168 |
|
| SV * |
| 4169 |
|
| currentRuleProperties(p, Perl_rulei) |
| 4170 |
|
| SV *p; |
| 4171 |
|
| IV Perl_rulei; |
| 4172 |
|
| PREINIT: |
| 4173 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentRuleProperties"; |
| 4174 |
|
| CODE: |
| 4175 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4176 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4177 |
|
| marpaESLIFRuleProperty_t ruleProperty; |
| 4178 |
|
| AV *avp; |
| 4179 |
|
| |
| 4180 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruleproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleProperty))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruleproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleProperty))) { |
0 |
0 |
0 |
|
| 4181 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruleproperty_currentb failure"); |
| 4182 |
|
| } |
| 4183 |
|
| |
| 4184 |
0 |
| avp = newAV(); |
| 4185 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
|
| 4186 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
|
| 4187 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
|
| 4188 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
|
| 4189 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
|
| 4190 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
|
| 4191 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
|
| 4192 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
|
| 4193 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
|
| 4194 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
|
| 4195 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
|
| 4196 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
|
| 4197 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
|
| 4198 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
|
| 4199 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
|
| 4200 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
|
| 4201 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
|
| 4202 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
|
| 4203 |
|
| |
| 4204 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4205 |
0 |
| av_undef(avp); |
| 4206 |
|
| OUTPUT: |
| 4207 |
|
| RETVAL |
| 4208 |
|
| |
| 4209 |
|
| =for comment |
| 4210 |
|
| /* ----------------------------------------------------------------------- */ |
| 4211 |
|
| /* MarpaX::ESLIF::Grammar::rulePropertiesByLevel */ |
| 4212 |
|
| /* ----------------------------------------------------------------------- */ |
| 4213 |
|
| =cut |
| 4214 |
|
| |
| 4215 |
|
| SV * |
| 4216 |
|
| rulePropertiesByLevel(p, Perl_leveli, Perl_rulei) |
| 4217 |
|
| SV *p; |
| 4218 |
|
| IV Perl_leveli; |
| 4219 |
|
| IV Perl_rulei; |
| 4220 |
|
| PREINIT: |
| 4221 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::rulePropertiesByLevel"; |
| 4222 |
|
| CODE: |
| 4223 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4224 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4225 |
|
| marpaESLIFRuleProperty_t ruleProperty; |
| 4226 |
|
| AV *avp; |
| 4227 |
|
| |
| 4228 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruleproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleProperty, (int) Perl_leveli, NULL /* descp */))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruleproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleProperty, (int) Perl_leveli, NULL /* descp */))) { |
0 |
0 |
0 |
|
| 4229 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruleproperty_by_levelb failure"); |
| 4230 |
|
| } |
| 4231 |
|
| |
| 4232 |
0 |
| avp = newAV(); |
| 4233 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", ruleProperty.idi); |
0 |
0 |
0 |
|
| 4234 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", ruleProperty.descp); |
0 |
0 |
0 |
|
| 4235 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "show", ruleProperty.asciishows); |
0 |
0 |
0 |
|
| 4236 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhsId", ruleProperty.lhsi); |
0 |
0 |
0 |
|
| 4237 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "separatorId", ruleProperty.separatori); |
0 |
0 |
0 |
|
| 4238 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "rhsIds", ruleProperty.nrhsl, ruleProperty.rhsip); |
0 |
0 |
0 |
|
| 4239 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
Branch: 9 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IVARRAY (avp, "skipIndices", ruleProperty.nrhsl, ruleProperty.skipbp); |
0 |
0 |
0 |
|
| 4240 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "exceptionId", ruleProperty.exceptioni); |
0 |
0 |
0 |
|
| 4241 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "action", ruleProperty.actionp); |
0 |
0 |
0 |
|
| 4242 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", ruleProperty.discardEvents); |
0 |
0 |
0 |
|
| 4243 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", ruleProperty.discardEventb); |
0 |
0 |
0 |
|
| 4244 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "rank", ruleProperty.ranki); |
0 |
0 |
0 |
|
| 4245 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "nullRanksHigh", ruleProperty.nullRanksHighb); |
0 |
0 |
0 |
|
| 4246 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "sequence", ruleProperty.sequenceb); |
0 |
0 |
0 |
|
| 4247 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "proper", ruleProperty.properb); |
0 |
0 |
0 |
|
| 4248 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "minimum", ruleProperty.minimumi); |
0 |
0 |
0 |
|
| 4249 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", ruleProperty.propertyBitSet); |
0 |
0 |
0 |
|
| 4250 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "hideseparator", ruleProperty.hideseparatorb); |
0 |
0 |
0 |
|
| 4251 |
|
| |
| 4252 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Rule__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4253 |
0 |
| av_undef(avp); |
| 4254 |
|
| OUTPUT: |
| 4255 |
|
| RETVAL |
| 4256 |
|
| |
| 4257 |
|
| =for comment |
| 4258 |
|
| /* ----------------------------------------------------------------------- */ |
| 4259 |
|
| /* MarpaX::ESLIF::Grammar::currentSymbolProperties */ |
| 4260 |
|
| /* ----------------------------------------------------------------------- */ |
| 4261 |
|
| =cut |
| 4262 |
|
| |
| 4263 |
|
| SV * |
| 4264 |
|
| currentSymbolProperties(p, Perl_symboli) |
| 4265 |
|
| SV *p; |
| 4266 |
|
| IV Perl_symboli; |
| 4267 |
|
| PREINIT: |
| 4268 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::currentSymbolProperties"; |
| 4269 |
|
| CODE: |
| 4270 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4271 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4272 |
|
| marpaESLIFSymbolProperty_t symbolProperty; |
| 4273 |
|
| AV *avp; |
| 4274 |
|
| |
| 4275 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symbolproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symbolProperty))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symbolproperty_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symbolProperty))) { |
0 |
0 |
0 |
|
| 4276 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolproperty_currentb failure"); |
| 4277 |
|
| } |
| 4278 |
|
| |
| 4279 |
0 |
| avp = newAV(); |
| 4280 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
|
| 4281 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
|
| 4282 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
|
| 4283 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
|
| 4284 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
|
| 4285 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
|
| 4286 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
|
| 4287 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
|
| 4288 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
|
| 4289 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
|
| 4290 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
|
| 4291 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
|
| 4292 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
|
| 4293 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
|
| 4294 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
|
| 4295 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
|
| 4296 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
|
| 4297 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
|
| 4298 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
|
| 4299 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
|
| 4300 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
|
| 4301 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
|
| 4302 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
|
| 4303 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
|
| 4304 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
|
| 4305 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
|
| 4306 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
|
| 4307 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
|
| 4308 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
|
| 4309 |
|
| |
| 4310 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4311 |
0 |
| av_undef(avp); |
| 4312 |
|
| OUTPUT: |
| 4313 |
|
| RETVAL |
| 4314 |
|
| |
| 4315 |
|
| =for comment |
| 4316 |
|
| /* ----------------------------------------------------------------------- */ |
| 4317 |
|
| /* MarpaX::ESLIF::Grammar::symbolPropertiesByLevel */ |
| 4318 |
|
| /* ----------------------------------------------------------------------- */ |
| 4319 |
|
| =cut |
| 4320 |
|
| |
| 4321 |
|
| SV * |
| 4322 |
|
| symbolPropertiesByLevel(p, Perl_leveli, Perl_symboli) |
| 4323 |
|
| SV *p; |
| 4324 |
|
| IV Perl_leveli; |
| 4325 |
|
| IV Perl_symboli; |
| 4326 |
|
| PREINIT: |
| 4327 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::symbolPropertiesByLevel"; |
| 4328 |
|
| CODE: |
| 4329 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4330 |
0 |
| MarpaX_ESLIF_constants_t *constantsp = MarpaX_ESLIF_Grammarp->constantsp; |
| 4331 |
|
| marpaESLIFSymbolProperty_t symbolProperty; |
| 4332 |
|
| AV *avp; |
| 4333 |
|
| |
| 4334 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symbolproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symbolProperty, (int) Perl_leveli, NULL /* descp */))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symbolproperty_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symbolProperty, (int) Perl_leveli, NULL /* descp */))) { |
0 |
0 |
0 |
|
| 4335 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symbolproperty_by_levelb failure"); |
| 4336 |
|
| } |
| 4337 |
|
| |
| 4338 |
0 |
| avp = newAV(); |
| 4339 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "type", symbolProperty.type); |
0 |
0 |
0 |
|
| 4340 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "start", symbolProperty.startb); |
0 |
0 |
0 |
|
| 4341 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discard", symbolProperty.discardb); |
0 |
0 |
0 |
|
| 4342 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardRhs", symbolProperty.discardRhsb); |
0 |
0 |
0 |
|
| 4343 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lhs", symbolProperty.lhsb); |
0 |
0 |
0 |
|
| 4344 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "top", symbolProperty.topb); |
0 |
0 |
0 |
|
| 4345 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "id", symbolProperty.idi); |
0 |
0 |
0 |
|
| 4346 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
Branch: 8 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_STRING (avp, "description", symbolProperty.descp); |
0 |
0 |
0 |
|
| 4347 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventBefore", symbolProperty.eventBefores); |
0 |
0 |
0 |
|
| 4348 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBeforeInitialState", symbolProperty.eventBeforeb); |
0 |
0 |
0 |
|
| 4349 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventAfter", symbolProperty.eventAfters); |
0 |
0 |
0 |
|
| 4350 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventAfterInitialState", symbolProperty.eventAfterb); |
0 |
0 |
0 |
|
| 4351 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventPredicted", symbolProperty.eventPredicteds); |
0 |
0 |
0 |
|
| 4352 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventPredictedInitialState", symbolProperty.eventPredictedb); |
0 |
0 |
0 |
|
| 4353 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventNulled", symbolProperty.eventNulleds); |
0 |
0 |
0 |
|
| 4354 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventNulledInitialState", symbolProperty.eventNulledb); |
0 |
0 |
0 |
|
| 4355 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "eventCompleted", symbolProperty.eventCompleteds); |
0 |
0 |
0 |
|
| 4356 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventCompletedInitialState", symbolProperty.eventCompletedb); |
0 |
0 |
0 |
|
| 4357 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
Branch: 7 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ASCIISTRING(avp, "discardEvent", symbolProperty.discardEvents); |
0 |
0 |
0 |
|
| 4358 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "discardEventInitialState", symbolProperty.discardEventb); |
0 |
0 |
0 |
|
| 4359 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "lookupResolvedLeveli", symbolProperty.lookupResolvedLeveli); |
0 |
0 |
0 |
|
| 4360 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "priority", symbolProperty.priorityi); |
0 |
0 |
0 |
|
| 4361 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "nullableAction", symbolProperty.nullableActionp); |
0 |
0 |
0 |
|
| 4362 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "propertyBitSet", symbolProperty.propertyBitSet); |
0 |
0 |
0 |
|
| 4363 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_IV (avp, "eventBitSet", symbolProperty.eventBitSet); |
0 |
0 |
0 |
|
| 4364 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "symbolAction", symbolProperty.symbolActionp); |
0 |
0 |
0 |
|
| 4365 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "ifAction", symbolProperty.ifActionp); |
0 |
0 |
0 |
|
| 4366 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
Branch: 22 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_ACTION (avp, "generatorAction", symbolProperty.generatorActionp); |
0 |
0 |
0 |
|
| 4367 |
0 |
▶ | MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
Branch: 4 branches
| Branch | True | False | Total |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
| MARPAESLIFPERL_XV_STORE_YESNO (avp, "verbose", symbolProperty.verboseb); |
0 |
0 |
0 |
|
| 4368 |
|
| |
| 4369 |
0 |
| RETVAL = marpaESLIFPerl_call_methodp(aTHX_ constantsp->MarpaX__ESLIF__Grammar__Symbol__Properties_svp, "new", avp, NULL /* subSvp */); |
| 4370 |
0 |
| av_undef(avp); |
| 4371 |
|
| OUTPUT: |
| 4372 |
|
| RETVAL |
| 4373 |
|
| |
| 4374 |
|
| =for comment |
| 4375 |
|
| /* ----------------------------------------------------------------------- */ |
| 4376 |
|
| /* MarpaX::ESLIF::Grammar::ruleDisplay */ |
| 4377 |
|
| /* ----------------------------------------------------------------------- */ |
| 4378 |
|
| =cut |
| 4379 |
|
| |
| 4380 |
|
| char * |
| 4381 |
|
| ruleDisplay(p, Perl_rulei) |
| 4382 |
|
| SV *p; |
| 4383 |
|
| IV Perl_rulei; |
| 4384 |
|
| PREINIT: |
| 4385 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ruleDisplay"; |
| 4386 |
|
| CODE: |
| 4387 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4388 |
|
| char *ruledisplays; |
| 4389 |
|
| |
| 4390 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruledisplayform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruledisplays))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruledisplayform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruledisplays))) { |
0 |
0 |
0 |
|
| 4391 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruledisplayform_currentb failure"); |
| 4392 |
|
| } |
| 4393 |
0 |
| RETVAL = ruledisplays; |
| 4394 |
|
| OUTPUT: |
| 4395 |
|
| RETVAL |
| 4396 |
|
| |
| 4397 |
|
| =for comment |
| 4398 |
|
| /* ----------------------------------------------------------------------- */ |
| 4399 |
|
| /* MarpaX::ESLIF::Grammar::symbolDisplay */ |
| 4400 |
|
| /* ----------------------------------------------------------------------- */ |
| 4401 |
|
| =cut |
| 4402 |
|
| |
| 4403 |
|
| char * |
| 4404 |
|
| symbolDisplay(p, Perl_symboli) |
| 4405 |
|
| SV *p; |
| 4406 |
|
| IV Perl_symboli; |
| 4407 |
|
| PREINIT: |
| 4408 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::symbolDisplay"; |
| 4409 |
|
| CODE: |
| 4410 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4411 |
|
| char *symboldisplays; |
| 4412 |
|
| |
| 4413 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symboldisplayform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symboldisplays))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symboldisplayform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symboldisplays))) { |
0 |
0 |
0 |
|
| 4414 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symboldisplayform_currentb failure"); |
| 4415 |
|
| } |
| 4416 |
0 |
| RETVAL = symboldisplays; |
| 4417 |
|
| OUTPUT: |
| 4418 |
|
| RETVAL |
| 4419 |
|
| |
| 4420 |
|
| =for comment |
| 4421 |
|
| /* ----------------------------------------------------------------------- */ |
| 4422 |
|
| /* MarpaX::ESLIF::Grammar::ruleShow */ |
| 4423 |
|
| /* ----------------------------------------------------------------------- */ |
| 4424 |
|
| =cut |
| 4425 |
|
| |
| 4426 |
|
| char * |
| 4427 |
|
| ruleShow(p, Perl_rulei) |
| 4428 |
|
| SV *p; |
| 4429 |
|
| IV Perl_rulei; |
| 4430 |
|
| PREINIT: |
| 4431 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ruleShow"; |
| 4432 |
|
| CODE: |
| 4433 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4434 |
|
| char *ruleshows; |
| 4435 |
|
| |
| 4436 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruleshowform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleshows))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruleshowform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleshows))) { |
0 |
0 |
0 |
|
| 4437 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruleshowform_currentb failure"); |
| 4438 |
|
| } |
| 4439 |
0 |
| RETVAL = ruleshows; |
| 4440 |
|
| OUTPUT: |
| 4441 |
|
| RETVAL |
| 4442 |
|
| |
| 4443 |
|
| =for comment |
| 4444 |
|
| /* ----------------------------------------------------------------------- */ |
| 4445 |
|
| /* MarpaX::ESLIF::Grammar::ruleDisplayByLevel */ |
| 4446 |
|
| /* ----------------------------------------------------------------------- */ |
| 4447 |
|
| =cut |
| 4448 |
|
| |
| 4449 |
|
| char * |
| 4450 |
|
| ruleDisplayByLevel(p, Perl_leveli, Perl_rulei) |
| 4451 |
|
| SV *p; |
| 4452 |
|
| IV Perl_leveli; |
| 4453 |
|
| IV Perl_rulei; |
| 4454 |
|
| PREINIT: |
| 4455 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ruleDisplayByLevel"; |
| 4456 |
|
| CODE: |
| 4457 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4458 |
|
| char *ruledisplays; |
| 4459 |
|
| |
| 4460 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruledisplayform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruledisplays, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruledisplayform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruledisplays, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 4461 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruledisplayform_by_levelb failure"); |
| 4462 |
|
| } |
| 4463 |
0 |
| RETVAL = ruledisplays; |
| 4464 |
|
| OUTPUT: |
| 4465 |
|
| RETVAL |
| 4466 |
|
| |
| 4467 |
|
| =for comment |
| 4468 |
|
| /* ----------------------------------------------------------------------- */ |
| 4469 |
|
| /* MarpaX::ESLIF::Grammar::symbolDisplayByLevel */ |
| 4470 |
|
| /* ----------------------------------------------------------------------- */ |
| 4471 |
|
| =cut |
| 4472 |
|
| |
| 4473 |
|
| char * |
| 4474 |
|
| symbolDisplayByLevel(p, Perl_leveli, Perl_symboli) |
| 4475 |
|
| SV *p; |
| 4476 |
|
| IV Perl_leveli; |
| 4477 |
|
| IV Perl_symboli; |
| 4478 |
|
| PREINIT: |
| 4479 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::symbolDisplayByLevel"; |
| 4480 |
|
| CODE: |
| 4481 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4482 |
|
| char *symboldisplays; |
| 4483 |
|
| |
| 4484 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_symboldisplayform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symboldisplays, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_symboldisplayform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_symboli, &symboldisplays, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 4485 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_symboldisplayform_by_levelb failure"); |
| 4486 |
|
| } |
| 4487 |
0 |
| RETVAL = symboldisplays; |
| 4488 |
|
| OUTPUT: |
| 4489 |
|
| RETVAL |
| 4490 |
|
| |
| 4491 |
|
| =for comment |
| 4492 |
|
| /* ----------------------------------------------------------------------- */ |
| 4493 |
|
| /* MarpaX::ESLIF::Grammar::ruleShowByLevel */ |
| 4494 |
|
| /* ----------------------------------------------------------------------- */ |
| 4495 |
|
| =cut |
| 4496 |
|
| |
| 4497 |
|
| char * |
| 4498 |
|
| ruleShowByLevel(p, Perl_leveli, Perl_rulei) |
| 4499 |
|
| SV *p; |
| 4500 |
|
| IV Perl_leveli; |
| 4501 |
|
| IV Perl_rulei; |
| 4502 |
|
| PREINIT: |
| 4503 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::ruleShowByLevel"; |
| 4504 |
|
| CODE: |
| 4505 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4506 |
|
| char *ruleshows; |
| 4507 |
|
| |
| 4508 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_ruleshowform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleshows, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_ruleshowform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, (int) Perl_rulei, &ruleshows, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 4509 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruleshowform_by_levelb failure"); |
| 4510 |
|
| } |
| 4511 |
0 |
| RETVAL = ruleshows; |
| 4512 |
|
| OUTPUT: |
| 4513 |
|
| RETVAL |
| 4514 |
|
| |
| 4515 |
|
| =for comment |
| 4516 |
|
| /* ----------------------------------------------------------------------- */ |
| 4517 |
|
| /* MarpaX::ESLIF::Grammar::show */ |
| 4518 |
|
| /* ----------------------------------------------------------------------- */ |
| 4519 |
|
| =cut |
| 4520 |
|
| |
| 4521 |
|
| char * |
| 4522 |
|
| show(p) |
| 4523 |
|
| SV *p; |
| 4524 |
|
| PREINIT: |
| 4525 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::show"; |
| 4526 |
|
| CODE: |
| 4527 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4528 |
|
| char *shows; |
| 4529 |
|
| |
| 4530 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammarshowform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &shows))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammarshowform_currentb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &shows))) { |
0 |
0 |
0 |
|
| 4531 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_ruleshowform_by_levelb failure"); |
| 4532 |
|
| } |
| 4533 |
0 |
| RETVAL = shows; |
| 4534 |
|
| OUTPUT: |
| 4535 |
|
| RETVAL |
| 4536 |
|
| |
| 4537 |
|
| =for comment |
| 4538 |
|
| /* ----------------------------------------------------------------------- */ |
| 4539 |
|
| /* MarpaX::ESLIF::Grammar::showByLevel */ |
| 4540 |
|
| /* ----------------------------------------------------------------------- */ |
| 4541 |
|
| =cut |
| 4542 |
|
| |
| 4543 |
|
| char * |
| 4544 |
|
| showByLevel(p, Perl_leveli) |
| 4545 |
|
| SV *p; |
| 4546 |
|
| IV Perl_leveli; |
| 4547 |
|
| PREINIT: |
| 4548 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::showByLevel"; |
| 4549 |
|
| CODE: |
| 4550 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4551 |
|
| char *shows; |
| 4552 |
|
| |
| 4553 |
0 |
▶ | if (UNLIKELY(! marpaESLIFGrammar_grammarshowform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &shows, (int) Perl_leveli, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFGrammar_grammarshowform_by_levelb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &shows, (int) Perl_leveli, NULL))) { |
0 |
0 |
0 |
|
| 4554 |
0 |
| MARPAESLIFPERL_CROAK("marpaESLIFGrammar_grammarshowform_by_levelb failure"); |
| 4555 |
|
| } |
| 4556 |
0 |
| RETVAL = shows; |
| 4557 |
|
| OUTPUT: |
| 4558 |
|
| RETVAL |
| 4559 |
|
| |
| 4560 |
|
| =for comment |
| 4561 |
|
| /* ----------------------------------------------------------------------- */ |
| 4562 |
|
| /* MarpaX::ESLIF::Grammar::parse */ |
| 4563 |
|
| /* ----------------------------------------------------------------------- */ |
| 4564 |
|
| =cut |
| 4565 |
|
| |
| 4566 |
|
| bool |
| 4567 |
|
| parse(p, Perl_recognizerInterfacep, Perl_valueInterfacep) |
| 4568 |
|
| SV *p; |
| 4569 |
|
| SV *Perl_recognizerInterfacep; |
| 4570 |
|
| SV *Perl_valueInterfacep; |
| 4571 |
|
| PREINIT: |
| 4572 |
|
| static const char *funcs = "MarpaX::ESLIF::Grammar::parse"; |
| 4573 |
|
| CODE: |
| 4574 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4575 |
|
| marpaESLIFRecognizerOption_t marpaESLIFRecognizerOption; |
| 4576 |
|
| MarpaX_ESLIF_Recognizer_t marpaESLIFRecognizerContext; |
| 4577 |
|
| marpaESLIFValueOption_t marpaESLIFValueOption; |
| 4578 |
|
| MarpaX_ESLIF_Value_t marpaESLIFValueContext; |
| 4579 |
|
| bool rcb; |
| 4580 |
|
| SV *svp; |
| 4581 |
|
| |
| 4582 |
0 |
| marpaESLIFPerl_recognizerContextInitv(aTHX_ MarpaX_ESLIF_Grammarp, p, Perl_recognizerInterfacep, &marpaESLIFRecognizerContext, NULL, MarpaX_ESLIF_Grammarp->constantsp, MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp); |
| 4583 |
0 |
| marpaESLIFPerl_valueContextInitv(aTHX_ p, Perl_valueInterfacep, &marpaESLIFValueContext, MarpaX_ESLIF_Grammarp->constantsp, MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp); |
| 4584 |
|
| |
| 4585 |
0 |
| marpaESLIFRecognizerOption.userDatavp = &marpaESLIFRecognizerContext; |
| 4586 |
0 |
| marpaESLIFRecognizerOption.readerCallbackp = marpaESLIFPerl_readerCallbackb; |
| 4587 |
0 |
| marpaESLIFRecognizerOption.disableThresholdb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithDisableThreshold", NULL /* subSvp */); |
| 4588 |
0 |
| marpaESLIFRecognizerOption.exhaustedb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithExhaustion", NULL /* subSvp */); |
| 4589 |
0 |
| marpaESLIFRecognizerOption.newlineb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithNewline", NULL /* subSvp */); |
| 4590 |
0 |
| marpaESLIFRecognizerOption.trackb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithTrack", NULL /* subSvp */); |
| 4591 |
0 |
| marpaESLIFRecognizerOption.bufsizl = 0; /* Recommended value */ |
| 4592 |
0 |
| marpaESLIFRecognizerOption.buftriggerperci = 50; /* Recommended value */ |
| 4593 |
0 |
| marpaESLIFRecognizerOption.bufaddperci = 50; /* Recommended value */ |
| 4594 |
0 |
| marpaESLIFRecognizerOption.ifActionResolverp = marpaESLIFPerl_recognizerIfActionResolver; |
| 4595 |
0 |
| marpaESLIFRecognizerOption.eventActionResolverp = marpaESLIFPerl_recognizerEventActionResolver; |
| 4596 |
0 |
| marpaESLIFRecognizerOption.regexActionResolverp = marpaESLIFPerl_recognizerRegexActionResolver; |
| 4597 |
0 |
| marpaESLIFRecognizerOption.generatorActionResolverp = marpaESLIFPerl_recognizerGeneratorActionResolver; |
| 4598 |
0 |
| marpaESLIFRecognizerOption.importerp = marpaESLIFPerl_recognizerImportb; |
| 4599 |
|
| |
| 4600 |
0 |
| marpaESLIFValueOption.userDatavp = &marpaESLIFValueContext; |
| 4601 |
0 |
| marpaESLIFValueOption.ruleActionResolverp = marpaESLIFPerl_valueRuleActionResolver; |
| 4602 |
0 |
| marpaESLIFValueOption.symbolActionResolverp = marpaESLIFPerl_valueSymbolActionResolver; |
| 4603 |
0 |
| marpaESLIFValueOption.importerp = marpaESLIFPerl_valueImportb; |
| 4604 |
0 |
| marpaESLIFValueOption.highRankOnlyb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithHighRankOnly", NULL /* subSvp */); |
| 4605 |
0 |
| marpaESLIFValueOption.orderByRankb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithOrderByRank", NULL /* subSvp */); |
| 4606 |
0 |
| marpaESLIFValueOption.ambiguousb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithAmbiguous", NULL /* subSvp */); |
| 4607 |
0 |
| marpaESLIFValueOption.nullb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithNull", NULL /* subSvp */); |
| 4608 |
0 |
| marpaESLIFValueOption.maxParsesi = (int) marpaESLIFPerl_call_methodi(aTHX_ Perl_valueInterfacep, "maxParses", NULL /* subSvp */); |
| 4609 |
|
| |
| 4610 |
0 |
▶ | if (! marpaESLIFGrammar_parseb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &marpaESLIFRecognizerOption, &marpaESLIFValueOption, NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (! marpaESLIFGrammar_parseb(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &marpaESLIFRecognizerOption, &marpaESLIFValueOption, NULL)) { |
0 |
0 |
0 |
|
| 4611 |
0 |
| goto err; |
| 4612 |
|
| } |
| 4613 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 4614 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(marpaESLIFValueContext.internalStackp)); |
| 4615 |
|
| } |
| 4616 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(marpaESLIFValueContext.internalStackp); |
| 4617 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ Perl_valueInterfacep, "setResult", svp, marpaESLIFValueContext.setResultSvp); |
| 4618 |
|
| |
| 4619 |
0 |
| rcb = 1; |
| 4620 |
0 |
| goto done; |
| 4621 |
|
| |
| 4622 |
0 |
| err: |
| 4623 |
0 |
| rcb = 0; |
| 4624 |
|
| |
| 4625 |
0 |
| done: |
| 4626 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ &marpaESLIFValueContext, 1 /* onStackb */); |
| 4627 |
0 |
| marpaESLIFPerl_recognizerContextFreev(aTHX_ &marpaESLIFRecognizerContext, 1 /* onStackb */); |
| 4628 |
0 |
▶ | RETVAL = rcb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = rcb; |
0 |
0 |
0 |
|
| 4629 |
|
| OUTPUT: |
| 4630 |
|
| RETVAL |
| 4631 |
|
| |
| 4632 |
|
| =for comment |
| 4633 |
|
| /* ======================================================================= */ |
| 4634 |
|
| /* MarpaX::ESLIF::Symbol */ |
| 4635 |
|
| /* ======================================================================= */ |
| 4636 |
|
| =cut |
| 4637 |
|
| |
| 4638 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Symbol |
| 4639 |
|
| |
| 4640 |
|
| PROTOTYPES: ENABLE |
| 4641 |
|
| |
| 4642 |
|
| =for comment |
| 4643 |
|
| /* ----------------------------------------------------------------------- */ |
| 4644 |
|
| /* MarpaX::ESLIF::Symbol::string_allocate */ |
| 4645 |
|
| /* ----------------------------------------------------------------------- */ |
| 4646 |
|
| =cut |
| 4647 |
|
| |
| 4648 |
|
| void * |
| 4649 |
|
| string_allocate(Perl_packagep, p, bytep, bytel, encodingasciisp, modifiersp) |
| 4650 |
|
| SV *Perl_packagep; |
| 4651 |
|
| SV *p; |
| 4652 |
|
| char *bytep; |
| 4653 |
|
| size_t bytel; |
| 4654 |
|
| SV *encodingasciisp; |
| 4655 |
|
| SV *modifiersp; |
| 4656 |
|
| PREINIT: |
| 4657 |
|
| static const char *funcs = "MarpaX::ESLIF::Symbol::string_allocate"; |
| 4658 |
|
| CODE: |
| 4659 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4660 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 4661 |
|
| marpaESLIFSymbol_t *marpaESLIFSymbolp; |
| 4662 |
|
| marpaESLIFString_t marpaESLIFString; |
| 4663 |
|
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp; |
| 4664 |
|
| int typei; |
| 4665 |
0 |
| char *encodingasciis = NULL; |
| 4666 |
0 |
| char *modifiers = NULL; |
| 4667 |
|
| marpaESLIFSymbolOption_t marpaESLIFSymbolOption; |
| 4668 |
|
| |
| 4669 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ encodingasciisp); |
| 4670 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4671 |
|
| /* This is an error unless it is undef */ |
| 4672 |
0 |
▶ | if ((typei & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 4673 |
0 |
| MARPAESLIFPERL_CROAK("encoding must be a scalar or undef"); |
| 4674 |
|
| } |
| 4675 |
|
| } |
| 4676 |
0 |
▶ | if (SvOK(encodingasciisp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(encodingasciisp)) { |
0 |
0 |
0 |
|
| 4677 |
0 |
| encodingasciis = SvPV_nolen(encodingasciisp); |
| 4678 |
|
| } |
| 4679 |
|
| |
| 4680 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ modifiersp); |
| 4681 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4682 |
|
| /* This is an error unless it is undef */ |
| 4683 |
0 |
▶ | if ((typei & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 4684 |
0 |
| MARPAESLIFPERL_CROAK("modifiers must be a scalar or undef"); |
| 4685 |
|
| } |
| 4686 |
|
| } |
| 4687 |
0 |
▶ | if (SvOK(modifiersp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(modifiersp)) { |
0 |
0 |
0 |
|
| 4688 |
0 |
| modifiers = SvPV_nolen(modifiersp); |
| 4689 |
|
| } |
| 4690 |
|
| |
| 4691 |
0 |
| Newx(MarpaX_ESLIF_Symbolp, 1, MarpaX_ESLIF_Symbol_t); |
| 4692 |
0 |
| marpaESLIFPerl_symbolContextInitv(aTHX_ MarpaX_ESLIFp, p, MarpaX_ESLIF_Symbolp, &(MarpaX_ESLIFp->constants)); |
| 4693 |
|
| |
| 4694 |
0 |
| marpaESLIFString.bytep = bytep; |
| 4695 |
0 |
| marpaESLIFString.bytel = bytel; |
| 4696 |
0 |
| marpaESLIFString.encodingasciis = encodingasciis; |
| 4697 |
0 |
| marpaESLIFString.asciis = NULL; |
| 4698 |
|
| |
| 4699 |
0 |
| marpaESLIFSymbolOption.userDatavp = (void *) MarpaX_ESLIF_Symbolp; |
| 4700 |
0 |
| marpaESLIFSymbolOption.importerp = marpaESLIFPerl_symbolImportb; |
| 4701 |
|
| |
| 4702 |
0 |
| marpaESLIFSymbolp = marpaESLIFSymbol_string_newp(marpaESLIFp, &marpaESLIFString, modifiers, &marpaESLIFSymbolOption); |
| 4703 |
0 |
▶ | if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
0 |
0 |
0 |
|
| 4704 |
0 |
| marpaESLIFPerl_symbolContextFreev(aTHX_ MarpaX_ESLIF_Symbolp); |
| 4705 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFSymbol_string_newp failure, %s", strerror(errno)); |
| 4706 |
|
| } |
| 4707 |
0 |
| MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp = marpaESLIFSymbolp; |
| 4708 |
|
| |
| 4709 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Symbolp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Symbolp; |
0 |
0 |
0 |
|
| 4710 |
|
| OUTPUT: |
| 4711 |
|
| RETVAL |
| 4712 |
|
| |
| 4713 |
|
| =for comment |
| 4714 |
|
| /* ----------------------------------------------------------------------- */ |
| 4715 |
|
| /* MarpaX::ESLIF::Symbol::regex_allocate */ |
| 4716 |
|
| /* ----------------------------------------------------------------------- */ |
| 4717 |
|
| =cut |
| 4718 |
|
| |
| 4719 |
|
| void * |
| 4720 |
|
| regex_allocate(Perl_packagep, p, bytep, bytel, encodingasciisp, modifiersp, Perl_substitutionp, substitutionModifiersp) |
| 4721 |
|
| SV *Perl_packagep; |
| 4722 |
|
| SV *p; |
| 4723 |
|
| char *bytep; |
| 4724 |
|
| size_t bytel; |
| 4725 |
|
| SV *encodingasciisp; |
| 4726 |
|
| SV *modifiersp; |
| 4727 |
|
| SV *Perl_substitutionp; |
| 4728 |
|
| SV *substitutionModifiersp; |
| 4729 |
|
| PREINIT: |
| 4730 |
|
| static const char *funcs = "MarpaX::ESLIF::Symbol::regex_allocate"; |
| 4731 |
|
| CODE: |
| 4732 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4733 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 4734 |
|
| marpaESLIFSymbol_t *marpaESLIFSymbolp; |
| 4735 |
|
| marpaESLIFString_t marpaESLIFString; |
| 4736 |
|
| marpaESLIFString_t marpaESLIFSubstitutionString; |
| 4737 |
|
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp; |
| 4738 |
|
| int typei; |
| 4739 |
0 |
| char *encodingasciis = NULL; |
| 4740 |
0 |
| char *modifiers = NULL; |
| 4741 |
|
| marpaESLIFSymbolOption_t marpaESLIFSymbolOption; |
| 4742 |
0 |
| char *substitutionPatterns = NULL; |
| 4743 |
|
| STRLEN substitutionPatternl; |
| 4744 |
0 |
| char *substitutionModifiers = NULL; |
| 4745 |
|
| |
| 4746 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ encodingasciisp); |
| 4747 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4748 |
|
| /* This is an error unless it is undef */ |
| 4749 |
0 |
▶ | if ((typei & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 4750 |
0 |
| MARPAESLIFPERL_CROAK("encoding must be a scalar or undef"); |
| 4751 |
|
| } |
| 4752 |
|
| } |
| 4753 |
0 |
▶ | if (SvOK(encodingasciisp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(encodingasciisp)) { |
0 |
0 |
0 |
|
| 4754 |
0 |
| encodingasciis = SvPV_nolen(encodingasciisp); |
| 4755 |
|
| } |
| 4756 |
|
| |
| 4757 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ modifiersp); |
| 4758 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4759 |
|
| /* This is an error unless it is undef */ |
| 4760 |
0 |
▶ | if ((typei & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 4761 |
0 |
| MARPAESLIFPERL_CROAK("modifiers must be a scalar or undef"); |
| 4762 |
|
| } |
| 4763 |
|
| } |
| 4764 |
0 |
▶ | if (SvOK(modifiersp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(modifiersp)) { |
0 |
0 |
0 |
|
| 4765 |
0 |
| modifiers = SvPV_nolen(modifiersp); |
| 4766 |
|
| } |
| 4767 |
|
| |
| 4768 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ Perl_substitutionp); |
| 4769 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4770 |
|
| /* This is an error unless it is undef */ |
| 4771 |
0 |
▶ | if ((typei & UNDEF) != UNDEF) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & UNDEF) != UNDEF) { |
0 |
0 |
0 |
|
| 4772 |
0 |
| MARPAESLIFPERL_CROAK("substitution must be a scalar or undef"); |
| 4773 |
|
| } |
| 4774 |
|
| } |
| 4775 |
0 |
▶ | if (SvOK(Perl_substitutionp)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvOK(Perl_substitutionp)) { |
0 |
0 |
0 |
|
| 4776 |
0 |
| substitutionPatterns = SvPVbyte(Perl_substitutionp, substitutionPatternl); |
| 4777 |
|
| } |
| 4778 |
|
| |
| 4779 |
0 |
| Newx(MarpaX_ESLIF_Symbolp, 1, MarpaX_ESLIF_Symbol_t); |
| 4780 |
0 |
| marpaESLIFPerl_symbolContextInitv(aTHX_ MarpaX_ESLIFp, p, MarpaX_ESLIF_Symbolp, &(MarpaX_ESLIFp->constants)); |
| 4781 |
|
| |
| 4782 |
0 |
| marpaESLIFString.bytep = bytep; |
| 4783 |
0 |
| marpaESLIFString.bytel = bytel; |
| 4784 |
0 |
| marpaESLIFString.encodingasciis = encodingasciis; |
| 4785 |
0 |
| marpaESLIFString.asciis = NULL; |
| 4786 |
|
| |
| 4787 |
0 |
| marpaESLIFSubstitutionString.bytep = substitutionPatterns; |
| 4788 |
0 |
| marpaESLIFSubstitutionString.bytel = (size_t) substitutionPatternl; |
| 4789 |
0 |
| marpaESLIFSubstitutionString.encodingasciis = encodingasciis; |
| 4790 |
0 |
| marpaESLIFSubstitutionString.asciis = NULL; |
| 4791 |
|
| |
| 4792 |
0 |
| marpaESLIFSymbolOption.userDatavp = (void *) MarpaX_ESLIF_Symbolp; |
| 4793 |
0 |
| marpaESLIFSymbolOption.importerp = marpaESLIFPerl_symbolImportb; |
| 4794 |
|
| |
| 4795 |
0 |
▶ | marpaESLIFSymbolp = marpaESLIFSymbol_regex_newp(marpaESLIFp, &marpaESLIFString, modifiers, (substitutionPatterns != NULL) ? &marpaESLIFSubstitutionString : NULL, (substitutionPatterns != NULL) ? substitutionModifiers : NULL, &marpaESLIFSymbolOption); |
Branch: 2 branches
| Branch | True | False | Total |
| marpaESLIFSymbolp = marpaESLIFSymbol_regex_newp(marpaESLIFp, &marpaESLIFString, modifiers, (substitutionPatterns != NULL) ? &marpaESLIFSubstitutionString : NULL, (substitutionPatterns != NULL) ? substitutionModifiers : NULL, &marpaESLIFSymbolOption); |
0 |
0 |
0 |
| marpaESLIFSymbolp = marpaESLIFSymbol_regex_newp(marpaESLIFp, &marpaESLIFString, modifiers, (substitutionPatterns != NULL) ? &marpaESLIFSubstitutionString : NULL, (substitutionPatterns != NULL) ? substitutionModifiers : NULL, &marpaESLIFSymbolOption); |
0 |
0 |
0 |
|
| 4796 |
0 |
▶ | if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
0 |
0 |
0 |
|
| 4797 |
0 |
| marpaESLIFPerl_symbolContextFreev(aTHX_ MarpaX_ESLIF_Symbolp); |
| 4798 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFSymbol_regex_newp failure, %s", strerror(errno)); |
| 4799 |
|
| } |
| 4800 |
0 |
| MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp = marpaESLIFSymbolp; |
| 4801 |
|
| |
| 4802 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Symbolp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Symbolp; |
0 |
0 |
0 |
|
| 4803 |
|
| OUTPUT: |
| 4804 |
|
| RETVAL |
| 4805 |
|
| |
| 4806 |
|
| =for comment |
| 4807 |
|
| /* ----------------------------------------------------------------------- */ |
| 4808 |
|
| /* MarpaX::ESLIF::Symbol::meta_allocate */ |
| 4809 |
|
| /* ----------------------------------------------------------------------- */ |
| 4810 |
|
| =cut |
| 4811 |
|
| |
| 4812 |
|
| void * |
| 4813 |
|
| meta_allocate(Perl_packagep, p, g, symbolsp) |
| 4814 |
|
| SV *Perl_packagep; |
| 4815 |
|
| SV *p; |
| 4816 |
|
| SV *g; |
| 4817 |
|
| SV *symbolsp; |
| 4818 |
|
| PREINIT: |
| 4819 |
|
| static const char *funcs = "MarpaX::ESLIF::Symbol::meta_allocate"; |
| 4820 |
|
| CODE: |
| 4821 |
0 |
| MarpaX_ESLIF_t *MarpaX_ESLIFp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4822 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ g); |
| 4823 |
0 |
| marpaESLIF_t *marpaESLIFp = MarpaX_ESLIFp->marpaESLIFp; |
| 4824 |
0 |
| marpaESLIFGrammar_t *marpaESLIFGrammarp = MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp; |
| 4825 |
|
| marpaESLIFSymbol_t *marpaESLIFSymbolp; |
| 4826 |
|
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp; |
| 4827 |
|
| int typei; |
| 4828 |
0 |
| char *symbols = NULL; |
| 4829 |
|
| marpaESLIFSymbolOption_t marpaESLIFSymbolOption; |
| 4830 |
|
| |
| 4831 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ symbolsp); |
| 4832 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4833 |
0 |
| MARPAESLIFPERL_CROAK("symbol must be a scalar"); |
| 4834 |
|
| } |
| 4835 |
0 |
| symbols = SvPV_nolen(symbolsp); |
| 4836 |
|
| |
| 4837 |
0 |
| Newx(MarpaX_ESLIF_Symbolp, 1, MarpaX_ESLIF_Symbol_t); |
| 4838 |
0 |
| marpaESLIFPerl_symbolContextInitv(aTHX_ MarpaX_ESLIFp, p, MarpaX_ESLIF_Symbolp, &(MarpaX_ESLIFp->constants)); |
| 4839 |
|
| |
| 4840 |
0 |
| marpaESLIFSymbolOption.userDatavp = (void *) MarpaX_ESLIF_Symbolp; |
| 4841 |
0 |
| marpaESLIFSymbolOption.importerp = marpaESLIFPerl_symbolImportb; |
| 4842 |
|
| |
| 4843 |
0 |
| marpaESLIFSymbolp = marpaESLIFSymbol_meta_newp(marpaESLIFp, marpaESLIFGrammarp, symbols, &marpaESLIFSymbolOption); |
| 4844 |
0 |
▶ | if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFSymbolp == NULL)) { |
0 |
0 |
0 |
|
| 4845 |
0 |
| marpaESLIFPerl_symbolContextFreev(aTHX_ MarpaX_ESLIF_Symbolp); |
| 4846 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFSymbol_meta_newp failure, %s", strerror(errno)); |
| 4847 |
|
| } |
| 4848 |
0 |
| MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp = marpaESLIFSymbolp; |
| 4849 |
|
| |
| 4850 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Symbolp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Symbolp; |
0 |
0 |
0 |
|
| 4851 |
|
| OUTPUT: |
| 4852 |
|
| RETVAL |
| 4853 |
|
| |
| 4854 |
|
| =for comment |
| 4855 |
|
| /* ----------------------------------------------------------------------- */ |
| 4856 |
|
| /* MarpaX::ESLIF::Symbol::try */ |
| 4857 |
|
| /* ----------------------------------------------------------------------- */ |
| 4858 |
|
| =cut |
| 4859 |
|
| |
| 4860 |
|
| SV * |
| 4861 |
|
| try(p, Perl_inputp) |
| 4862 |
|
| SV *p; |
| 4863 |
|
| SV *Perl_inputp; |
| 4864 |
|
| PREINIT: |
| 4865 |
|
| static const char *funcs = "MarpaX::ESLIF::Symbol::try"; |
| 4866 |
|
| CODE: |
| 4867 |
0 |
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4868 |
|
| char *inputs; |
| 4869 |
|
| size_t inputl; |
| 4870 |
|
| short matchb; |
| 4871 |
|
| int typei; |
| 4872 |
|
| |
| 4873 |
0 |
| typei = marpaESLIFPerl_getTypei(aTHX_ Perl_inputp); |
| 4874 |
0 |
▶ | if ((typei & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((typei & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 4875 |
0 |
| MARPAESLIFPERL_CROAK("input must be a scalar"); |
| 4876 |
|
| } |
| 4877 |
0 |
| inputs = SvPV(Perl_inputp, inputl); |
| 4878 |
|
| |
| 4879 |
0 |
▶ | if (UNLIKELY(! marpaESLIFSymbol_tryb(MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp, inputs, inputl, &matchb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFSymbol_tryb(MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp, inputs, inputl, &matchb))) { |
0 |
0 |
0 |
|
| 4880 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIF_symbol_tryb failure, %s", strerror(errno)); |
| 4881 |
|
| } |
| 4882 |
|
| |
| 4883 |
0 |
▶ | if (matchb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (matchb) { |
0 |
0 |
0 |
|
| 4884 |
|
| /* Take care, as per the doc it is using the symbol's importer */ |
| 4885 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 4886 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp)); |
| 4887 |
|
| } |
| 4888 |
0 |
| RETVAL = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(MarpaX_ESLIF_Symbolp->internalStackp); |
| 4889 |
|
| } else { |
| 4890 |
0 |
| RETVAL = &PL_sv_undef; |
| 4891 |
|
| } |
| 4892 |
|
| OUTPUT: |
| 4893 |
|
| RETVAL |
| 4894 |
|
| |
| 4895 |
|
| =for comment |
| 4896 |
|
| /* ----------------------------------------------------------------------- */ |
| 4897 |
|
| /* MarpaX::ESLIF::Symbol::dispose */ |
| 4898 |
|
| /* ----------------------------------------------------------------------- */ |
| 4899 |
|
| =cut |
| 4900 |
|
| |
| 4901 |
|
| void |
| 4902 |
|
| dispose(p) |
| 4903 |
|
| SV *p; |
| 4904 |
|
| PREINIT: |
| 4905 |
|
| static const char *funcs = "MarpaX::ESLIF::Symbol::dispose"; |
| 4906 |
|
| CODE: |
| 4907 |
0 |
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4908 |
|
| |
| 4909 |
0 |
| marpaESLIFPerl_symbolContextFreev(aTHX_ MarpaX_ESLIF_Symbolp); |
| 4910 |
|
| |
| 4911 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Recognizer |
| 4912 |
|
| |
| 4913 |
|
| PROTOTYPES: ENABLE |
| 4914 |
|
| |
| 4915 |
|
| =for comment |
| 4916 |
|
| /* ----------------------------------------------------------------------- */ |
| 4917 |
|
| /* MarpaX::ESLIF::Recognizer::allocate */ |
| 4918 |
|
| /* ----------------------------------------------------------------------- */ |
| 4919 |
|
| =cut |
| 4920 |
|
| |
| 4921 |
|
| void * |
| 4922 |
|
| allocate(Perl_packagep, p, Perl_recognizerInterfacep) |
| 4923 |
|
| SV *Perl_packagep; |
| 4924 |
|
| SV *p; |
| 4925 |
|
| SV *Perl_recognizerInterfacep; |
| 4926 |
|
| PREINIT: |
| 4927 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::allocate"; |
| 4928 |
|
| CODE: |
| 4929 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 4930 |
|
| marpaESLIFRecognizerOption_t marpaESLIFRecognizerOption; |
| 4931 |
|
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp; |
| 4932 |
|
| |
| 4933 |
0 |
| Newx(MarpaX_ESLIF_Recognizerp, 1, MarpaX_ESLIF_Recognizer_t); |
| 4934 |
0 |
| marpaESLIFPerl_recognizerContextInitv(aTHX_ MarpaX_ESLIF_Grammarp, p, Perl_recognizerInterfacep, MarpaX_ESLIF_Recognizerp, NULL, MarpaX_ESLIF_Grammarp->constantsp, MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp); |
| 4935 |
|
| |
| 4936 |
0 |
| marpaESLIFRecognizerOption.userDatavp = MarpaX_ESLIF_Recognizerp; |
| 4937 |
0 |
| marpaESLIFRecognizerOption.readerCallbackp = marpaESLIFPerl_readerCallbackb; |
| 4938 |
0 |
| marpaESLIFRecognizerOption.disableThresholdb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithDisableThreshold", NULL /* subSvp */); |
| 4939 |
0 |
| marpaESLIFRecognizerOption.exhaustedb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithExhaustion", NULL /* subSvp */); |
| 4940 |
0 |
| marpaESLIFRecognizerOption.newlineb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithNewline", NULL /* subSvp */); |
| 4941 |
0 |
| marpaESLIFRecognizerOption.trackb = marpaESLIFPerl_call_methodb(aTHX_ Perl_recognizerInterfacep, "isWithTrack", NULL /* subSvp */); |
| 4942 |
0 |
| marpaESLIFRecognizerOption.bufsizl = 0; /* Recommended value */ |
| 4943 |
0 |
| marpaESLIFRecognizerOption.buftriggerperci = 50; /* Recommended value */ |
| 4944 |
0 |
| marpaESLIFRecognizerOption.bufaddperci = 50; /* Recommended value */ |
| 4945 |
0 |
| marpaESLIFRecognizerOption.ifActionResolverp = marpaESLIFPerl_recognizerIfActionResolver; |
| 4946 |
0 |
| marpaESLIFRecognizerOption.eventActionResolverp = marpaESLIFPerl_recognizerEventActionResolver; |
| 4947 |
0 |
| marpaESLIFRecognizerOption.regexActionResolverp = marpaESLIFPerl_recognizerRegexActionResolver; |
| 4948 |
0 |
| marpaESLIFRecognizerOption.generatorActionResolverp = marpaESLIFPerl_recognizerGeneratorActionResolver; |
| 4949 |
0 |
| marpaESLIFRecognizerOption.importerp = marpaESLIFPerl_recognizerImportb; |
| 4950 |
|
| |
| 4951 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp = marpaESLIFRecognizer_newp(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, &marpaESLIFRecognizerOption); |
| 4952 |
0 |
▶ | if (UNLIKELY(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp == NULL)) { |
0 |
0 |
0 |
|
| 4953 |
0 |
| int save_errno = errno; |
| 4954 |
0 |
| marpaESLIFPerl_recognizerContextFreev(aTHX_ MarpaX_ESLIF_Recognizerp, 0 /* onStackb */); |
| 4955 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_newp failure, %s", strerror(errno)); |
| 4956 |
|
| } |
| 4957 |
|
| |
| 4958 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Recognizerp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Recognizerp; |
0 |
0 |
0 |
|
| 4959 |
|
| OUTPUT: |
| 4960 |
|
| RETVAL |
| 4961 |
|
| |
| 4962 |
|
| =for comment |
| 4963 |
|
| /* ----------------------------------------------------------------------- */ |
| 4964 |
|
| /* MarpaX::ESLIF::Recognizer::allocate_newFrom */ |
| 4965 |
|
| /* ----------------------------------------------------------------------- */ |
| 4966 |
|
| =cut |
| 4967 |
|
| |
| 4968 |
|
| void * |
| 4969 |
|
| allocate_newFrom(p1, p2) |
| 4970 |
|
| SV *p1; |
| 4971 |
|
| SV *p2; |
| 4972 |
|
| PREINIT: |
| 4973 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::newFrom"; |
| 4974 |
|
| CODE: |
| 4975 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizer_origp = marpaESLIFPerl_Perl2enginep(aTHX_ p1); |
| 4976 |
0 |
| MarpaX_ESLIF_Grammar_t *MarpaX_ESLIF_Grammarp = marpaESLIFPerl_Perl2enginep(aTHX_ p2); |
| 4977 |
|
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp; |
| 4978 |
|
| |
| 4979 |
0 |
| Newx(MarpaX_ESLIF_Recognizerp, 1, MarpaX_ESLIF_Recognizer_t); |
| 4980 |
0 |
| marpaESLIFPerl_recognizerContextInitv(aTHX_ MarpaX_ESLIF_Grammarp, p2, MarpaX_ESLIF_Recognizer_origp->Perl_recognizerInterfacep, MarpaX_ESLIF_Recognizerp, p1, MarpaX_ESLIF_Grammarp->constantsp, MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp); |
| 4981 |
|
| |
| 4982 |
0 |
| MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp = marpaESLIFRecognizer_newFromp(MarpaX_ESLIF_Grammarp->marpaESLIFGrammarp, MarpaX_ESLIF_Recognizer_origp->marpaESLIFRecognizerp); |
| 4983 |
0 |
▶ | if (UNLIKELY(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp == NULL)) { |
0 |
0 |
0 |
|
| 4984 |
0 |
| int save_errno = errno; |
| 4985 |
0 |
| marpaESLIFPerl_recognizerContextFreev(aTHX_ MarpaX_ESLIF_Recognizerp, 0 /* onStackb */); |
| 4986 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_newp failure, %s", strerror(save_errno)); |
| 4987 |
|
| } |
| 4988 |
|
| |
| 4989 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Recognizerp; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Recognizerp; |
0 |
0 |
0 |
|
| 4990 |
|
| OUTPUT: |
| 4991 |
|
| RETVAL |
| 4992 |
|
| |
| 4993 |
|
| =for comment |
| 4994 |
|
| /* ----------------------------------------------------------------------- */ |
| 4995 |
|
| /* MarpaX::ESLIF::Recognizer::set_exhausted_flag */ |
| 4996 |
|
| /* ----------------------------------------------------------------------- */ |
| 4997 |
|
| =cut |
| 4998 |
|
| |
| 4999 |
|
| void |
| 5000 |
|
| set_exhausted_flag(p, flag) |
| 5001 |
|
| SV *p; |
| 5002 |
|
| bool flag; |
| 5003 |
|
| PREINIT: |
| 5004 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::set_exhausted_flag"; |
| 5005 |
|
| CODE: |
| 5006 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5007 |
|
| |
| 5008 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_set_exhausted_flagb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, flag ? 1 : 0))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_set_exhausted_flagb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, flag ? 1 : 0))) { |
0 |
0 |
0 |
|
| 5009 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_set_exhausted_flagb failure, %s", strerror(errno)); |
| 5010 |
|
| } |
| 5011 |
|
| |
| 5012 |
|
| =for comment |
| 5013 |
|
| /* ----------------------------------------------------------------------- */ |
| 5014 |
|
| /* MarpaX::ESLIF::Recognizer::share */ |
| 5015 |
|
| /* ----------------------------------------------------------------------- */ |
| 5016 |
|
| =cut |
| 5017 |
|
| |
| 5018 |
|
| void |
| 5019 |
|
| share(p1, p2) |
| 5020 |
|
| SV *p1; |
| 5021 |
|
| SV *p2; |
| 5022 |
|
| PREINIT: |
| 5023 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::share"; |
| 5024 |
|
| CODE: |
| 5025 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p1); |
| 5026 |
|
| |
| 5027 |
0 |
▶ | if (SvTRUE(p2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTRUE(p2)) { |
0 |
0 |
0 |
|
| 5028 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_RecognizerOrigp = marpaESLIFPerl_Perl2enginep(aTHX_ p2); |
| 5029 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_RecognizerOrigp->marpaESLIFRecognizerp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_RecognizerOrigp->marpaESLIFRecognizerp))) { |
0 |
0 |
0 |
|
| 5030 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_shareb failure, %s", strerror(errno)); |
| 5031 |
|
| } |
| 5032 |
|
| } else { |
| 5033 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
0 |
0 |
0 |
|
| 5034 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_shareb failure, %s", strerror(errno)); |
| 5035 |
|
| } |
| 5036 |
|
| } |
| 5037 |
|
| |
| 5038 |
|
| =for comment |
| 5039 |
|
| /* ----------------------------------------------------------------------- */ |
| 5040 |
|
| /* MarpaX::ESLIF::Recognizer::unshare */ |
| 5041 |
|
| /* ----------------------------------------------------------------------- */ |
| 5042 |
|
| =cut |
| 5043 |
|
| |
| 5044 |
|
| void |
| 5045 |
|
| unshare(p) |
| 5046 |
|
| SV *p; |
| 5047 |
|
| PREINIT: |
| 5048 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::unshare"; |
| 5049 |
|
| CODE: |
| 5050 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5051 |
|
| |
| 5052 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_shareb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
0 |
0 |
0 |
|
| 5053 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_shareb failure, %s", strerror(errno)); |
| 5054 |
|
| } |
| 5055 |
|
| |
| 5056 |
|
| =for comment |
| 5057 |
|
| /* ----------------------------------------------------------------------- */ |
| 5058 |
|
| /* MarpaX::ESLIF::Recognizer::peek */ |
| 5059 |
|
| /* ----------------------------------------------------------------------- */ |
| 5060 |
|
| =cut |
| 5061 |
|
| |
| 5062 |
|
| void |
| 5063 |
|
| peek(p1, p2) |
| 5064 |
|
| SV *p1; |
| 5065 |
|
| SV *p2; |
| 5066 |
|
| PREINIT: |
| 5067 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::peek"; |
| 5068 |
|
| CODE: |
| 5069 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p1); |
| 5070 |
|
| |
| 5071 |
0 |
▶ | if (SvTRUE(p2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTRUE(p2)) { |
0 |
0 |
0 |
|
| 5072 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_RecognizerOrigp = marpaESLIFPerl_Perl2enginep(aTHX_ p2); |
| 5073 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_RecognizerOrigp->marpaESLIFRecognizerp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_RecognizerOrigp->marpaESLIFRecognizerp))) { |
0 |
0 |
0 |
|
| 5074 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_peekb failure, %s", strerror(errno)); |
| 5075 |
|
| } |
| 5076 |
|
| } else { |
| 5077 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
0 |
0 |
0 |
|
| 5078 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_peekb failure, %s", strerror(errno)); |
| 5079 |
|
| } |
| 5080 |
|
| } |
| 5081 |
|
| |
| 5082 |
|
| =for comment |
| 5083 |
|
| /* ----------------------------------------------------------------------- */ |
| 5084 |
|
| /* MarpaX::ESLIF::Recognizer::unpeek */ |
| 5085 |
|
| /* ----------------------------------------------------------------------- */ |
| 5086 |
|
| =cut |
| 5087 |
|
| |
| 5088 |
|
| void |
| 5089 |
|
| unpeek(p) |
| 5090 |
|
| SV *p; |
| 5091 |
|
| PREINIT: |
| 5092 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::unpeek"; |
| 5093 |
|
| CODE: |
| 5094 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5095 |
|
| |
| 5096 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_peekb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL))) { |
0 |
0 |
0 |
|
| 5097 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_peekb failure, %s", strerror(errno)); |
| 5098 |
|
| } |
| 5099 |
|
| |
| 5100 |
|
| =for comment |
| 5101 |
|
| /* ----------------------------------------------------------------------- */ |
| 5102 |
|
| /* MarpaX::ESLIF::Recognizer::symbolTry */ |
| 5103 |
|
| /* ----------------------------------------------------------------------- */ |
| 5104 |
|
| =cut |
| 5105 |
|
| |
| 5106 |
|
| SV * |
| 5107 |
|
| symbolTry(p1, p2) |
| 5108 |
|
| SV *p1; |
| 5109 |
|
| SV *p2; |
| 5110 |
|
| PREINIT: |
| 5111 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::symbolTry"; |
| 5112 |
|
| CODE: |
| 5113 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p1); |
| 5114 |
0 |
| MarpaX_ESLIF_Symbol_t *MarpaX_ESLIF_Symbolp = marpaESLIFPerl_Perl2enginep(aTHX_ p2); |
| 5115 |
|
| short matchb; |
| 5116 |
|
| |
| 5117 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_symbol_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp, &matchb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_symbol_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, MarpaX_ESLIF_Symbolp->marpaESLIFSymbolp, &matchb))) { |
0 |
0 |
0 |
|
| 5118 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_symbol_tryb failure, %s", strerror(errno)); |
| 5119 |
|
| } |
| 5120 |
|
| |
| 5121 |
0 |
▶ | if (matchb) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (matchb) { |
0 |
0 |
0 |
|
| 5122 |
|
| /* As per the doc it is using the symbol's importer */ |
| 5123 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 5124 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Symbolp->internalStackp)); |
| 5125 |
|
| } |
| 5126 |
0 |
| RETVAL = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(MarpaX_ESLIF_Symbolp->internalStackp); |
| 5127 |
|
| } else { |
| 5128 |
0 |
| RETVAL = &PL_sv_undef; |
| 5129 |
|
| } |
| 5130 |
|
| OUTPUT: |
| 5131 |
|
| RETVAL |
| 5132 |
|
| |
| 5133 |
|
| =for comment |
| 5134 |
|
| /* ----------------------------------------------------------------------- */ |
| 5135 |
|
| /* MarpaX::ESLIF::Recognizer::dispose */ |
| 5136 |
|
| /* ----------------------------------------------------------------------- */ |
| 5137 |
|
| =cut |
| 5138 |
|
| |
| 5139 |
|
| void |
| 5140 |
|
| dispose(p) |
| 5141 |
|
| SV *p; |
| 5142 |
|
| PREINIT: |
| 5143 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::dispose"; |
| 5144 |
|
| CODE: |
| 5145 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5146 |
|
| |
| 5147 |
0 |
| marpaESLIFPerl_recognizerContextFreev(aTHX_ MarpaX_ESLIF_Recognizerp, 0 /* onStackb */); |
| 5148 |
|
| |
| 5149 |
|
| =for comment |
| 5150 |
|
| /* ----------------------------------------------------------------------- */ |
| 5151 |
|
| /* MarpaX::ESLIF::Recognizer::isCanContinue */ |
| 5152 |
|
| /* ----------------------------------------------------------------------- */ |
| 5153 |
|
| =cut |
| 5154 |
|
| |
| 5155 |
|
| bool |
| 5156 |
|
| isCanContinue(p) |
| 5157 |
|
| SV *p; |
| 5158 |
|
| PREINIT: |
| 5159 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::isCanContinue"; |
| 5160 |
|
| CODE: |
| 5161 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5162 |
|
| short isCanContinueb; |
| 5163 |
|
| |
| 5164 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_isCanContinueb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &(isCanContinueb)))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_isCanContinueb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &(isCanContinueb)))) { |
0 |
0 |
0 |
|
| 5165 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_isCanContinueb failure, %s", strerror(errno)); |
| 5166 |
|
| } |
| 5167 |
0 |
▶ | RETVAL = (bool) isCanContinueb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) isCanContinueb; |
0 |
0 |
0 |
|
| 5168 |
|
| OUTPUT: |
| 5169 |
|
| RETVAL |
| 5170 |
|
| |
| 5171 |
|
| =for comment |
| 5172 |
|
| /* ----------------------------------------------------------------------- */ |
| 5173 |
|
| /* MarpaX::ESLIF::Recognizer::isExhausted */ |
| 5174 |
|
| /* ----------------------------------------------------------------------- */ |
| 5175 |
|
| =cut |
| 5176 |
|
| |
| 5177 |
|
| bool |
| 5178 |
|
| isExhausted(p) |
| 5179 |
|
| SV *p; |
| 5180 |
|
| PREINIT: |
| 5181 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::isExhausted"; |
| 5182 |
|
| CODE: |
| 5183 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5184 |
|
| short exhaustedb; |
| 5185 |
|
| |
| 5186 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_isExhaustedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &(exhaustedb)))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_isExhaustedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &(exhaustedb)))) { |
0 |
0 |
0 |
|
| 5187 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_isExhaustedb failure, %s", strerror(errno)); |
| 5188 |
|
| } |
| 5189 |
0 |
▶ | RETVAL = (bool) exhaustedb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) exhaustedb; |
0 |
0 |
0 |
|
| 5190 |
|
| OUTPUT: |
| 5191 |
|
| RETVAL |
| 5192 |
|
| |
| 5193 |
|
| =for comment |
| 5194 |
|
| /* ----------------------------------------------------------------------- */ |
| 5195 |
|
| /* MarpaX::ESLIF::Recognizer::scan */ |
| 5196 |
|
| /* ----------------------------------------------------------------------- */ |
| 5197 |
|
| =cut |
| 5198 |
|
| |
| 5199 |
|
| bool |
| 5200 |
|
| scan(p, ...) |
| 5201 |
|
| SV *p; |
| 5202 |
|
| PREINIT: |
| 5203 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::scan"; |
| 5204 |
|
| CODE: |
| 5205 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5206 |
|
| short initialEventsb; |
| 5207 |
|
| |
| 5208 |
0 |
▶ | if (items > 1) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items > 1) { |
0 |
0 |
0 |
|
| 5209 |
0 |
| SV *Perl_initialEvents = ST(1); |
| 5210 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_initialEvents) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_initialEvents) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5211 |
0 |
| MARPAESLIFPERL_CROAK("First argument must be a scalar"); |
| 5212 |
|
| } |
| 5213 |
0 |
| initialEventsb = SvIV(Perl_initialEvents) ? 1 : 0; |
| 5214 |
|
| } else { |
| 5215 |
0 |
| initialEventsb = 0; |
| 5216 |
|
| } |
| 5217 |
|
| |
| 5218 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_scanb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, initialEventsb, NULL /* continuebp */, NULL /* exhaustedbp */); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_scanb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, initialEventsb, NULL /* continuebp */, NULL /* exhaustedbp */); |
0 |
0 |
0 |
|
| 5219 |
|
| OUTPUT: |
| 5220 |
|
| RETVAL |
| 5221 |
|
| |
| 5222 |
|
| =for comment |
| 5223 |
|
| /* ----------------------------------------------------------------------- */ |
| 5224 |
|
| /* MarpaX::ESLIF::Recognizer::resume */ |
| 5225 |
|
| /* ----------------------------------------------------------------------- */ |
| 5226 |
|
| =cut |
| 5227 |
|
| |
| 5228 |
|
| bool |
| 5229 |
|
| resume(p, ...) |
| 5230 |
|
| SV *p; |
| 5231 |
|
| PREINIT: |
| 5232 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::resume"; |
| 5233 |
|
| CODE: |
| 5234 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5235 |
|
| int deltaLength; |
| 5236 |
|
| |
| 5237 |
0 |
▶ | if (items > 1) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items > 1) { |
0 |
0 |
0 |
|
| 5238 |
0 |
| SV *Perl_deltaLength = ST(1); |
| 5239 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_deltaLength) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_deltaLength) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5240 |
0 |
| MARPAESLIFPERL_CROAK("First argument must be a scalar"); |
| 5241 |
|
| } |
| 5242 |
0 |
| deltaLength = (int) SvIV(Perl_deltaLength); |
| 5243 |
|
| } else { |
| 5244 |
0 |
| deltaLength = 0; |
| 5245 |
|
| } |
| 5246 |
|
| |
| 5247 |
0 |
▶ | if (deltaLength < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (deltaLength < 0) { |
0 |
0 |
0 |
|
| 5248 |
0 |
| MARPAESLIFPERL_CROAK("Resume delta length cannot be negative"); |
| 5249 |
|
| } |
| 5250 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_resumeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (size_t) deltaLength, NULL /* continuebp */, NULL /* exhaustedbp */); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_resumeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (size_t) deltaLength, NULL /* continuebp */, NULL /* exhaustedbp */); |
0 |
0 |
0 |
|
| 5251 |
|
| OUTPUT: |
| 5252 |
|
| RETVAL |
| 5253 |
|
| |
| 5254 |
|
| =for comment |
| 5255 |
|
| /* ----------------------------------------------------------------------- */ |
| 5256 |
|
| /* MarpaX::ESLIF::Recognizer::events */ |
| 5257 |
|
| /* ----------------------------------------------------------------------- */ |
| 5258 |
|
| =cut |
| 5259 |
|
| |
| 5260 |
|
| SV * |
| 5261 |
|
| events(p) |
| 5262 |
|
| SV *p; |
| 5263 |
|
| PREINIT: |
| 5264 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::events"; |
| 5265 |
|
| CODE: |
| 5266 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5267 |
|
| AV *list; |
| 5268 |
|
| HV *hv; |
| 5269 |
|
| size_t i; |
| 5270 |
|
| size_t eventArrayl; |
| 5271 |
|
| marpaESLIFEvent_t *eventArrayp; |
| 5272 |
|
| SV *svp; |
| 5273 |
|
| |
| 5274 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_eventb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &eventArrayl, &eventArrayp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_eventb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &eventArrayl, &eventArrayp))) { |
0 |
0 |
0 |
|
| 5275 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_eventb failure, %s", strerror(errno)); |
| 5276 |
|
| } |
| 5277 |
|
| |
| 5278 |
0 |
| list = newAV(); |
| 5279 |
0 |
▶ | for (i = 0; i < eventArrayl; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < eventArrayl; i++) { |
0 |
0 |
0 |
|
| 5280 |
0 |
| hv = (HV *)sv_2mortal((SV *)newHV()); |
| 5281 |
|
| |
| 5282 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "type", strlen("type"), newSViv(eventArrayp[i].type), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "type", strlen("type"), newSViv(eventArrayp[i].type), 0) == NULL)) { |
0 |
0 |
0 |
|
| 5283 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for type => %d", eventArrayp[i].type); |
| 5284 |
|
| } |
| 5285 |
|
| |
| 5286 |
0 |
▶ | if (eventArrayp[i].symbols != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (eventArrayp[i].symbols != NULL) { |
0 |
0 |
0 |
|
| 5287 |
0 |
| svp = newSVpv(eventArrayp[i].symbols, 0); |
| 5288 |
0 |
▶ | if (is_utf8_string((const U8 *) eventArrayp[i].symbols, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (is_utf8_string((const U8 *) eventArrayp[i].symbols, 0)) { |
0 |
0 |
0 |
|
| 5289 |
0 |
| SvUTF8_on(svp); |
| 5290 |
|
| } |
| 5291 |
|
| } else { |
| 5292 |
0 |
| svp = newSV(0); |
| 5293 |
|
| } |
| 5294 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "symbol", strlen("symbol"), svp, 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "symbol", strlen("symbol"), svp, 0) == NULL)) { |
0 |
0 |
0 |
|
| 5295 |
0 |
▶ | MARPAESLIFPERL_CROAKF("hv_store failure for symbol => %s", (eventArrayp[i].symbols != NULL) ? eventArrayp[i].symbols : ""); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("hv_store failure for symbol => %s", (eventArrayp[i].symbols != NULL) ? eventArrayp[i].symbols : ""); |
0 |
0 |
0 |
|
| 5296 |
|
| } |
| 5297 |
|
| |
| 5298 |
0 |
▶ | if (eventArrayp[i].events != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (eventArrayp[i].events != NULL) { |
0 |
0 |
0 |
|
| 5299 |
0 |
| svp = newSVpv(eventArrayp[i].events, 0); |
| 5300 |
0 |
▶ | if (is_utf8_string((const U8 *) eventArrayp[i].events, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (is_utf8_string((const U8 *) eventArrayp[i].events, 0)) { |
0 |
0 |
0 |
|
| 5301 |
0 |
| SvUTF8_on(svp); |
| 5302 |
|
| } |
| 5303 |
|
| } else { |
| 5304 |
0 |
| svp = newSV(0); |
| 5305 |
|
| } |
| 5306 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "event", strlen("event"), svp, 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "event", strlen("event"), svp, 0) == NULL)) { |
0 |
0 |
0 |
|
| 5307 |
0 |
▶ | MARPAESLIFPERL_CROAKF("hv_store failure for event => %s", (eventArrayp[i].events != NULL) ? eventArrayp[i].events : ""); |
Branch: 1 branch
| Branch | True | False | Total |
| MARPAESLIFPERL_CROAKF("hv_store failure for event => %s", (eventArrayp[i].events != NULL) ? eventArrayp[i].events : ""); |
0 |
0 |
0 |
|
| 5308 |
|
| } |
| 5309 |
|
| |
| 5310 |
0 |
| av_push(list, newRV((SV *)hv)); |
| 5311 |
|
| } |
| 5312 |
|
| |
| 5313 |
0 |
| RETVAL = newRV_noinc((SV *)list); |
| 5314 |
|
| OUTPUT: |
| 5315 |
|
| RETVAL |
| 5316 |
|
| |
| 5317 |
|
| =for comment |
| 5318 |
|
| /* ----------------------------------------------------------------------- */ |
| 5319 |
|
| /* MarpaX::ESLIF::Recognizer::eventOnOff */ |
| 5320 |
|
| /* ----------------------------------------------------------------------- */ |
| 5321 |
|
| =cut |
| 5322 |
|
| |
| 5323 |
|
| void |
| 5324 |
|
| eventOnOff(p, symbol, eventTypes, onOff) |
| 5325 |
|
| SV *p; |
| 5326 |
|
| char *symbol; |
| 5327 |
|
| AV *eventTypes; |
| 5328 |
|
| bool onOff; |
| 5329 |
|
| PREINIT: |
| 5330 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::eventOnOff"; |
| 5331 |
|
| CODE: |
| 5332 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5333 |
0 |
| marpaESLIFEventType_t eventSeti = MARPAESLIF_EVENTTYPE_NONE; |
| 5334 |
0 |
| SSize_t avsizel = av_len(eventTypes) + 1; |
| 5335 |
|
| SSize_t aviteratorl; |
| 5336 |
|
| |
| 5337 |
0 |
▶ | for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (aviteratorl = 0; aviteratorl < avsizel; aviteratorl++) { |
0 |
0 |
0 |
|
| 5338 |
|
| int codei; |
| 5339 |
0 |
| SV **svpp = av_fetch(eventTypes, aviteratorl, 0); |
| 5340 |
0 |
▶ | if (UNLIKELY(svpp == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(svpp == NULL)) { |
0 |
0 |
0 |
|
| 5341 |
0 |
| MARPAESLIFPERL_CROAK("av_fetch returned NULL"); |
| 5342 |
|
| } |
| 5343 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ *svpp) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ *svpp) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5344 |
0 |
| MARPAESLIFPERL_CROAKF("Element No %d of array must be a scalar", (int) aviteratorl); |
| 5345 |
|
| } |
| 5346 |
0 |
| codei = (int) SvIV(*svpp); |
| 5347 |
0 |
| switch (codei) { |
| 5348 |
0 |
| case MARPAESLIF_EVENTTYPE_NONE: |
| 5349 |
0 |
| break; |
| 5350 |
0 |
| case MARPAESLIF_EVENTTYPE_COMPLETED: |
| 5351 |
|
| case MARPAESLIF_EVENTTYPE_NULLED: |
| 5352 |
|
| case MARPAESLIF_EVENTTYPE_PREDICTED: |
| 5353 |
|
| case MARPAESLIF_EVENTTYPE_BEFORE: |
| 5354 |
|
| case MARPAESLIF_EVENTTYPE_AFTER: |
| 5355 |
|
| case MARPAESLIF_EVENTTYPE_EXHAUSTED: |
| 5356 |
|
| case MARPAESLIF_EVENTTYPE_DISCARD: |
| 5357 |
0 |
| eventSeti |= codei; |
| 5358 |
0 |
| break; |
| 5359 |
0 |
| default: |
| 5360 |
0 |
| MARPAESLIFPERL_CROAKF("Unknown code %d", (int) codei); |
| 5361 |
|
| break; |
| 5362 |
|
| } |
| 5363 |
|
| } |
| 5364 |
|
| |
| 5365 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_event_onoffb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, symbol, eventSeti, onOff ? 1 : 0))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_event_onoffb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, symbol, eventSeti, onOff ? 1 : 0))) { |
0 |
0 |
0 |
|
| 5366 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_event_onoffb failure, %s", strerror(errno)); |
| 5367 |
|
| } |
| 5368 |
|
| |
| 5369 |
|
| =for comment |
| 5370 |
|
| /* ----------------------------------------------------------------------- */ |
| 5371 |
|
| /* MarpaX::ESLIF::Recognizer::alternative */ |
| 5372 |
|
| /* ----------------------------------------------------------------------- */ |
| 5373 |
|
| =cut |
| 5374 |
|
| |
| 5375 |
|
| bool |
| 5376 |
|
| alternative(p, names, svp, ...) |
| 5377 |
|
| SV *p; |
| 5378 |
|
| char *names; |
| 5379 |
|
| SV *svp; |
| 5380 |
|
| PREINIT: |
| 5381 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::alternative"; |
| 5382 |
|
| CODE: |
| 5383 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5384 |
|
| marpaESLIFAlternative_t marpaESLIFAlternative; |
| 5385 |
|
| int grammarLength; |
| 5386 |
|
| |
| 5387 |
0 |
▶ | if (items > 3) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items > 3) { |
0 |
0 |
0 |
|
| 5388 |
0 |
| SV *Perl_grammarLength = ST(3); |
| 5389 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_grammarLength) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_grammarLength) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5390 |
0 |
| MARPAESLIFPERL_CROAK("Third argument must be a scalar"); |
| 5391 |
|
| } |
| 5392 |
0 |
| grammarLength = (int) SvIV(Perl_grammarLength); |
| 5393 |
|
| } else { |
| 5394 |
0 |
| grammarLength = 1; |
| 5395 |
|
| } |
| 5396 |
|
| |
| 5397 |
0 |
▶ | if (grammarLength <= 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (grammarLength <= 0) { |
0 |
0 |
0 |
|
| 5398 |
0 |
| MARPAESLIFPERL_CROAK("grammarLength cannot be <= 0"); |
| 5399 |
|
| } |
| 5400 |
|
| |
| 5401 |
0 |
| marpaESLIFAlternative.names = (char *) names; |
| 5402 |
0 |
| marpaESLIFAlternative.grammarLengthl = (size_t) grammarLength; |
| 5403 |
0 |
| marpaESLIFPerl_stack_setv(aTHX_ marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp)), NULL /* marpaESLIFValuep */, -1 /* resulti */, svp, &(marpaESLIFAlternative.value), 1 /* incb */, MarpaX_ESLIF_Recognizerp->constantsp); |
| 5404 |
|
| |
| 5405 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_alternativeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &marpaESLIFAlternative); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_alternativeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &marpaESLIFAlternative); |
0 |
0 |
0 |
|
| 5406 |
|
| OUTPUT: |
| 5407 |
|
| RETVAL |
| 5408 |
|
| |
| 5409 |
|
| =for comment |
| 5410 |
|
| /* ----------------------------------------------------------------------- */ |
| 5411 |
|
| /* MarpaX::ESLIF::Recognizer::alternativeComplete */ |
| 5412 |
|
| /* ----------------------------------------------------------------------- */ |
| 5413 |
|
| =cut |
| 5414 |
|
| |
| 5415 |
|
| bool |
| 5416 |
|
| alternativeComplete(p, length) |
| 5417 |
|
| SV *p; |
| 5418 |
|
| int length; |
| 5419 |
|
| PREINIT: |
| 5420 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::alternativeComplete"; |
| 5421 |
|
| CODE: |
| 5422 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5423 |
|
| |
| 5424 |
0 |
▶ | if (length < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (length < 0) { |
0 |
0 |
0 |
|
| 5425 |
0 |
| MARPAESLIFPERL_CROAK("Length cannot be < 0"); |
| 5426 |
|
| } |
| 5427 |
|
| |
| 5428 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_alternative_completeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (size_t) length); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_alternative_completeb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (size_t) length); |
0 |
0 |
0 |
|
| 5429 |
|
| OUTPUT: |
| 5430 |
|
| RETVAL |
| 5431 |
|
| |
| 5432 |
|
| =for comment |
| 5433 |
|
| /* ----------------------------------------------------------------------- */ |
| 5434 |
|
| /* MarpaX::ESLIF::Recognizer::alternativeRead */ |
| 5435 |
|
| /* ----------------------------------------------------------------------- */ |
| 5436 |
|
| =cut |
| 5437 |
|
| |
| 5438 |
|
| bool |
| 5439 |
|
| alternativeRead(p, names, svp, length, ...) |
| 5440 |
|
| SV *p; |
| 5441 |
|
| char *names; |
| 5442 |
|
| SV *svp; |
| 5443 |
|
| int length; |
| 5444 |
|
| PREINIT: |
| 5445 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::alternativeRead"; |
| 5446 |
|
| CODE: |
| 5447 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5448 |
0 |
| int grammarLength = 1; |
| 5449 |
|
| marpaESLIFAlternative_t marpaESLIFAlternative; |
| 5450 |
|
| |
| 5451 |
0 |
▶ | if (items > 4) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items > 4) { |
0 |
0 |
0 |
|
| 5452 |
0 |
| SV *Perl_grammarLength = ST(4); |
| 5453 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_grammarLength) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_grammarLength) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5454 |
0 |
| MARPAESLIFPERL_CROAK("Fourth argument must be a scalar"); |
| 5455 |
|
| } |
| 5456 |
0 |
| grammarLength = (int) SvIV(Perl_grammarLength); |
| 5457 |
|
| } |
| 5458 |
|
| |
| 5459 |
0 |
▶ | if (grammarLength <= 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (grammarLength <= 0) { |
0 |
0 |
0 |
|
| 5460 |
0 |
| MARPAESLIFPERL_CROAK("grammarLength cannot be <= 0"); |
| 5461 |
|
| } |
| 5462 |
|
| |
| 5463 |
0 |
| marpaESLIFAlternative.names = (char *) names; |
| 5464 |
0 |
| marpaESLIFAlternative.grammarLengthl = (size_t) grammarLength; |
| 5465 |
0 |
| marpaESLIFPerl_stack_setv(aTHX_ marpaESLIFGrammar_eslifp(marpaESLIFRecognizer_grammarp(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp)), NULL /* marpaESLIFValuep */, -1 /* resulti */, svp, &(marpaESLIFAlternative.value), 1 /* incb */, MarpaX_ESLIF_Recognizerp->constantsp); |
| 5466 |
|
| |
| 5467 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_alternative_readb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &marpaESLIFAlternative, (size_t) length); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_alternative_readb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &marpaESLIFAlternative, (size_t) length); |
0 |
0 |
0 |
|
| 5468 |
|
| OUTPUT: |
| 5469 |
|
| RETVAL |
| 5470 |
|
| |
| 5471 |
|
| =for comment |
| 5472 |
|
| /* ----------------------------------------------------------------------- */ |
| 5473 |
|
| /* MarpaX::ESLIF::Recognizer::nameTry */ |
| 5474 |
|
| /* ----------------------------------------------------------------------- */ |
| 5475 |
|
| =cut |
| 5476 |
|
| |
| 5477 |
|
| bool |
| 5478 |
|
| nameTry(p, name) |
| 5479 |
|
| SV *p; |
| 5480 |
|
| char *name; |
| 5481 |
|
| PREINIT: |
| 5482 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::nameTry"; |
| 5483 |
|
| CODE: |
| 5484 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5485 |
|
| short rcb; |
| 5486 |
|
| |
| 5487 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_name_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &rcb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_name_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &rcb))) { |
0 |
0 |
0 |
|
| 5488 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_name_tryb failure, %s", strerror(errno)); |
| 5489 |
|
| } |
| 5490 |
0 |
▶ | RETVAL = (bool) rcb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) rcb; |
0 |
0 |
0 |
|
| 5491 |
|
| OUTPUT: |
| 5492 |
|
| RETVAL |
| 5493 |
|
| |
| 5494 |
|
| =for comment |
| 5495 |
|
| /* ----------------------------------------------------------------------- */ |
| 5496 |
|
| /* MarpaX::ESLIF::Recognizer::discard */ |
| 5497 |
|
| /* ----------------------------------------------------------------------- */ |
| 5498 |
|
| =cut |
| 5499 |
|
| |
| 5500 |
|
| STRLEN |
| 5501 |
|
| discard(p) |
| 5502 |
|
| SV *p; |
| 5503 |
|
| PREINIT: |
| 5504 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::discard"; |
| 5505 |
|
| CODE: |
| 5506 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5507 |
|
| size_t discardl; |
| 5508 |
|
| |
| 5509 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_discardb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &discardl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_discardb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &discardl))) { |
0 |
0 |
0 |
|
| 5510 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_discardb failure, %s", strerror(errno)); |
| 5511 |
|
| } |
| 5512 |
0 |
▶ | RETVAL = (STRLEN) discardl; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (STRLEN) discardl; |
0 |
0 |
0 |
|
| 5513 |
|
| OUTPUT: |
| 5514 |
|
| RETVAL |
| 5515 |
|
| |
| 5516 |
|
| =for comment |
| 5517 |
|
| /* ----------------------------------------------------------------------- */ |
| 5518 |
|
| /* MarpaX::ESLIF::Recognizer::discardTry */ |
| 5519 |
|
| /* ----------------------------------------------------------------------- */ |
| 5520 |
|
| =cut |
| 5521 |
|
| |
| 5522 |
|
| bool |
| 5523 |
|
| discardTry(p) |
| 5524 |
|
| SV *p; |
| 5525 |
|
| PREINIT: |
| 5526 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::discardTry"; |
| 5527 |
|
| CODE: |
| 5528 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5529 |
|
| short rcb; |
| 5530 |
|
| |
| 5531 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_discard_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &rcb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_discard_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &rcb))) { |
0 |
0 |
0 |
|
| 5532 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_discard_tryb failure, %s", strerror(errno)); |
| 5533 |
|
| } |
| 5534 |
0 |
▶ | RETVAL = (bool) rcb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) rcb; |
0 |
0 |
0 |
|
| 5535 |
|
| OUTPUT: |
| 5536 |
|
| RETVAL |
| 5537 |
|
| |
| 5538 |
|
| =for comment |
| 5539 |
|
| /* ----------------------------------------------------------------------- */ |
| 5540 |
|
| /* MarpaX::ESLIF::Recognizer::nameExpected */ |
| 5541 |
|
| /* ----------------------------------------------------------------------- */ |
| 5542 |
|
| =cut |
| 5543 |
|
| |
| 5544 |
|
| SV * |
| 5545 |
|
| nameExpected(p) |
| 5546 |
|
| SV *p; |
| 5547 |
|
| PREINIT: |
| 5548 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::nameExpected"; |
| 5549 |
|
| CODE: |
| 5550 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5551 |
|
| AV *list; |
| 5552 |
|
| size_t nLexeme; |
| 5553 |
|
| size_t i; |
| 5554 |
|
| char **lexemesArrayp; |
| 5555 |
|
| SV *svp; |
| 5556 |
|
| |
| 5557 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_name_expectedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &nLexeme, &lexemesArrayp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_name_expectedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &nLexeme, &lexemesArrayp))) { |
0 |
0 |
0 |
|
| 5558 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_name_expectedb failure, %s", strerror(errno)); |
| 5559 |
|
| } |
| 5560 |
|
| |
| 5561 |
0 |
| list = newAV(); |
| 5562 |
0 |
▶ | if (nLexeme > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nLexeme > 0) { |
0 |
0 |
0 |
|
| 5563 |
0 |
▶ | for (i = 0; i < nLexeme; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < nLexeme; i++) { |
0 |
0 |
0 |
|
| 5564 |
0 |
▶ | if (lexemesArrayp[i] != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (lexemesArrayp[i] != NULL) { |
0 |
0 |
0 |
|
| 5565 |
0 |
| svp = newSVpv(lexemesArrayp[i], 0); |
| 5566 |
0 |
▶ | if (is_utf8_string((const U8 *) lexemesArrayp[i], 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (is_utf8_string((const U8 *) lexemesArrayp[i], 0)) { |
0 |
0 |
0 |
|
| 5567 |
0 |
| SvUTF8_on(svp); |
| 5568 |
|
| } |
| 5569 |
|
| } else { |
| 5570 |
0 |
| svp = newSV(0); |
| 5571 |
|
| } |
| 5572 |
0 |
| av_push(list, svp); |
| 5573 |
|
| } |
| 5574 |
|
| } |
| 5575 |
0 |
| RETVAL = newRV_noinc((SV *)list); |
| 5576 |
|
| OUTPUT: |
| 5577 |
|
| RETVAL |
| 5578 |
|
| |
| 5579 |
|
| =for comment |
| 5580 |
|
| /* ----------------------------------------------------------------------- */ |
| 5581 |
|
| /* MarpaX::ESLIF::Recognizer::nameLastPause */ |
| 5582 |
|
| /* ----------------------------------------------------------------------- */ |
| 5583 |
|
| =cut |
| 5584 |
|
| |
| 5585 |
|
| SV * |
| 5586 |
|
| nameLastPause(p, lexeme) |
| 5587 |
|
| SV *p; |
| 5588 |
|
| char *lexeme; |
| 5589 |
|
| PREINIT: |
| 5590 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::nameLastPause"; |
| 5591 |
|
| CODE: |
| 5592 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5593 |
|
| char *pauses; |
| 5594 |
|
| size_t pausel; |
| 5595 |
|
| SV *svp; |
| 5596 |
|
| |
| 5597 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_name_last_pauseb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (char *) lexeme, &pauses, &pausel))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_name_last_pauseb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (char *) lexeme, &pauses, &pausel))) { |
0 |
0 |
0 |
|
| 5598 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_name_last_pauseb failure, %s", strerror(errno)); |
| 5599 |
|
| } |
| 5600 |
0 |
▶ | if ((pauses != NULL) && (pausel > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((pauses != NULL) && (pausel > 0)) { |
0 |
0 |
0 |
| if ((pauses != NULL) && (pausel > 0)) { |
0 |
0 |
0 |
|
| 5601 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(pauses, pausel); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(pauses, pausel); |
0 |
0 |
0 |
|
| 5602 |
|
| } else { |
| 5603 |
0 |
| svp = &PL_sv_undef; |
| 5604 |
|
| } |
| 5605 |
0 |
| RETVAL = svp; |
| 5606 |
|
| OUTPUT: |
| 5607 |
|
| RETVAL |
| 5608 |
|
| |
| 5609 |
|
| =for comment |
| 5610 |
|
| /* ----------------------------------------------------------------------- */ |
| 5611 |
|
| /* MarpaX::ESLIF::Recognizer::nameLastTry */ |
| 5612 |
|
| /* ----------------------------------------------------------------------- */ |
| 5613 |
|
| =cut |
| 5614 |
|
| |
| 5615 |
|
| SV * |
| 5616 |
|
| nameLastTry(p, lexeme) |
| 5617 |
|
| SV *p; |
| 5618 |
|
| char *lexeme; |
| 5619 |
|
| PREINIT: |
| 5620 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::nameLastTry"; |
| 5621 |
|
| CODE: |
| 5622 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5623 |
|
| char *trys; |
| 5624 |
|
| size_t tryl; |
| 5625 |
|
| SV *svp; |
| 5626 |
|
| |
| 5627 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_name_last_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (char *) lexeme, &trys, &tryl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_name_last_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (char *) lexeme, &trys, &tryl))) { |
0 |
0 |
0 |
|
| 5628 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_name_last_tryb failure, %s", strerror(errno)); |
| 5629 |
|
| } |
| 5630 |
0 |
▶ | if ((trys != NULL) && (tryl > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((trys != NULL) && (tryl > 0)) { |
0 |
0 |
0 |
| if ((trys != NULL) && (tryl > 0)) { |
0 |
0 |
0 |
|
| 5631 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(trys, tryl); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(trys, tryl); |
0 |
0 |
0 |
|
| 5632 |
|
| } else { |
| 5633 |
0 |
| svp = &PL_sv_undef; |
| 5634 |
|
| } |
| 5635 |
0 |
| RETVAL = svp; |
| 5636 |
|
| OUTPUT: |
| 5637 |
|
| RETVAL |
| 5638 |
|
| |
| 5639 |
|
| =for comment |
| 5640 |
|
| /* ----------------------------------------------------------------------- */ |
| 5641 |
|
| /* MarpaX::ESLIF::Recognizer::discardLastTry */ |
| 5642 |
|
| /* ----------------------------------------------------------------------- */ |
| 5643 |
|
| =cut |
| 5644 |
|
| |
| 5645 |
|
| SV * |
| 5646 |
|
| discardLastTry(p) |
| 5647 |
|
| SV *p; |
| 5648 |
|
| PREINIT: |
| 5649 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::discardLastTry"; |
| 5650 |
|
| CODE: |
| 5651 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5652 |
|
| char *discards; |
| 5653 |
|
| size_t discardl; |
| 5654 |
|
| SV *svp; |
| 5655 |
|
| |
| 5656 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_discard_last_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &discards, &discardl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_discard_last_tryb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &discards, &discardl))) { |
0 |
0 |
0 |
|
| 5657 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_discard_last_tryb failure, %s", strerror(errno)); |
| 5658 |
|
| } |
| 5659 |
0 |
▶ | if ((discards != NULL) && (discardl > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((discards != NULL) && (discardl > 0)) { |
0 |
0 |
0 |
| if ((discards != NULL) && (discardl > 0)) { |
0 |
0 |
0 |
|
| 5660 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(discards, discardl); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(discards, discardl); |
0 |
0 |
0 |
|
| 5661 |
|
| } else { |
| 5662 |
0 |
| svp = &PL_sv_undef; |
| 5663 |
|
| } |
| 5664 |
0 |
| RETVAL = svp; |
| 5665 |
|
| OUTPUT: |
| 5666 |
|
| RETVAL |
| 5667 |
|
| |
| 5668 |
|
| =for comment |
| 5669 |
|
| /* ----------------------------------------------------------------------- */ |
| 5670 |
|
| /* MarpaX::ESLIF::Recognizer::discardLast */ |
| 5671 |
|
| /* ----------------------------------------------------------------------- */ |
| 5672 |
|
| =cut |
| 5673 |
|
| |
| 5674 |
|
| SV * |
| 5675 |
|
| discardLast(p) |
| 5676 |
|
| SV *p; |
| 5677 |
|
| PREINIT: |
| 5678 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::discardLast"; |
| 5679 |
|
| CODE: |
| 5680 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5681 |
|
| char *lasts; |
| 5682 |
|
| size_t lastl; |
| 5683 |
|
| SV *svp; |
| 5684 |
|
| |
| 5685 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_discard_lastb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &lasts, &lastl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_discard_lastb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &lasts, &lastl))) { |
0 |
0 |
0 |
|
| 5686 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_discard_lastb failure, %s", strerror(errno)); |
| 5687 |
|
| } |
| 5688 |
0 |
▶ | if ((lasts != NULL) && (lastl > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((lasts != NULL) && (lastl > 0)) { |
0 |
0 |
0 |
| if ((lasts != NULL) && (lastl > 0)) { |
0 |
0 |
0 |
|
| 5689 |
0 |
▶ | svp = MARPAESLIFPERL_NEWSVPVN_UTF8(lasts, lastl); |
Branch: 1 branch
| Branch | True | False | Total |
| svp = MARPAESLIFPERL_NEWSVPVN_UTF8(lasts, lastl); |
0 |
0 |
0 |
|
| 5690 |
|
| } else { |
| 5691 |
0 |
| svp = &PL_sv_undef; |
| 5692 |
|
| } |
| 5693 |
0 |
| RETVAL = svp; |
| 5694 |
|
| OUTPUT: |
| 5695 |
|
| RETVAL |
| 5696 |
|
| |
| 5697 |
|
| =for comment |
| 5698 |
|
| /* ----------------------------------------------------------------------- */ |
| 5699 |
|
| /* MarpaX::ESLIF::Recognizer::isEof */ |
| 5700 |
|
| /* ----------------------------------------------------------------------- */ |
| 5701 |
|
| =cut |
| 5702 |
|
| |
| 5703 |
|
| bool |
| 5704 |
|
| isEof(p) |
| 5705 |
|
| SV *p; |
| 5706 |
|
| PREINIT: |
| 5707 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::isEof"; |
| 5708 |
|
| CODE: |
| 5709 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5710 |
|
| short eofb; |
| 5711 |
|
| |
| 5712 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_isEofb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &eofb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_isEofb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &eofb))) { |
0 |
0 |
0 |
|
| 5713 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_isEofb failure, %s", strerror(errno)); |
| 5714 |
|
| } |
| 5715 |
0 |
▶ | RETVAL = (bool) eofb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) eofb; |
0 |
0 |
0 |
|
| 5716 |
|
| OUTPUT: |
| 5717 |
|
| RETVAL |
| 5718 |
|
| |
| 5719 |
|
| =for comment |
| 5720 |
|
| /* ----------------------------------------------------------------------- */ |
| 5721 |
|
| /* MarpaX::ESLIF::Recognizer::isStartComplete */ |
| 5722 |
|
| /* ----------------------------------------------------------------------- */ |
| 5723 |
|
| =cut |
| 5724 |
|
| |
| 5725 |
|
| bool |
| 5726 |
|
| isStartComplete(p) |
| 5727 |
|
| SV *p; |
| 5728 |
|
| PREINIT: |
| 5729 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::isStartComplete"; |
| 5730 |
|
| CODE: |
| 5731 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5732 |
|
| short completeb; |
| 5733 |
|
| |
| 5734 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_isStartCompleteb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &completeb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_isStartCompleteb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &completeb))) { |
0 |
0 |
0 |
|
| 5735 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_isStartCompleteb failure, %s", strerror(errno)); |
| 5736 |
|
| } |
| 5737 |
0 |
▶ | RETVAL = (bool) completeb; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) completeb; |
0 |
0 |
0 |
|
| 5738 |
|
| OUTPUT: |
| 5739 |
|
| RETVAL |
| 5740 |
|
| |
| 5741 |
|
| =for comment |
| 5742 |
|
| /* ----------------------------------------------------------------------- */ |
| 5743 |
|
| /* MarpaX::ESLIF::Recognizer::read */ |
| 5744 |
|
| /* ----------------------------------------------------------------------- */ |
| 5745 |
|
| =cut |
| 5746 |
|
| |
| 5747 |
|
| bool |
| 5748 |
|
| read(p) |
| 5749 |
|
| SV *p; |
| 5750 |
|
| PREINIT: |
| 5751 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::read"; |
| 5752 |
|
| CODE: |
| 5753 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5754 |
|
| |
| 5755 |
0 |
▶ | RETVAL = (bool) marpaESLIFRecognizer_readb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL, NULL); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (bool) marpaESLIFRecognizer_readb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL, NULL); |
0 |
0 |
0 |
|
| 5756 |
|
| OUTPUT: |
| 5757 |
|
| RETVAL |
| 5758 |
|
| |
| 5759 |
|
| =for comment |
| 5760 |
|
| /* ----------------------------------------------------------------------- */ |
| 5761 |
|
| /* MarpaX::ESLIF::Recognizer::input */ |
| 5762 |
|
| /* ----------------------------------------------------------------------- */ |
| 5763 |
|
| =cut |
| 5764 |
|
| |
| 5765 |
|
| SV * |
| 5766 |
|
| input(p, ...) |
| 5767 |
|
| SV *p; |
| 5768 |
|
| PREINIT: |
| 5769 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::input"; |
| 5770 |
|
| CODE: |
| 5771 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5772 |
|
| SV *Perl_offset; |
| 5773 |
|
| int offset; |
| 5774 |
|
| SV *Perl_length; |
| 5775 |
|
| int length; |
| 5776 |
|
| char *inputs; |
| 5777 |
|
| size_t inputl; |
| 5778 |
|
| char *realinputs; |
| 5779 |
|
| size_t realinputl; |
| 5780 |
|
| size_t deltal; |
| 5781 |
|
| char *maxinputs; |
| 5782 |
|
| SV *svp; |
| 5783 |
|
| |
| 5784 |
|
| /* Note that perl guarantees that items is >= 1 */ |
| 5785 |
0 |
▶ | if (items == 1) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (items == 1) { |
0 |
0 |
0 |
|
| 5786 |
0 |
| offset = 0; |
| 5787 |
0 |
| length = 0; |
| 5788 |
0 |
▶ | } else if (items == 2) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (items == 2) { |
0 |
0 |
0 |
|
| 5789 |
0 |
| Perl_offset = ST(1); |
| 5790 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_offset) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_offset) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5791 |
0 |
| MARPAESLIFPERL_CROAK("Offset argument must be a scalar"); |
| 5792 |
|
| } |
| 5793 |
0 |
| offset = (int) SvIV(Perl_offset); |
| 5794 |
0 |
| length = 0; |
| 5795 |
0 |
▶ | } else if (items >= 3) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (items >= 3) { |
0 |
0 |
0 |
|
| 5796 |
0 |
| Perl_offset = ST(1); |
| 5797 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_offset) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_offset) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5798 |
0 |
| MARPAESLIFPERL_CROAK("Offset argument must be a scalar"); |
| 5799 |
|
| } |
| 5800 |
0 |
| offset = (int) SvIV(Perl_offset); |
| 5801 |
|
| |
| 5802 |
0 |
| Perl_length = ST(2); |
| 5803 |
0 |
▶ | if ((marpaESLIFPerl_getTypei(aTHX_ Perl_length) & SCALAR) != SCALAR) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((marpaESLIFPerl_getTypei(aTHX_ Perl_length) & SCALAR) != SCALAR) { |
0 |
0 |
0 |
|
| 5804 |
0 |
| MARPAESLIFPERL_CROAK("Length argument must be a scalar"); |
| 5805 |
|
| } |
| 5806 |
0 |
| length = (int) SvIV(Perl_length); |
| 5807 |
|
| } |
| 5808 |
|
| |
| 5809 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_inputb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &inputs, &inputl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_inputb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &inputs, &inputl))) { |
0 |
0 |
0 |
|
| 5810 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_inputb failure, %s", strerror(errno)); |
| 5811 |
|
| } |
| 5812 |
|
| |
| 5813 |
|
| /* inputs is a direct pointer to memory */ |
| 5814 |
0 |
▶ | if ((inputs != NULL) && (inputl > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((inputs != NULL) && (inputl > 0)) { |
0 |
0 |
0 |
| if ((inputs != NULL) && (inputl > 0)) { |
0 |
0 |
0 |
|
| 5815 |
0 |
| maxinputs = inputs + inputl - 1; |
| 5816 |
|
| /* Apply offset parameter */ |
| 5817 |
0 |
| realinputs = inputs; |
| 5818 |
0 |
▶ | if (offset < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (offset < 0) { |
0 |
0 |
0 |
|
| 5819 |
0 |
| realinputs += inputl; |
| 5820 |
|
| } |
| 5821 |
0 |
| realinputs += offset; |
| 5822 |
0 |
▶ | if ((realinputs < inputs) || (realinputs > maxinputs)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((realinputs < inputs) || (realinputs > maxinputs)) { |
0 |
0 |
0 |
| if ((realinputs < inputs) || (realinputs > maxinputs)) { |
0 |
0 |
0 |
|
| 5823 |
0 |
▶ | if (MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp->Perl_loggerInterfacep != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp->Perl_loggerInterfacep != NULL) { |
0 |
0 |
0 |
|
| 5824 |
0 |
| marpaESLIFPerl_genericLoggerCallbackv(MarpaX_ESLIF_Recognizerp->MarpaX_ESLIFp, GENERICLOGGER_LOGLEVEL_WARNING, "input() goes beyond either end of input buffer"); |
| 5825 |
|
| } |
| 5826 |
0 |
| svp = &PL_sv_undef; |
| 5827 |
|
| } else { |
| 5828 |
|
| /* Adapt input length to the modified start offset */ |
| 5829 |
0 |
▶ | if (realinputs > inputs) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (realinputs > inputs) { |
0 |
0 |
0 |
|
| 5830 |
0 |
| deltal = realinputs - inputs; |
| 5831 |
0 |
| inputl -= deltal; |
| 5832 |
|
| } |
| 5833 |
|
| /* Apply length parameter */ |
| 5834 |
0 |
▶ | if (length == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (length == 0) { |
0 |
0 |
0 |
|
| 5835 |
0 |
| realinputl = inputl; /* All bytes available */ |
| 5836 |
0 |
▶ | } else if (length > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (length > 0) { |
0 |
0 |
0 |
|
| 5837 |
0 |
▶ | if (length < inputl) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (length < inputl) { |
0 |
0 |
0 |
|
| 5838 |
0 |
| realinputl = length; /* Remains more bytes than what the user want */ |
| 5839 |
|
| } else { |
| 5840 |
0 |
| realinputl = inputl; /* Remains less bytes than what the user want */ |
| 5841 |
|
| } |
| 5842 |
|
| } else { |
| 5843 |
0 |
| length = -length; |
| 5844 |
0 |
▶ | if (length < inputl) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (length < inputl) { |
0 |
0 |
0 |
|
| 5845 |
0 |
| deltal = inputl - length; |
| 5846 |
0 |
| realinputl = deltal; /* Skip length last bytes */ |
| 5847 |
|
| } else { |
| 5848 |
0 |
| realinputl = 0; /* Skipping more bytes that what is available */ |
| 5849 |
|
| } |
| 5850 |
|
| } |
| 5851 |
0 |
| svp = marpaESLIFPerl_arraycopyp(aTHX_ (char *) realinputs, realinputl, 0 /* arraycopyb */); |
| 5852 |
|
| } |
| 5853 |
|
| } else { |
| 5854 |
0 |
| svp = &PL_sv_undef; |
| 5855 |
|
| } |
| 5856 |
0 |
| RETVAL = svp; |
| 5857 |
|
| OUTPUT: |
| 5858 |
|
| RETVAL |
| 5859 |
|
| |
| 5860 |
|
| =for comment |
| 5861 |
|
| /* ----------------------------------------------------------------------- */ |
| 5862 |
|
| /* MarpaX::ESLIF::Recognizer::inputLength */ |
| 5863 |
|
| /* ----------------------------------------------------------------------- */ |
| 5864 |
|
| =cut |
| 5865 |
|
| |
| 5866 |
|
| STRLEN |
| 5867 |
|
| inputLength(p) |
| 5868 |
|
| SV *p; |
| 5869 |
|
| PREINIT: |
| 5870 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::inputLength"; |
| 5871 |
|
| CODE: |
| 5872 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5873 |
|
| size_t inputl; |
| 5874 |
|
| |
| 5875 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_inputb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL, &inputl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_inputb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL, &inputl))) { |
0 |
0 |
0 |
|
| 5876 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_inputb failure, %s", strerror(errno)); |
| 5877 |
|
| } |
| 5878 |
0 |
▶ | RETVAL = (STRLEN) inputl; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (STRLEN) inputl; |
0 |
0 |
0 |
|
| 5879 |
|
| OUTPUT: |
| 5880 |
|
| RETVAL |
| 5881 |
|
| |
| 5882 |
|
| =for comment |
| 5883 |
|
| /* ----------------------------------------------------------------------- */ |
| 5884 |
|
| /* MarpaX::ESLIF::Recognizer::error */ |
| 5885 |
|
| /* ----------------------------------------------------------------------- */ |
| 5886 |
|
| =cut |
| 5887 |
|
| |
| 5888 |
|
| void |
| 5889 |
|
| error(p) |
| 5890 |
|
| SV *p; |
| 5891 |
|
| PREINIT: |
| 5892 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::error"; |
| 5893 |
|
| CODE: |
| 5894 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5895 |
|
| |
| 5896 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_errorb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_errorb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp))) { |
0 |
0 |
0 |
|
| 5897 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_errorb failure, %s", strerror(errno)); |
| 5898 |
|
| } |
| 5899 |
|
| |
| 5900 |
|
| =for comment |
| 5901 |
|
| /* ----------------------------------------------------------------------- */ |
| 5902 |
|
| /* MarpaX::ESLIF::Recognizer::progressLog */ |
| 5903 |
|
| /* ----------------------------------------------------------------------- */ |
| 5904 |
|
| =cut |
| 5905 |
|
| |
| 5906 |
|
| void |
| 5907 |
|
| progressLog(p, start, end, level) |
| 5908 |
|
| SV *p; |
| 5909 |
|
| int start; |
| 5910 |
|
| int end; |
| 5911 |
|
| int level; |
| 5912 |
|
| PREINIT: |
| 5913 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::progressLog"; |
| 5914 |
|
| CODE: |
| 5915 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5916 |
|
| |
| 5917 |
0 |
▶ | switch (level) { |
Branch: 1 branch
| Branch | True | False | Total |
| switch (level) { |
0 |
0 |
0 |
|
| 5918 |
0 |
| case GENERICLOGGER_LOGLEVEL_TRACE: |
| 5919 |
|
| case GENERICLOGGER_LOGLEVEL_DEBUG: |
| 5920 |
|
| case GENERICLOGGER_LOGLEVEL_INFO: |
| 5921 |
|
| case GENERICLOGGER_LOGLEVEL_NOTICE: |
| 5922 |
|
| case GENERICLOGGER_LOGLEVEL_WARNING: |
| 5923 |
|
| case GENERICLOGGER_LOGLEVEL_ERROR: |
| 5924 |
|
| case GENERICLOGGER_LOGLEVEL_CRITICAL: |
| 5925 |
|
| case GENERICLOGGER_LOGLEVEL_ALERT: |
| 5926 |
|
| case GENERICLOGGER_LOGLEVEL_EMERGENCY: |
| 5927 |
0 |
| break; |
| 5928 |
0 |
| default: |
| 5929 |
0 |
| MARPAESLIFPERL_CROAKF("Unknown logger level %d", (int) level); |
| 5930 |
|
| break; |
| 5931 |
|
| } |
| 5932 |
|
| |
| 5933 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_progressLogb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (int) start, (int) end, (int) level))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_progressLogb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, (int) start, (int) end, (int) level))) { |
0 |
0 |
0 |
|
| 5934 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_progressLogb failure, %s", strerror(errno)); |
| 5935 |
|
| } |
| 5936 |
|
| |
| 5937 |
|
| =for comment |
| 5938 |
|
| /* ----------------------------------------------------------------------- */ |
| 5939 |
|
| /* MarpaX::ESLIF::Recognizer::progress */ |
| 5940 |
|
| /* ----------------------------------------------------------------------- */ |
| 5941 |
|
| =cut |
| 5942 |
|
| |
| 5943 |
|
| SV * |
| 5944 |
|
| progress(p, start, end) |
| 5945 |
|
| SV *p; |
| 5946 |
|
| int start; |
| 5947 |
|
| int end; |
| 5948 |
|
| PREINIT: |
| 5949 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::progress"; |
| 5950 |
|
| CODE: |
| 5951 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 5952 |
|
| size_t progressl; |
| 5953 |
|
| marpaESLIFRecognizerProgress_t *progressp; |
| 5954 |
|
| size_t i; |
| 5955 |
|
| AV *list; |
| 5956 |
|
| HV *hv; |
| 5957 |
|
| |
| 5958 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_progressb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, start, end, &progressl, &progressp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_progressb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, start, end, &progressl, &progressp))) { |
0 |
0 |
0 |
|
| 5959 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_progressb failure, %s", strerror(errno)); |
| 5960 |
|
| } |
| 5961 |
|
| |
| 5962 |
|
| /* We return an array of hashes */ |
| 5963 |
0 |
| list = newAV(); |
| 5964 |
0 |
▶ | for (i = 0; i < progressl; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < progressl; i++) { |
0 |
0 |
0 |
|
| 5965 |
0 |
| hv = (HV *)sv_2mortal((SV *)newHV()); |
| 5966 |
|
| |
| 5967 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "earleySetId", strlen("earleySetId"), newSViv(progressp[i].earleySetIdi), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "earleySetId", strlen("earleySetId"), newSViv(progressp[i].earleySetIdi), 0) == NULL)) { |
0 |
0 |
0 |
|
| 5968 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for earleySetId => %d", progressp[i].earleySetIdi); |
| 5969 |
|
| } |
| 5970 |
|
| |
| 5971 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "earleySetOrigId", strlen("earleySetOrigId"), newSViv(progressp[i].earleySetOrigIdi), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "earleySetOrigId", strlen("earleySetOrigId"), newSViv(progressp[i].earleySetOrigIdi), 0) == NULL)) { |
0 |
0 |
0 |
|
| 5972 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for earleySetOrigId => %d", progressp[i].earleySetOrigIdi); |
| 5973 |
|
| } |
| 5974 |
|
| |
| 5975 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "rule", strlen("rule"), newSViv(progressp[i].rulei), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "rule", strlen("rule"), newSViv(progressp[i].rulei), 0) == NULL)) { |
0 |
0 |
0 |
|
| 5976 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for rule => %d", progressp[i].rulei); |
| 5977 |
|
| } |
| 5978 |
|
| |
| 5979 |
0 |
▶ | if (UNLIKELY(hv_store(hv, "position", strlen("position"), newSViv(progressp[i].positioni), 0) == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(hv_store(hv, "position", strlen("position"), newSViv(progressp[i].positioni), 0) == NULL)) { |
0 |
0 |
0 |
|
| 5980 |
0 |
| MARPAESLIFPERL_CROAKF("hv_store failure for position => %d", progressp[i].positioni); |
| 5981 |
|
| } |
| 5982 |
|
| |
| 5983 |
0 |
| av_push(list, newRV((SV *)hv)); |
| 5984 |
|
| } |
| 5985 |
|
| |
| 5986 |
0 |
| RETVAL = newRV_noinc((SV *)list); |
| 5987 |
|
| OUTPUT: |
| 5988 |
|
| RETVAL |
| 5989 |
|
| |
| 5990 |
|
| =for comment |
| 5991 |
|
| /* ----------------------------------------------------------------------- */ |
| 5992 |
|
| /* MarpaX::ESLIF::Recognizer::lastCompletedLength */ |
| 5993 |
|
| /* ----------------------------------------------------------------------- */ |
| 5994 |
|
| =cut |
| 5995 |
|
| |
| 5996 |
|
| =for comment |
| 5997 |
|
| /* ----------------------------------------------------------------------- */ |
| 5998 |
|
| /* MarpaX::ESLIF::Recognizer::lastCompletedOffset */ |
| 5999 |
|
| /* ----------------------------------------------------------------------- */ |
| 6000 |
|
| =cut |
| 6001 |
|
| |
| 6002 |
|
| IV |
| 6003 |
|
| lastCompletedOffset(p, name) |
| 6004 |
|
| SV *p; |
| 6005 |
|
| char *name; |
| 6006 |
|
| PREINIT: |
| 6007 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::lastCompletedOffset"; |
| 6008 |
|
| CODE: |
| 6009 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6010 |
|
| char *offsetp; |
| 6011 |
|
| |
| 6012 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &offsetp, NULL /* lengthlp */))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &offsetp, NULL /* lengthlp */))) { |
0 |
0 |
0 |
|
| 6013 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_last_completedb failure, %s", strerror(errno)); |
| 6014 |
|
| } |
| 6015 |
0 |
▶ | RETVAL = PTR2IV(offsetp); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = PTR2IV(offsetp); |
0 |
0 |
0 |
|
| 6016 |
|
| OUTPUT: |
| 6017 |
|
| RETVAL |
| 6018 |
|
| |
| 6019 |
|
| =for comment |
| 6020 |
|
| /* ----------------------------------------------------------------------- */ |
| 6021 |
|
| /* MarpaX::ESLIF::Recognizer::lastCompletedLength */ |
| 6022 |
|
| /* ----------------------------------------------------------------------- */ |
| 6023 |
|
| =cut |
| 6024 |
|
| |
| 6025 |
|
| IV |
| 6026 |
|
| lastCompletedLength(p, name) |
| 6027 |
|
| SV *p; |
| 6028 |
|
| char *name; |
| 6029 |
|
| PREINIT: |
| 6030 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::lastCompletedLength"; |
| 6031 |
|
| CODE: |
| 6032 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6033 |
|
| size_t lengthl; |
| 6034 |
|
| |
| 6035 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, NULL /* offsetpp */, &lengthl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, NULL /* offsetpp */, &lengthl))) { |
0 |
0 |
0 |
|
| 6036 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_last_completedb failure, %s", strerror(errno)); |
| 6037 |
|
| } |
| 6038 |
0 |
▶ | RETVAL = (IV) lengthl; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (IV) lengthl; |
0 |
0 |
0 |
|
| 6039 |
|
| OUTPUT: |
| 6040 |
|
| RETVAL |
| 6041 |
|
| |
| 6042 |
|
| =for comment |
| 6043 |
|
| /* ----------------------------------------------------------------------- */ |
| 6044 |
|
| /* MarpaX::ESLIF::Recognizer::lastCompletedLocation */ |
| 6045 |
|
| /* ----------------------------------------------------------------------- */ |
| 6046 |
|
| =cut |
| 6047 |
|
| |
| 6048 |
|
| void |
| 6049 |
|
| lastCompletedLocation(p, name) |
| 6050 |
|
| SV *p; |
| 6051 |
|
| char *name; |
| 6052 |
|
| PREINIT: |
| 6053 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::lastCompletedLocation"; |
| 6054 |
|
| PPCODE: |
| 6055 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6056 |
|
| size_t lengthl; |
| 6057 |
|
| char *offsetp; |
| 6058 |
|
| |
| 6059 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &offsetp, &lengthl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_last_completedb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, name, &offsetp, &lengthl))) { |
0 |
0 |
0 |
|
| 6060 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_last_completedb failure, %s", strerror(errno)); |
| 6061 |
|
| } |
| 6062 |
0 |
▶ | EXTEND(SP, 2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 2); |
0 |
0 |
0 |
|
| 6063 |
0 |
| PUSHs(sv_2mortal(newSViv(PTR2IV(offsetp)))); |
| 6064 |
0 |
| PUSHs(sv_2mortal(newSViv((IV) lengthl))); |
| 6065 |
|
| |
| 6066 |
|
| =for comment |
| 6067 |
|
| /* ----------------------------------------------------------------------- */ |
| 6068 |
|
| /* MarpaX::ESLIF::Recognizer::line */ |
| 6069 |
|
| /* ----------------------------------------------------------------------- */ |
| 6070 |
|
| =cut |
| 6071 |
|
| |
| 6072 |
|
| IV |
| 6073 |
|
| line(p) |
| 6074 |
|
| SV *p; |
| 6075 |
|
| PREINIT: |
| 6076 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::line"; |
| 6077 |
|
| CODE: |
| 6078 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6079 |
|
| size_t linel; |
| 6080 |
|
| |
| 6081 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &linel, NULL /* columnlp */))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &linel, NULL /* columnlp */))) { |
0 |
0 |
0 |
|
| 6082 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_locationb failure, %s", strerror(errno)); |
| 6083 |
|
| } |
| 6084 |
0 |
▶ | RETVAL = (IV) linel; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (IV) linel; |
0 |
0 |
0 |
|
| 6085 |
|
| OUTPUT: |
| 6086 |
|
| RETVAL |
| 6087 |
|
| |
| 6088 |
|
| =for comment |
| 6089 |
|
| /* ----------------------------------------------------------------------- */ |
| 6090 |
|
| /* MarpaX::ESLIF::Recognizer::column */ |
| 6091 |
|
| /* ----------------------------------------------------------------------- */ |
| 6092 |
|
| =cut |
| 6093 |
|
| |
| 6094 |
|
| IV |
| 6095 |
|
| column(p) |
| 6096 |
|
| SV *p; |
| 6097 |
|
| PREINIT: |
| 6098 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::column"; |
| 6099 |
|
| CODE: |
| 6100 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6101 |
|
| size_t columnl; |
| 6102 |
|
| |
| 6103 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL /* linelp */, &columnl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, NULL /* linelp */, &columnl))) { |
0 |
0 |
0 |
|
| 6104 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_locationb failure, %s", strerror(errno)); |
| 6105 |
|
| } |
| 6106 |
0 |
▶ | RETVAL = (IV) columnl; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (IV) columnl; |
0 |
0 |
0 |
|
| 6107 |
|
| OUTPUT: |
| 6108 |
|
| RETVAL |
| 6109 |
|
| |
| 6110 |
|
| =for comment |
| 6111 |
|
| /* ----------------------------------------------------------------------- */ |
| 6112 |
|
| /* MarpaX::ESLIF::Recognizer::location */ |
| 6113 |
|
| /* ----------------------------------------------------------------------- */ |
| 6114 |
|
| =cut |
| 6115 |
|
| |
| 6116 |
|
| void |
| 6117 |
|
| location(p) |
| 6118 |
|
| SV *p; |
| 6119 |
|
| PREINIT: |
| 6120 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::location"; |
| 6121 |
|
| PPCODE: |
| 6122 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6123 |
|
| size_t linel; |
| 6124 |
|
| size_t columnl; |
| 6125 |
|
| |
| 6126 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &linel, &columnl))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_locationb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &linel, &columnl))) { |
0 |
0 |
0 |
|
| 6127 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_locationb failure, %s", strerror(errno)); |
| 6128 |
|
| } |
| 6129 |
0 |
▶ | EXTEND(SP, 2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 2); |
0 |
0 |
0 |
|
| 6130 |
0 |
| PUSHs(sv_2mortal(newSViv((IV) linel))); |
| 6131 |
0 |
| PUSHs(sv_2mortal(newSViv((IV) columnl))); |
| 6132 |
|
| |
| 6133 |
|
| =for comment |
| 6134 |
|
| /* ----------------------------------------------------------------------- */ |
| 6135 |
|
| /* MarpaX::ESLIF::Recognizer::hookDiscard */ |
| 6136 |
|
| /* ----------------------------------------------------------------------- */ |
| 6137 |
|
| =cut |
| 6138 |
|
| |
| 6139 |
|
| void |
| 6140 |
|
| hookDiscard(p, discardOnOffb) |
| 6141 |
|
| SV *p; |
| 6142 |
|
| short discardOnOffb; |
| 6143 |
|
| PREINIT: |
| 6144 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::hookDiscard"; |
| 6145 |
|
| CODE: |
| 6146 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6147 |
|
| |
| 6148 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_hook_discardb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, discardOnOffb))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_hook_discardb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, discardOnOffb))) { |
0 |
0 |
0 |
|
| 6149 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_hook_discardb failure, %s", strerror(errno)); |
| 6150 |
|
| } |
| 6151 |
|
| |
| 6152 |
|
| =for comment |
| 6153 |
|
| /* ----------------------------------------------------------------------- */ |
| 6154 |
|
| /* MarpaX::ESLIF::Recognizer::hookDiscardSwitch */ |
| 6155 |
|
| /* ----------------------------------------------------------------------- */ |
| 6156 |
|
| =cut |
| 6157 |
|
| |
| 6158 |
|
| void |
| 6159 |
|
| hookDiscardSwitch(p) |
| 6160 |
|
| SV *p; |
| 6161 |
|
| PREINIT: |
| 6162 |
|
| static const char *funcs = "MarpaX::ESLIF::Recognizer::hookDiscardSwitch"; |
| 6163 |
|
| CODE: |
| 6164 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6165 |
|
| |
| 6166 |
0 |
▶ | if (UNLIKELY(! marpaESLIFRecognizer_hook_discard_switchb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp))) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(! marpaESLIFRecognizer_hook_discard_switchb(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp))) { |
0 |
0 |
0 |
|
| 6167 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFRecognizer_hook_discard_switchb failure, %s", strerror(errno)); |
| 6168 |
|
| } |
| 6169 |
|
| |
| 6170 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Value |
| 6171 |
|
| |
| 6172 |
|
| PROTOTYPES: ENABLE |
| 6173 |
|
| |
| 6174 |
|
| =for comment |
| 6175 |
|
| /* ----------------------------------------------------------------------- */ |
| 6176 |
|
| /* MarpaX::ESLIF::Value::allocate */ |
| 6177 |
|
| /* ----------------------------------------------------------------------- */ |
| 6178 |
|
| =cut |
| 6179 |
|
| |
| 6180 |
|
| void * |
| 6181 |
|
| allocate(Perl_packagep, p, Perl_valueInterfacep) |
| 6182 |
|
| SV *Perl_packagep; |
| 6183 |
|
| SV *p; |
| 6184 |
|
| SV *Perl_valueInterfacep; |
| 6185 |
|
| PREINIT: |
| 6186 |
|
| static const char *funcs = "MarpaX::ESLIF::Value::allocate"; |
| 6187 |
|
| CODE: |
| 6188 |
0 |
| MarpaX_ESLIF_Recognizer_t *MarpaX_ESLIF_Recognizerp = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6189 |
|
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep; |
| 6190 |
|
| marpaESLIFValueOption_t marpaESLIFValueOption; |
| 6191 |
|
| |
| 6192 |
0 |
| Newx(MarpaX_ESLIF_Valuep, 1, MarpaX_ESLIF_Value_t); |
| 6193 |
0 |
| marpaESLIFPerl_valueContextInitv(aTHX_ MarpaX_ESLIF_Recognizerp->Perl_MarpaX_ESLIF_Grammarp, Perl_valueInterfacep, MarpaX_ESLIF_Valuep, MarpaX_ESLIF_Recognizerp->constantsp, MarpaX_ESLIF_Recognizerp->MarpaX_ESLIF_Grammarp->MarpaX_ESLIFp); |
| 6194 |
|
| |
| 6195 |
0 |
| marpaESLIFValueOption.userDatavp = MarpaX_ESLIF_Valuep; |
| 6196 |
0 |
| marpaESLIFValueOption.ruleActionResolverp = marpaESLIFPerl_valueRuleActionResolver; |
| 6197 |
0 |
| marpaESLIFValueOption.symbolActionResolverp = marpaESLIFPerl_valueSymbolActionResolver; |
| 6198 |
0 |
| marpaESLIFValueOption.importerp = marpaESLIFPerl_valueImportb; |
| 6199 |
0 |
| marpaESLIFValueOption.highRankOnlyb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithHighRankOnly", NULL /* subSvp */); |
| 6200 |
0 |
| marpaESLIFValueOption.orderByRankb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithOrderByRank", NULL /* subSvp */); |
| 6201 |
0 |
| marpaESLIFValueOption.ambiguousb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithAmbiguous", NULL /* subSvp */); |
| 6202 |
0 |
| marpaESLIFValueOption.nullb = marpaESLIFPerl_call_methodb(aTHX_ Perl_valueInterfacep, "isWithNull", NULL /* subSvp */); |
| 6203 |
0 |
| marpaESLIFValueOption.maxParsesi = (int) marpaESLIFPerl_call_methodi(aTHX_ Perl_valueInterfacep, "maxParses", NULL /* subSvp */); |
| 6204 |
|
| |
| 6205 |
0 |
| MarpaX_ESLIF_Valuep->marpaESLIFValuep = marpaESLIFValue_newp(MarpaX_ESLIF_Recognizerp->marpaESLIFRecognizerp, &marpaESLIFValueOption); |
| 6206 |
0 |
▶ | if (UNLIKELY(MarpaX_ESLIF_Valuep->marpaESLIFValuep == NULL)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(MarpaX_ESLIF_Valuep->marpaESLIFValuep == NULL)) { |
0 |
0 |
0 |
|
| 6207 |
0 |
| int save_errno = errno; |
| 6208 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ MarpaX_ESLIF_Valuep, 0 /* onStackb */); |
| 6209 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_newp failure, %s", strerror(save_errno)); |
| 6210 |
|
| } |
| 6211 |
|
| |
| 6212 |
0 |
▶ | RETVAL = MarpaX_ESLIF_Valuep; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = MarpaX_ESLIF_Valuep; |
0 |
0 |
0 |
|
| 6213 |
|
| OUTPUT: |
| 6214 |
|
| RETVAL |
| 6215 |
|
| |
| 6216 |
|
| =for comment |
| 6217 |
|
| /* ----------------------------------------------------------------------- */ |
| 6218 |
|
| /* MarpaX::ESLIF::Value::dispose */ |
| 6219 |
|
| /* ----------------------------------------------------------------------- */ |
| 6220 |
|
| =cut |
| 6221 |
|
| |
| 6222 |
|
| void |
| 6223 |
|
| dispose(p) |
| 6224 |
|
| SV *p; |
| 6225 |
|
| PREINIT: |
| 6226 |
|
| static const char *funcs = "MarpaX::ESLIF::Value::dispose"; |
| 6227 |
|
| CODE: |
| 6228 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6229 |
|
| |
| 6230 |
0 |
| marpaESLIFPerl_valueContextFreev(aTHX_ MarpaX_ESLIF_Valuep, 0 /* onStackb */); |
| 6231 |
|
| |
| 6232 |
|
| =for comment |
| 6233 |
|
| /* ----------------------------------------------------------------------- */ |
| 6234 |
|
| /* MarpaX::ESLIF::Value::value */ |
| 6235 |
|
| /* ----------------------------------------------------------------------- */ |
| 6236 |
|
| =cut |
| 6237 |
|
| |
| 6238 |
|
| bool |
| 6239 |
|
| value(p) |
| 6240 |
|
| SV *p; |
| 6241 |
|
| PREINIT: |
| 6242 |
|
| static const char *funcs = "MarpaX::ESLIF::Value::value"; |
| 6243 |
|
| CODE: |
| 6244 |
0 |
| MarpaX_ESLIF_Value_t *MarpaX_ESLIF_Valuep = marpaESLIFPerl_Perl2enginep(aTHX_ p); |
| 6245 |
|
| short valueb; |
| 6246 |
|
| SV *svp; |
| 6247 |
|
| |
| 6248 |
0 |
| valueb = marpaESLIFValue_valueb(MarpaX_ESLIF_Valuep->marpaESLIFValuep); |
| 6249 |
0 |
▶ | if (valueb < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (valueb < 0) { |
0 |
0 |
0 |
|
| 6250 |
0 |
| MARPAESLIFPERL_CROAKF("marpaESLIFValue_valueb failure, %s", strerror(errno)); |
| 6251 |
|
| } |
| 6252 |
0 |
▶ | if (valueb > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (valueb > 0) { |
0 |
0 |
0 |
|
| 6253 |
0 |
▶ | if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Valuep->internalStackp) != 1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UNLIKELY(marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Valuep->internalStackp) != 1)) { |
0 |
0 |
0 |
|
| 6254 |
0 |
| MARPAESLIFPERL_CROAKF("Internal value stack is %d instead of 1", marpaESLIFPerl_GENERICSTACK_USED(MarpaX_ESLIF_Valuep->internalStackp)); |
| 6255 |
|
| } |
| 6256 |
0 |
| svp = (SV *) marpaESLIFPerl_GENERICSTACK_POP_PTR(MarpaX_ESLIF_Valuep->internalStackp); |
| 6257 |
0 |
| marpaESLIFPerl_call_methodv(aTHX_ MarpaX_ESLIF_Valuep->Perl_valueInterfacep, "setResult", svp, MarpaX_ESLIF_Valuep->setResultSvp); |
| 6258 |
0 |
| RETVAL = (bool) 1; |
| 6259 |
|
| } else { |
| 6260 |
0 |
| RETVAL = (bool) 0; |
| 6261 |
|
| } |
| 6262 |
|
| OUTPUT: |
| 6263 |
|
| RETVAL |
| 6264 |
|
| |
| 6265 |
|
| =for comment |
| 6266 |
|
| /* ======================================================================= */ |
| 6267 |
|
| /* MarpaX::ESLIF::Event::Type */ |
| 6268 |
|
| /* ======================================================================= */ |
| 6269 |
|
| =cut |
| 6270 |
|
| |
| 6271 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Event::Type |
| 6272 |
|
| |
| 6273 |
|
| PROTOTYPES: ENABLE |
| 6274 |
|
| |
| 6275 |
|
| =for comment |
| 6276 |
|
| /* ----------------------------------------------------------------------- */ |
| 6277 |
|
| /* MarpaX::ESLIF::Event::Type::constant */ |
| 6278 |
|
| /* ----------------------------------------------------------------------- */ |
| 6279 |
|
| =cut |
| 6280 |
|
| |
| 6281 |
|
| INCLUDE: xs-event-types.inc |
| 6282 |
|
| |
| 6283 |
|
| =for comment |
| 6284 |
|
| /* ======================================================================= */ |
| 6285 |
|
| /* MarpaX::ESLIF::Value::Type */ |
| 6286 |
|
| /* ======================================================================= */ |
| 6287 |
|
| =cut |
| 6288 |
|
| |
| 6289 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Value::Type |
| 6290 |
|
| |
| 6291 |
|
| PROTOTYPES: ENABLE |
| 6292 |
|
| |
| 6293 |
|
| |
| 6294 |
|
| =for comment |
| 6295 |
|
| /* ----------------------------------------------------------------------- */ |
| 6296 |
|
| /* MarpaX::ESLIF::Value::Type::constant */ |
| 6297 |
|
| /* ----------------------------------------------------------------------- */ |
| 6298 |
|
| =cut |
| 6299 |
|
| |
| 6300 |
|
| INCLUDE: xs-value-types.inc |
| 6301 |
|
| |
| 6302 |
|
| =for comment |
| 6303 |
|
| /* ======================================================================= */ |
| 6304 |
|
| /* MarpaX::ESLIF::Logger::Level */ |
| 6305 |
|
| /* ======================================================================= */ |
| 6306 |
|
| =cut |
| 6307 |
|
| |
| 6308 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Logger::Level |
| 6309 |
|
| |
| 6310 |
|
| PROTOTYPES: ENABLE |
| 6311 |
|
| |
| 6312 |
|
| =for comment |
| 6313 |
|
| /* ----------------------------------------------------------------------- */ |
| 6314 |
|
| /* MarpaX::ESLIF::Logger::Level::constant */ |
| 6315 |
|
| /* ----------------------------------------------------------------------- */ |
| 6316 |
|
| =cut |
| 6317 |
|
| |
| 6318 |
|
| INCLUDE: xs-loggerLevel-types.inc |
| 6319 |
|
| |
| 6320 |
|
| =for comment |
| 6321 |
|
| /* ======================================================================= */ |
| 6322 |
|
| /* MarpaX::ESLIF::Rule::PropertyBitSet */ |
| 6323 |
|
| /* ======================================================================= */ |
| 6324 |
|
| =cut |
| 6325 |
|
| |
| 6326 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Rule::PropertyBitSet |
| 6327 |
|
| |
| 6328 |
|
| PROTOTYPES: ENABLE |
| 6329 |
|
| |
| 6330 |
|
| =for comment |
| 6331 |
|
| /* ----------------------------------------------------------------------- */ |
| 6332 |
|
| /* MarpaX::ESLIF::Rule::PropertyBitSet::constant */ |
| 6333 |
|
| /* ----------------------------------------------------------------------- */ |
| 6334 |
|
| =cut |
| 6335 |
|
| |
| 6336 |
|
| INCLUDE: xs-rulePropertyBitSet-types.inc |
| 6337 |
|
| |
| 6338 |
|
| =for comment |
| 6339 |
|
| /* ======================================================================= */ |
| 6340 |
|
| /* MarpaX::ESLIF::Symbol::PropertyBitSet */ |
| 6341 |
|
| /* ======================================================================= */ |
| 6342 |
|
| =cut |
| 6343 |
|
| |
| 6344 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Symbol::PropertyBitSet |
| 6345 |
|
| |
| 6346 |
|
| PROTOTYPES: ENABLE |
| 6347 |
|
| |
| 6348 |
|
| =for comment |
| 6349 |
|
| /* ----------------------------------------------------------------------- */ |
| 6350 |
|
| /* MarpaX::ESLIF::Symbol::PropertyBitSet::constant */ |
| 6351 |
|
| /* ----------------------------------------------------------------------- */ |
| 6352 |
|
| =cut |
| 6353 |
|
| |
| 6354 |
|
| INCLUDE: xs-symbolPropertyBitSet-types.inc |
| 6355 |
|
| |
| 6356 |
|
| =for comment |
| 6357 |
|
| /* ======================================================================= */ |
| 6358 |
|
| /* MarpaX::ESLIF::Symbol::EventBitSet */ |
| 6359 |
|
| /* ======================================================================= */ |
| 6360 |
|
| =cut |
| 6361 |
|
| |
| 6362 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Symbol::EventBitSet |
| 6363 |
|
| |
| 6364 |
|
| PROTOTYPES: ENABLE |
| 6365 |
|
| |
| 6366 |
|
| =for comment |
| 6367 |
|
| /* ----------------------------------------------------------------------- */ |
| 6368 |
|
| /* MarpaX::ESLIF::Symbol::EventBitSet::constant */ |
| 6369 |
|
| /* ----------------------------------------------------------------------- */ |
| 6370 |
|
| =cut |
| 6371 |
|
| |
| 6372 |
|
| INCLUDE: xs-symbolEventBitSet-types.inc |
| 6373 |
|
| |
| 6374 |
|
| =for comment |
| 6375 |
|
| /* ======================================================================= */ |
| 6376 |
|
| /* MarpaX::ESLIF::Symbol::Type */ |
| 6377 |
|
| /* ======================================================================= */ |
| 6378 |
|
| =cut |
| 6379 |
|
| |
| 6380 |
|
| MODULE = MarpaX::ESLIF PACKAGE = MarpaX::ESLIF::Symbol::Type |
| 6381 |
|
| |
| 6382 |
|
| PROTOTYPES: ENABLE |
| 6383 |
|
| |
| 6384 |
|
| =for comment |
| 6385 |
|
| /* ----------------------------------------------------------------------- */ |
| 6386 |
|
| /* MarpaX::ESLIF::Symbol::Type::constant */ |
| 6387 |
|
| /* ----------------------------------------------------------------------- */ |
| 6388 |
|
| =cut |
| 6389 |
|
| |
| 6390 |
|
| =for comment |
| 6391 |
|
| /* ======================================================================= */ |
| 6392 |
|
| /* MarpaX::ESLIF::Grammar::Symbol */ |
| 6393 |
|
| /* ======================================================================= */ |
| 6394 |
|
| =cut |
| 6395 |
|
| |
| 6396 |
|
| INCLUDE: xs-symbol-types.inc |