|
Aprepro 5.0x
|
#include <cstdio>#include <cstdlib>#include <cstring>#include <errno.h>#include <iostream>#include <FlexLexer.h>#include <assert.h>#include <fcntl.h>#include <fstream>#include <sstream>#include <stack>#include <stdio.h>#include <string.h>#include <unistd.h>#include "apr_getline.h"#include "apr_scanner.h"#include "apr_tokenize.h"#include "apr_util.h"#include "aprepro.h"#include "fmt/format.h"#include "fmt/ostream.h"#include "fmt/ranges.h"Classes | |
| struct | yy_buffer_state |
| struct | yy_trans_info |
Namespaces | |
| namespace | SEAMS |
| namespace | anonymous_namespace{apr_scanner.cc} |
Macros | |
| #define | YY_INT_ALIGNED short int |
| #define | FLEX_SCANNER |
| #define | YY_FLEX_MAJOR_VERSION 2 |
| #define | YY_FLEX_MINOR_VERSION 5 |
| #define | YY_FLEX_SUBMINOR_VERSION 39 |
| #define | yyFlexLexer SEAMSFlexLexer |
| #define | FLEXINT_H |
| #define | INT8_MIN (-128) |
| #define | INT16_MIN (-32767 - 1) |
| #define | INT32_MIN (-2147483647 - 1) |
| #define | INT8_MAX (127) |
| #define | INT16_MAX (32767) |
| #define | INT32_MAX (2147483647) |
| #define | UINT8_MAX (255U) |
| #define | UINT16_MAX (65535U) |
| #define | UINT32_MAX (4294967295U) |
| #define | yyconst |
| #define | YY_NULL 0 |
| #define | YY_SC_TO_UI(c) |
| #define | BEGIN (yy_start) = 1 + 2 * |
| #define | YY_START (((yy_start) - 1) / 2) |
| #define | YYSTATE YY_START |
| #define | YY_STATE_EOF(state) |
| #define | YY_NEW_FILE yyrestart(yyin) |
| #define | YY_END_OF_BUFFER_CHAR 0 |
| #define | YY_BUF_SIZE 16384 |
| #define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define | YY_TYPEDEF_YY_BUFFER_STATE |
| #define | YY_TYPEDEF_YY_SIZE_T |
| #define | EOB_ACT_CONTINUE_SCAN 0 |
| #define | EOB_ACT_END_OF_FILE 1 |
| #define | EOB_ACT_LAST_MATCH 2 |
| #define | YY_LESS_LINENO(n) |
| #define | YY_LINENO_REWIND_TO(ptr) |
| #define | yyless(n) |
| #define | unput(c) |
| #define | YY_STRUCT_YY_BUFFER_STATE |
| #define | YY_BUFFER_NEW 0 |
| #define | YY_BUFFER_NORMAL 1 |
| #define | YY_BUFFER_EOF_PENDING 2 |
| #define | YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) |
| #define | YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define | yy_new_buffer yy_create_buffer |
| #define | yy_set_interactive(is_interactive) |
| #define | yy_set_bol(at_bol) |
| #define | YY_AT_BOL() |
| #define | FLEX_DEBUG |
| #define | yytext_ptr yytext |
| #define | YY_INTERACTIVE |
| #define | YY_DO_BEFORE_ACTION |
| #define | YY_NUM_RULES 107 |
| #define | YY_END_OF_BUFFER 108 |
| #define | REJECT reject_used_but_not_detected |
| #define | yymore() |
| #define | YY_MORE_ADJ 0 |
| #define | YY_RESTORE_YY_MORE_OFFSET |
| #define | YY_NO_UNISTD_H |
| #define | yyterminate() |
| #define | MAX_IF_NESTING 1024 |
| #define | YY_USER_ACTION curr_index += yyleng; |
| #define | INITIAL 0 |
| #define | PARSING 1 |
| #define | GET_FILENAME 2 |
| #define | IF_SKIP 3 |
| #define | GET_VAR 4 |
| #define | VERBATIM 5 |
| #define | IF_WHILE_SKIP 6 |
| #define | GET_LOOP_VAR 7 |
| #define | LOOP 8 |
| #define | LOOP_SKIP 9 |
| #define | END_CASE_SKIP 10 |
| #define | YY_EXTRA_TYPE void * |
| #define | YY_READ_BUF_SIZE 8192 |
| #define | ECHO LexerOutput(yytext, yyleng) |
| #define | YY_INPUT(buf, result, max_size) |
| #define | YY_START_STACK_INCR 25 |
| #define | YY_FATAL_ERROR(msg) |
| #define | YY_BREAK break; |
| #define | YY_RULE_SETUP YY_USER_ACTION |
| #define | YY_EXIT_FAILURE 2 |
| #define | yyless(n) |
| #define | YYTABLES_NAME "yytables" |
Typedefs | |
| typedef signed char | flex_int8_t |
| typedef short int | flex_int16_t |
| typedef int | flex_int32_t |
| typedef unsigned char | flex_uint8_t |
| typedef unsigned short int | flex_uint16_t |
| typedef unsigned int | flex_uint32_t |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef size_t | yy_size_t |
| typedef unsigned char | YY_CHAR |
| typedef SEAMS::Parser::token | token |
| typedef SEAMS::Parser::token_type | token_type |
Functions | |
| void * | SEAMSalloc (yy_size_t) |
| void * | SEAMSrealloc (void *, yy_size_t) |
| void | SEAMSfree (void *) |
| void | SEAMS::yyerror (const char *s) |
| bool | anonymous_namespace{apr_scanner.cc}::string_is_ascii (const char *line, size_t len) |
| if (!(yy_init)) | |
| #define BEGIN (yy_start) = 1 + 2 * |
| #define ECHO LexerOutput(yytext, yyleng) |
| #define END_CASE_SKIP 10 |
| #define EOB_ACT_CONTINUE_SCAN 0 |
| #define EOB_ACT_END_OF_FILE 1 |
| #define EOB_ACT_LAST_MATCH 2 |
| #define FLEX_DEBUG |
| #define FLEX_SCANNER |
| #define FLEXINT_H |
| #define GET_FILENAME 2 |
| #define GET_LOOP_VAR 7 |
| #define GET_VAR 4 |
| #define IF_SKIP 3 |
| #define IF_WHILE_SKIP 6 |
| #define INITIAL 0 |
| #define INT16_MAX (32767) |
| #define INT16_MIN (-32767 - 1) |
| #define INT32_MAX (2147483647) |
| #define INT32_MIN (-2147483647 - 1) |
| #define INT8_MAX (127) |
| #define INT8_MIN (-128) |
| #define LOOP 8 |
| #define LOOP_SKIP 9 |
| #define MAX_IF_NESTING 1024 |
| #define PARSING 1 |
| #define REJECT reject_used_but_not_detected |
| #define UINT16_MAX (65535U) |
| #define UINT32_MAX (4294967295U) |
| #define UINT8_MAX (255U) |
| #define unput | ( | c | ) |
| #define VERBATIM 5 |
| #define YY_AT_BOL | ( | ) |
| #define YY_BREAK break; |
| #define YY_BUF_SIZE 16384 |
| #define YY_BUFFER_EOF_PENDING 2 |
| #define YY_BUFFER_NEW 0 |
| #define YY_BUFFER_NORMAL 1 |
| #define YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) |
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define YY_DO_BEFORE_ACTION |
| #define YY_END_OF_BUFFER 108 |
| #define YY_END_OF_BUFFER_CHAR 0 |
| #define YY_EXIT_FAILURE 2 |
| #define YY_EXTRA_TYPE void * |
| #define YY_FATAL_ERROR | ( | msg | ) |
| #define YY_FLEX_MAJOR_VERSION 2 |
| #define YY_FLEX_MINOR_VERSION 5 |
| #define YY_FLEX_SUBMINOR_VERSION 39 |
| #define YY_INPUT | ( | buf, | |
| result, | |||
| max_size ) |
| #define YY_INT_ALIGNED short int |
| #define YY_INTERACTIVE |
| #define YY_LESS_LINENO | ( | n | ) |
| #define YY_LINENO_REWIND_TO | ( | ptr | ) |
| #define YY_MORE_ADJ 0 |
| #define yy_new_buffer yy_create_buffer |
| #define YY_NEW_FILE yyrestart(yyin) |
| #define YY_NO_UNISTD_H |
| #define YY_NULL 0 |
| #define YY_NUM_RULES 107 |
| #define YY_READ_BUF_SIZE 8192 |
| #define YY_RESTORE_YY_MORE_OFFSET |
| #define YY_RULE_SETUP YY_USER_ACTION |
| #define YY_SC_TO_UI | ( | c | ) |
| #define yy_set_bol | ( | at_bol | ) |
| #define yy_set_interactive | ( | is_interactive | ) |
| #define YY_START (((yy_start) - 1) / 2) |
| #define YY_START_STACK_INCR 25 |
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define YY_STATE_EOF | ( | state | ) |
| #define YY_STRUCT_YY_BUFFER_STATE |
| #define YY_TYPEDEF_YY_BUFFER_STATE |
| #define YY_TYPEDEF_YY_SIZE_T |
| #define YY_USER_ACTION curr_index += yyleng; |
| #define yyconst |
| #define yyFlexLexer SEAMSFlexLexer |
| #define yyless | ( | n | ) |
| #define yyless | ( | n | ) |
| #define yymore | ( | ) |
| #define YYSTATE YY_START |
| #define YYTABLES_NAME "yytables" |
| #define yyterminate | ( | ) |
| #define yytext_ptr yytext |
| typedef short int flex_int16_t |
| typedef int flex_int32_t |
| typedef signed char flex_int8_t |
| typedef unsigned short int flex_uint16_t |
| typedef unsigned int flex_uint32_t |
| typedef unsigned char flex_uint8_t |
| typedef SEAMS::Parser::token token |
| typedef SEAMS::Parser::token_type token_type |
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
| typedef unsigned char YY_CHAR |
| typedef size_t yy_size_t |
| if | ( | ! | yy_init | ) |
| void * SEAMSalloc | ( | yy_size_t | ) |
| void SEAMSfree | ( | void * | ) |
| void * SEAMSrealloc | ( | void * | , |
| yy_size_t | ) |
| int curr_index = 0 |
| int file_must_exist = 0 |
| size_t hist_start = 0 |
| std::string history_string |
| int if_case_run[MAX_IF_NESTING] = {false} |
| int if_lvl = 0 |
| int if_skip_level = 0 |
| int if_state[MAX_IF_NESTING] = {0} |
| int loop_lvl = 0 |
| SEAMS::file_rec* outer_file = nullptr |
| bool suppress_nl = false |
| bool switch_active = false |
| bool switch_case_run = false |
| double switch_condition = 0.0 |
| bool switch_skip_to_endcase = false |
| const char* temp_f |
| std::fstream* tmp_file |
|
static |
| int yy_act |
|
static |
| char * yy_bp |
|
static |
| char* yy_cp |
| YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
|
static |
|
static |
|
static |
|
extern |