LibreOffice Module hwpfilter (master) 1
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "nodes.h"
#include "grammar.h"
#include "lexer.hxx"
Go to the source code of this file.
Typedefs | |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
static void yyrestart | YY_PROTO ((FILE *input_file)) |
static void yy_switch_to_buffer | YY_PROTO ((YY_BUFFER_STATE new_buffer)) |
static void yy_load_buffer_state | YY_PROTO (()) |
static YY_BUFFER_STATE yy_create_buffer | YY_PROTO ((FILE *file, int size)) |
static void yy_delete_buffer | YY_PROTO ((YY_BUFFER_STATE b)) |
static void yy_init_buffer | YY_PROTO ((YY_BUFFER_STATE b, FILE *file)) |
static YY_BUFFER_STATE yy_scan_buffer | YY_PROTO ((char *base, yy_size_t size)) |
static YY_BUFFER_STATE yy_scan_string | YY_PROTO ((yyconst char *yy_str)) |
static YY_BUFFER_STATE yy_scan_bytes | YY_PROTO ((yyconst char *bytes, int len)) |
static void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
static void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
static void yy_flex_free | YY_PROTO ((void *)) |
static yy_state_type yy_try_NUL_trans | YY_PROTO ((yy_state_type current_state)) |
static void yy_fatal_error | YY_PROTO ((yyconst char msg[])) |
static int | yywrap () |
static int | token_debug (const char *format,...) |
if (yy_init) | |
while (true) | |
static int | yy_get_next_buffer () |
static yy_state_type | yy_get_previous_state () |
static yy_state_type | yy_try_NUL_trans (yy_state_type yy_current_state) |
void | yyrestart (FILE *input_file) |
void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
void | yy_load_buffer_state () |
YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size) |
void | yy_delete_buffer (YY_BUFFER_STATE b) |
void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
void | yy_flush_buffer (YY_BUFFER_STATE b) |
YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | yy_scan_string (yyconst char *yy_str) |
YY_BUFFER_STATE | yy_scan_bytes (yyconst char *bytes, int len) |
static void | yy_fatal_error (yyconst char msg[]) |
static void * | yy_flex_alloc (yy_size_t size) |
static void * | yy_flex_realloc (void *ptr, yy_size_t size) |
static void | yy_flex_free (void *ptr) |
void | initFlex (const char *_code) |
void | deinitFlex () |
Variables | |
static YY_BUFFER_STATE | yy_current_buffer = nullptr |
static char | yy_hold_char |
static int | yy_n_chars |
static int | yyleng |
static char * | yy_c_buf_p = nullptr |
static int | yy_init = 1 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
static FILE * | yyin = nullptr |
static FILE * | yyout = nullptr |
yyconst short int | yy_accept [994] |
yyconst int | yy_ec [256] |
yyconst int | yy_meta [74] |
yyconst short int | yy_base [995] |
yyconst short int | yy_def [995] |
yyconst short int | yy_nxt [1389] |
yyconst short int | yy_chk [1389] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
static char * | yytext |
YY_DECL | |
char * | yy_cp |
char * | yy_bp |
int | yy_act |
#define YY_CURRENT_BUFFER yy_current_buffer |
#define YY_DO_BEFORE_ACTION |
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
#define YY_RULE_SETUP YY_USER_ACTION |
#define YY_SC_TO_UI | ( | c | ) | (static_cast<unsigned int>(static_cast<unsigned char>(c))) |
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
typedef int yy_state_type |
void deinitFlex | ( | ) |
Definition at line 2109 of file lexer.cxx.
References YY_CURRENT_BUFFER, yy_delete_buffer(), and yy_init.
Referenced by mainParse().
if | ( | yy_init | ) |
Definition at line 1086 of file lexer.cxx.
References YY_BUF_SIZE, yy_create_buffer(), yy_current_buffer, yy_init, yy_load_buffer_state(), yy_start, yyin, and yyout.
Referenced by HwpReader::parseCharShape().
void initFlex | ( | const char * | _code | ) |
Definition at line 2104 of file lexer.cxx.
References yy_scan_string(), and yy_switch_to_buffer().
Referenced by mainParse().
|
static |
while | ( | true | ) |
Definition at line 1110 of file lexer.cxx.
References ACCENT, ARROW, BIG_SYMBOL, BINARY_OPERATOR, CAPITAL_GREEK, CHARACTER, DECORATION, DELIMETER, DIGIT, YYSTYPE::dval, ECHO, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQBEGIN, EQEND, EQLEFT, EQOVER, EQRIGHT, FRACTION, FUNCTION, GENERAL_IDEN, GENERAL_OPER, INITIAL, LARGE_DELIM, LEFT_DELIM, NEWLINE, OPERATOR, RELATION_OPERATOR, RIGHT_DELIM, ROOT, SMALL_GREEK, YYSTYPE::str, STRING, token_debug(), yy_accept, yy_act, yy_base, yy_bp, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_chk, yy_cp, yy_current_buffer, yy_def, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyin, yylval, yyterminate, yytext, yytext_ptr, and yywrap().
YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
int | size | ||
) |
Definition at line 1747 of file lexer.cxx.
References FILE, size, YY_FATAL_ERROR, yy_flex_alloc(), and yy_init_buffer().
Referenced by if(), and yyrestart().
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Definition at line 1778 of file lexer.cxx.
References yy_current_buffer, and yy_flex_free().
Referenced by deinitFlex(), and yywrap().
|
static |
Definition at line 2011 of file lexer.cxx.
References YY_EXIT_FAILURE.
|
static |
Definition at line 2058 of file lexer.cxx.
References size.
Referenced by yy_create_buffer(), yy_scan_buffer(), and yy_scan_bytes().
|
static |
Definition at line 2086 of file lexer.cxx.
Referenced by yy_delete_buffer().
|
static |
void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Definition at line 1831 of file lexer.cxx.
References YY_BUFFER_NEW, yy_current_buffer, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state().
Referenced by yy_init_buffer().
|
static |
Definition at line 1494 of file lexer.cxx.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, i, YY_BUFFER_EOF_PENDING, yy_c_buf_p, yy_current_buffer, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_flex_realloc(), YY_INPUT, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, yyin, yyrestart(), and yytext_ptr.
Referenced by while().
|
static |
Definition at line 1626 of file lexer.cxx.
References yy_accept, yy_base, yy_c_buf_p, yy_chk, yy_cp, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by while().
void yy_init_buffer | ( | YY_BUFFER_STATE | b, |
FILE * | file | ||
) |
Definition at line 1804 of file lexer.cxx.
References FILE, and yy_flush_buffer().
Referenced by yy_create_buffer(), and yyrestart().
void yy_load_buffer_state | ( | ) |
Definition at line 1734 of file lexer.cxx.
References yy_c_buf_p, yy_current_buffer, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.
Referenced by if(), yy_flush_buffer(), yy_switch_to_buffer(), and yyrestart().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
Definition at line 1862 of file lexer.cxx.
References base, size, YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_flex_alloc(), and yy_switch_to_buffer().
Referenced by yy_scan_bytes().
Definition at line 1917 of file lexer.cxx.
References i, n, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_flex_alloc(), and yy_scan_buffer().
Referenced by yy_scan_string().
YY_BUFFER_STATE yy_scan_string | ( | yyconst char * | yy_str | ) |
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Definition at line 1704 of file lexer.cxx.
References yy_c_buf_p, yy_current_buffer, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), and yy_n_chars.
Referenced by initFlex(), and yy_scan_buffer().
|
static |
Definition at line 1661 of file lexer.cxx.
References yy_accept, yy_base, yy_c_buf_p, yy_chk, yy_cp, yy_def, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, and yy_nxt.
Referenced by while().
void yyrestart | ( | FILE * | input_file | ) |
Definition at line 1689 of file lexer.cxx.
References FILE, YY_BUF_SIZE, yy_create_buffer(), yy_current_buffer, yy_init_buffer(), yy_load_buffer_state(), and yyin.
Referenced by yy_get_next_buffer().
|
static |
Definition at line 2116 of file lexer.cxx.
References YY_CURRENT_BUFFER, and yy_delete_buffer().
Referenced by while().
Definition at line 236 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
Definition at line 394 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 189 of file lexer.cxx.
Referenced by while(), yy_get_next_buffer(), yy_get_previous_state(), yy_load_buffer_state(), yy_switch_to_buffer(), and yy_try_NUL_trans().
Definition at line 778 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
char* yy_cp |
Definition at line 1083 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 171 of file lexer.cxx.
Referenced by if(), while(), yy_delete_buffer(), yy_flush_buffer(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), and yyrestart().
YY_DECL |
Definition at line 508 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 196 of file lexer.cxx.
Referenced by while(), and yy_switch_to_buffer().
Definition at line 350 of file lexer.cxx.
Referenced by while(), and yy_get_previous_state().
|
static |
Definition at line 181 of file lexer.cxx.
Referenced by while(), yy_load_buffer_state(), and yy_switch_to_buffer().
|
static |
Definition at line 190 of file lexer.cxx.
Referenced by deinitFlex(), and if().
|
static |
Definition at line 935 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 934 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
Definition at line 382 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 183 of file lexer.cxx.
Referenced by while(), yy_get_next_buffer(), yy_load_buffer_state(), and yy_switch_to_buffer().
Definition at line 622 of file lexer.cxx.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 191 of file lexer.cxx.
Referenced by if(), while(), and yy_get_previous_state().
|
static |
Definition at line 216 of file lexer.cxx.
Referenced by if(), while(), yy_get_next_buffer(), yy_load_buffer_state(), and yyrestart().