| 1 |
/* |
| 2 |
* Copyright 2022 Jeffrey Kegler |
| 3 |
* This file is part of Marpa::R2. Marpa::R2 is free software: you can |
| 4 |
* redistribute it and/or modify it under the terms of the GNU Lesser |
| 5 |
* General Public License as published by the Free Software Foundation, |
| 6 |
* either version 3 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* Marpa::R2 is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser |
| 14 |
* General Public License along with Marpa::R2. If not, see |
| 15 |
* http://www.gnu.org/licenses/. |
| 16 |
*/ |
| 17 |
|
| 18 |
|
| 19 |
/* Generated automatically by create_ops.pl |
| 20 |
* NOTE: Changes made to this file will be lost: look at create_ops.pl. |
| 21 |
*/ |
| 22 |
|
| 23 |
#define MARPA_OP_ALTERNATIVE 0 |
| 24 |
#define MARPA_OP_BLESS 1 |
| 25 |
#define MARPA_OP_CALLBACK 2 |
| 26 |
#define MARPA_OP_EARLEME_COMPLETE 3 |
| 27 |
#define MARPA_OP_END_MARKER 4 |
| 28 |
#define MARPA_OP_INVALID_CHAR 5 |
| 29 |
#define MARPA_OP_NOOP 6 |
| 30 |
#define MARPA_OP_PAUSE 7 |
| 31 |
#define MARPA_OP_PUSH_CONSTANT 8 |
| 32 |
#define MARPA_OP_PUSH_G1_LEN 9 |
| 33 |
#define MARPA_OP_PUSH_G1_LENGTH 10 |
| 34 |
#define MARPA_OP_PUSH_G1_START 11 |
| 35 |
#define MARPA_OP_PUSH_LENGTH 12 |
| 36 |
#define MARPA_OP_PUSH_ONE 13 |
| 37 |
#define MARPA_OP_PUSH_SEQUENCE 14 |
| 38 |
#define MARPA_OP_PUSH_START_LOCATION 15 |
| 39 |
#define MARPA_OP_PUSH_UNDEF 16 |
| 40 |
#define MARPA_OP_PUSH_VALUES 17 |
| 41 |
#define MARPA_OP_RESULT_IS_ARRAY 18 |
| 42 |
#define MARPA_OP_RESULT_IS_CONSTANT 19 |
| 43 |
#define MARPA_OP_RESULT_IS_N_OF_SEQUENCE 20 |
| 44 |
#define MARPA_OP_RESULT_IS_RHS_N 21 |
| 45 |
#define MARPA_OP_RESULT_IS_TOKEN_VALUE 22 |
| 46 |
#define MARPA_OP_RESULT_IS_UNDEF 23 |
| 47 |
#define MARPA_OP_RETRY_OR_SET_LEXER 24 |
| 48 |
#define MARPA_OP_SET_LEXER 25 |
| 49 |
|
| 50 |
static struct op_data_s op_by_name_object[] = { |
| 51 |
{ "alternative", MARPA_OP_ALTERNATIVE }, |
| 52 |
{ "bless", MARPA_OP_BLESS }, |
| 53 |
{ "callback", MARPA_OP_CALLBACK }, |
| 54 |
{ "earleme_complete", MARPA_OP_EARLEME_COMPLETE }, |
| 55 |
{ "end_marker", MARPA_OP_END_MARKER }, |
| 56 |
{ "invalid_char", MARPA_OP_INVALID_CHAR }, |
| 57 |
{ "noop", MARPA_OP_NOOP }, |
| 58 |
{ "pause", MARPA_OP_PAUSE }, |
| 59 |
{ "push_constant", MARPA_OP_PUSH_CONSTANT }, |
| 60 |
{ "push_g1_len", MARPA_OP_PUSH_G1_LEN }, |
| 61 |
{ "push_g1_length", MARPA_OP_PUSH_G1_LENGTH }, |
| 62 |
{ "push_g1_start", MARPA_OP_PUSH_G1_START }, |
| 63 |
{ "push_length", MARPA_OP_PUSH_LENGTH }, |
| 64 |
{ "push_one", MARPA_OP_PUSH_ONE }, |
| 65 |
{ "push_sequence", MARPA_OP_PUSH_SEQUENCE }, |
| 66 |
{ "push_start_location", MARPA_OP_PUSH_START_LOCATION }, |
| 67 |
{ "push_undef", MARPA_OP_PUSH_UNDEF }, |
| 68 |
{ "push_values", MARPA_OP_PUSH_VALUES }, |
| 69 |
{ "result_is_array", MARPA_OP_RESULT_IS_ARRAY }, |
| 70 |
{ "result_is_constant", MARPA_OP_RESULT_IS_CONSTANT }, |
| 71 |
{ "result_is_n_of_sequence", MARPA_OP_RESULT_IS_N_OF_SEQUENCE }, |
| 72 |
{ "result_is_rhs_n", MARPA_OP_RESULT_IS_RHS_N }, |
| 73 |
{ "result_is_token_value", MARPA_OP_RESULT_IS_TOKEN_VALUE }, |
| 74 |
{ "result_is_undef", MARPA_OP_RESULT_IS_UNDEF }, |
| 75 |
{ "retry_or_set_lexer", MARPA_OP_RETRY_OR_SET_LEXER }, |
| 76 |
{ "set_lexer", MARPA_OP_SET_LEXER }, |
| 77 |
}; |
| 78 |
|
| 79 |
static const char* op_name_by_id_object[] = { |
| 80 |
"alternative", |
| 81 |
"bless", |
| 82 |
"callback", |
| 83 |
"earleme_complete", |
| 84 |
"end_marker", |
| 85 |
"invalid_char", |
| 86 |
"noop", |
| 87 |
"pause", |
| 88 |
"push_constant", |
| 89 |
"push_g1_len", |
| 90 |
"push_g1_length", |
| 91 |
"push_g1_start", |
| 92 |
"push_length", |
| 93 |
"push_one", |
| 94 |
"push_sequence", |
| 95 |
"push_start_location", |
| 96 |
"push_undef", |
| 97 |
"push_values", |
| 98 |
"result_is_array", |
| 99 |
"result_is_constant", |
| 100 |
"result_is_n_of_sequence", |
| 101 |
"result_is_rhs_n", |
| 102 |
"result_is_token_value", |
| 103 |
"result_is_undef", |
| 104 |
"retry_or_set_lexer", |
| 105 |
"set_lexer", |
| 106 |
}; |
| 107 |
|