GnuCOBOL
2.0
A free COBOL compiler
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "config.h"
#include <ctype.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "cobc.h"
#include "ppparse.h"
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | copy_info |
struct | plex_stack |
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 int | yy_state_type |
Functions | |
void | pprestart (FILE *input_file) |
Immediately switch to a different input stream. More... | |
void | pp_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
Switch to a different input buffer. More... | |
YY_BUFFER_STATE | pp_create_buffer (FILE *file, int size) |
Allocate and initialize an input buffer state. More... | |
void | pp_delete_buffer (YY_BUFFER_STATE b) |
Destroy the buffer. More... | |
void | pp_flush_buffer (YY_BUFFER_STATE b) |
Discard all buffered characters. More... | |
void | pppush_buffer_state (YY_BUFFER_STATE new_buffer) |
Pushes the new state onto the stack. More... | |
void | pppop_buffer_state (void) |
Removes and deletes the top of the stack, if present. More... | |
static void | ppensure_buffer_stack (void) |
static void | pp_load_buffer_state (void) |
static void | pp_init_buffer (YY_BUFFER_STATE b, FILE *file) |
YY_BUFFER_STATE | pp_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | pp_scan_string (char *yy_str) |
YY_BUFFER_STATE | pp_scan_bytes (char *bytes, yy_size_t len) |
void * | ppalloc (yy_size_t) |
void * | pprealloc (void *, yy_size_t) |
void | ppfree (void *) |
static yy_state_type | yy_get_previous_state (void) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
static int | yy_get_next_buffer (void) |
static void | yy_fatal_error (char msg[]) |
static int | ppwrap (void) |
static int | ppinput (char *, const size_t) |
static void | ppecho (const char *, const cob_u32_t, const int) |
static void | switch_to_buffer (const int, const char *, const YY_BUFFER_STATE) |
static void | check_listing (const char *, const unsigned int) |
static void | skip_to_eol (void) |
static void | display_to_eol (void) |
static void | check_comments (const char *, const char *) |
static int | yy_init_globals (void) |
Get the current token. More... | |
int | pplex_destroy (void) |
static void | yyunput (int c, char *buf_ptr) |
static int | input (void) |
static void | yy_push_state (int new_state) |
static void | yy_pop_state (void) |
int | pplex (void) |
The main scanner function which does all the work. More... | |
static void | yyunput (int c, register char *yy_bp) |
static void | yy_fatal_error (char *msg) |
void | pp_set_replace_list (struct cb_replace_list *list, const cob_u32_t is_pushpop) |
int | ppopen (const char *name, struct cb_replace_list *replacing_list) |
int | ppcopy (const char *name, const char *lib, struct cb_replace_list *replace_list) |
void | ppparse_error (const char *msg) |
void | plex_clear_vars (void) |
void | plex_clear_all (void) |
void | plex_call_destroy (void) |
void | plex_action_directive (const unsigned int cmdtype, const unsigned int is_true) |
static struct cb_text_list * | pp_text_list_add (struct cb_text_list *list, const char *text, const size_t size) |
Variables | |
yy_size_t | ppleng |
FILE * | ppin = (FILE *) 0 |
FILE * | ppout = (FILE *) 0 |
static size_t | yy_buffer_stack_top = 0 |
index of top of stack. More... | |
static size_t | yy_buffer_stack_max = 0 |
capacity of stack. More... | |
static YY_BUFFER_STATE * | yy_buffer_stack = 0 |
Stack as an array. More... | |
static char | yy_hold_char |
static yy_size_t | yy_n_chars |
static char * | yy_c_buf_p = (char *) 0 |
static int | yy_init = 0 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
int | pplineno = 1 |
char * | pptext |
static flex_int16_t | yy_accept [1082] |
static flex_int32_t | yy_ec [256] |
static flex_int32_t | yy_meta [74] |
static flex_int16_t | yy_base [1183] |
static flex_int16_t | yy_def [1183] |
static flex_int16_t | yy_nxt [5374] |
static flex_int16_t | yy_chk [5374] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
int | pp_flex_debug = 0 |
static char * | plexbuff1 = ((void*)0) |
static char * | plexbuff2 = ((void*)0) |
static size_t | newline_count = 0 |
static size_t | within_comment = 0 |
static size_t | inside_bracket = 0 |
static size_t | consecutive_quotation = 0 |
static size_t | need_continuation = 0 |
static size_t | buffer_overflow = 0 |
static size_t | comment_allowed |
static unsigned int | plex_skip_input = 0 |
static unsigned int | plex_nest_depth = 0 |
static int | quotation_mark = 0 |
static int | listing_line = 0 |
static int | requires_listing_line |
static int | requires_new_line = 0 |
static struct cb_replace_list * | current_replace_list = ((void*)0) |
static struct cb_replace_list * | save_current_replace = ((void*)0) |
static struct cb_replace_list * | base_replace_list = ((void*)0) |
static struct cb_text_list * | text_queue = ((void*)0) |
static struct copy_info * | copy_stack = ((void*)0) |
static struct plex_stack | plex_cond_stack [16] |
static int | yy_start_stack_ptr = 0 |
static int | yy_start_stack_depth = 0 |
static int * | yy_start_stack = ((void*)0) |
Definition at line 146 of file pplex.c.
Referenced by pplex(), yy_pop_state(), and yy_push_state().
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 194 of file pplex.c.
Referenced by input(), pplex(), and yy_get_next_buffer().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 195 of file pplex.c.
Referenced by input(), pplex(), and yy_get_next_buffer().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 196 of file pplex.c.
Referenced by input(), pplex(), and yy_get_next_buffer().
#define PLEX_COND_DEPTH 16 |
Definition at line 2105 of file pplex.c.
Referenced by plex_action_directive().
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 215 of file pplex.c.
Referenced by display_to_eol(), pplex(), and skip_to_eol().
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 361 of file pplex.c.
Referenced by pplex(), and yy_get_previous_state().
#define YY_BUF_SIZE 16384 |
Definition at line 2065 of file pplex.c.
Referenced by pplex(), ppopen(), and pprestart().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 277 of file pplex.c.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 265 of file pplex.c.
Referenced by pp_flush_buffer(), and pplex().
#define yy_create_buffer pp_create_buffer |
#define YY_CURRENT_BUFFER |
Definition at line 293 of file pplex.c.
Referenced by pp_delete_buffer(), pp_flush_buffer(), pp_init_buffer(), pp_switch_to_buffer(), pplex(), pplex_destroy(), ppopen(), pppop_buffer_state(), pppush_buffer_state(), and pprestart().
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 300 of file pplex.c.
Referenced by input(), pp_delete_buffer(), pp_load_buffer_state(), pp_switch_to_buffer(), pplex(), pplex_destroy(), pppop_buffer_state(), pppush_buffer_state(), pprestart(), yy_get_next_buffer(), and yyunput().
#define yy_delete_buffer pp_delete_buffer |
#define YY_DO_BEFORE_ACTION |
Definition at line 386 of file pplex.c.
Referenced by pplex().
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 161 of file pplex.c.
Referenced by input(), pp_flush_buffer(), and yy_get_next_buffer().
#define YY_EXIT_FAILURE 2 |
Definition at line 4249 of file pplex.c.
Referenced by yy_fatal_error().
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 2316 of file pplex.c.
Referenced by pp_create_buffer(), ppensure_buffer_stack(), pplex(), yy_get_next_buffer(), yy_pop_state(), yy_push_state(), and yyunput().
int yy_flex_debug pp_flex_debug |
#define yy_flush_buffer pp_flush_buffer |
#define YY_FLUSH_BUFFER pp_flush_buffer(YY_CURRENT_BUFFER ) |
#define yy_init_buffer pp_init_buffer |
Definition at line 2073 of file pplex.c.
Referenced by yy_get_next_buffer().
#define yy_load_buffer_state pp_load_buffer_state |
#define YY_MORE_ADJ 0 |
Definition at line 2038 of file pplex.c.
Referenced by pplex(), yy_get_next_buffer(), and yy_get_previous_state().
#define yy_new_buffer pp_create_buffer |
#define YY_READ_BUF_SIZE 32768 |
Definition at line 2063 of file pplex.c.
Referenced by yy_get_next_buffer().
#define YY_RULE_SETUP |
Definition at line 2344 of file pplex.c.
Referenced by pplex().
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 140 of file pplex.c.
Referenced by pplex(), and yy_get_previous_state().
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 152 of file pplex.c.
Referenced by pplex(), and yy_push_state().
#define YY_START_STACK_INCR 25 |
Definition at line 2311 of file pplex.c.
Referenced by yy_push_state().
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
#define yy_switch_to_buffer pp_switch_to_buffer |
#define YY_USER_INIT |
Definition at line 2076 of file pplex.c.
Referenced by pplex().
FILE * yyin ppin |
Definition at line 16 of file pplex.c.
Referenced by cobc_clean_up(), main(), and process_translate().
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
FILE * yyout ppout |
Definition at line 20 of file pplex.c.
Referenced by cobc_clean_up(), codegen(), main(), and process_translate().
Definition at line 376 of file pplex.c.
Referenced by input(), pp_load_buffer_state(), pplex(), yy_get_next_buffer(), yy_get_previous_state(), and yyunput().
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 struct yy_buffer_state* YY_BUFFER_STATE |
typedef int yy_state_type |
|
static |
Definition at line 5305 of file pplex.c.
References cb_verify(), ppecho(), ppleng, and skip_to_eol().
Referenced by pplex().
|
static |
Definition at line 5319 of file pplex.c.
References CB_FORMAT_FIXED, cb_listing_file, cb_source_format, cobc_gen_listing, and cb_text_list::text.
Referenced by ppecho(), and pplex().
|
static |
|
static |
Definition at line 3881 of file pplex.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, ppin, pprestart(), ppwrap(), yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yy_hold_char, yy_n_chars, YY_NEW_FILE, and yytext_ptr.
Referenced by display_to_eol(), and skip_to_eol().
void plex_action_directive | ( | const unsigned int | cmdtype, |
const unsigned int | is_true | ||
) |
Definition at line 4589 of file pplex.c.
References _, cb_plex_error(), cb_source_line, plex_stack::cmd, COBC_ABORT, cobc_abort_pr(), plex_stack::cond, plex_stack::line, PLEX_ACT_ELIF, PLEX_ACT_ELSE, PLEX_ACT_END, PLEX_ACT_IF, PLEX_COND_DEPTH, plex_cond_stack, plex_nest_depth, and plex_stack::skip.
Referenced by ppparse().
void plex_call_destroy | ( | void | ) |
Definition at line 4583 of file pplex.c.
References pplex_destroy().
Referenced by preprocess().
void plex_clear_all | ( | void | ) |
Definition at line 4570 of file pplex.c.
References cobc_free(), and NULL.
Referenced by main().
void plex_clear_vars | ( | void | ) |
Definition at line 4559 of file pplex.c.
References plex_cond_stack.
Referenced by preprocess().
YY_BUFFER_STATE pp_create_buffer | ( | FILE * | file, |
int | size | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
Definition at line 4020 of file pplex.c.
References pp_init_buffer(), ppalloc(), yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by pplex(), ppopen(), and pprestart().
void pp_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with pp_create_buffer() |
Definition at line 4048 of file pplex.c.
References ppfree(), yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_buffer_state::yy_is_our_buffer.
Referenced by pplex(), pplex_destroy(), and pppop_buffer_state().
void pp_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 4095 of file pplex.c.
References pp_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.
Referenced by pp_init_buffer().
|
static |
Definition at line 4067 of file pplex.c.
References file, pp_flush_buffer(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
Referenced by pp_create_buffer(), and pprestart().
|
static |
Definition at line 4006 of file pplex.c.
References ppin, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, and yytext_ptr.
Referenced by pp_flush_buffer(), pp_switch_to_buffer(), pplex(), pppop_buffer_state(), pppush_buffer_state(), and pprestart().
YY_BUFFER_STATE pp_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
YY_BUFFER_STATE pp_scan_bytes | ( | char * | bytes, |
yy_size_t | len | ||
) |
YY_BUFFER_STATE pp_scan_string | ( | char * | yy_str | ) |
void pp_set_replace_list | ( | struct cb_replace_list * | list, |
const cob_u32_t | is_pushpop | ||
) |
Definition at line 4394 of file pplex.c.
References base_replace_list, cb_replace_list::last, cb_replace_list::next, NULL, and cb_replace_list::prev.
Referenced by ppparse().
void pp_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 3975 of file pplex.c.
References pp_load_buffer_state(), ppensure_buffer_stack(), yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.
Referenced by switch_to_buffer().
|
static |
Definition at line 5097 of file pplex.c.
References cobc_plex_malloc(), cb_text_list::last, cb_text_list::next, and cb_text_list::text.
Referenced by ppecho().
void * ppalloc | ( | yy_size_t | size | ) |
Definition at line 4363 of file pplex.c.
Referenced by pp_create_buffer(), ppensure_buffer_stack(), and yy_push_state().
int ppcopy | ( | const char * | name, |
const char * | lib, | ||
struct cb_replace_list * | replace_list | ||
) |
Definition at line 4508 of file pplex.c.
References _, cb_error(), cb_extension_list, cb_include_list, COB_SMALL_MAX, cb_text_list::next, plexbuff1, ppopen(), R_OK, and cb_text_list::text.
Referenced by ppparse().
|
static |
Definition at line 5117 of file pplex.c.
References base_replace_list, cb_listing_file, CB_REPLACE_LEADING, CB_REPLACE_TRAILING, check_listing(), cobc_free(), cobc_strdup(), cb_replace_list::last, cb_replace_list::lead_trail, cb_replace_list::new_text, cb_text_list::next, cb_replace_list::next, NULL, cb_replace_list::old_text, pp_text_list_add(), ppout, pptext, cb_text_list::text, and text_queue.
Referenced by check_comments(), and pplex().
|
static |
Definition at line 4173 of file pplex.c.
References ppalloc(), pprealloc(), yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by pp_switch_to_buffer(), pplex(), pppush_buffer_state(), and pprestart().
void ppfree | ( | void * | ptr | ) |
Definition at line 4380 of file pplex.c.
Referenced by pp_delete_buffer(), and pplex_destroy().
|
static |
Definition at line 4688 of file pplex.c.
References _, CB_FORMAT_FIXED, CB_FORMAT_FREE, cb_plex_error(), cb_plex_warning(), cb_source_format, cb_verify(), likely, newline_count, ppin, PPLEX_BUFF_LEN, unlikely, and YY_NULL.
int pplex | ( | void | ) |
The main scanner function which does all the work.
Definition at line 2352 of file pplex.c.
References _, ALSO, AS, BEGIN, copy_info::buffer, BY, cb_error(), CB_FORMAT_FREE, cb_plex_warning(), cb_source_format, cb_source_line, cb_verify(), check_comments(), check_listing(), CHECKING, cobc_free(), cobc_plex_strdup(), CONSTANT, COPY, copy_stack, COPY_STATE, DEFINE_DIRECTIVE, DEFINE_DIRECTIVE_STATE, DEFINED, display_to_eol(), copy_info::dname, DOT, ECHO, ELIF_DIRECTIVE, ELSE_DIRECTIVE, ELSE_DIRECTIVE_STATE, ENDIF_DIRECTIVE, ENDIF_DIRECTIVE_STATE, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQ, EQEQ, EQUAL, copy_info::file, FIXED, FOLDCOPYNAME, FORMAT, FREE, GE, GREATER, GT, IF_DIRECTIVE, IF_DIRECTIVE_STATE, IN, INITIAL, IS, LAST, LE, LEADING, LESS, copy_info::line, plex_stack::line, LITERAL, LOCATION, LT, NE, copy_info::next, NOFOLDCOPYNAME, NOT, NULL, OF, OFF, ON, OR, OVERRIDE, PARAMETER, plex_cond_stack, plex_nest_depth, pp_create_buffer(), pp_delete_buffer(), pp_load_buffer_state(), ppecho(), ppensure_buffer_stack(), ppin, ppleng, pplval, ppout, ppwrap(), PRINTING, PSEUDO_STATE, copy_info::quotation_mark, REPLACE, REPLACING, copy_info::replacing, YYSTYPE::s, SET, SET_DIRECTIVE, SET_DIRECTIVE_STATE, skip_to_eol(), SOURCE_DIRECTIVE, SOURCE_DIRECTIVE_STATE, copy_info::source_format, SOURCEFORMAT, SUPPRESS, switch_to_buffer(), TERMINATOR, THAN, TO, TOKEN, TRAILING, TURN_DIRECTIVE, TURN_DIRECTIVE_STATE, unput, VARIABLE, warningopt, WITH, YY_AT_BOL, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_init, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, yy_pop_state(), yy_push_state(), YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_try_NUL_trans(), YY_USER_INIT, yyterminate, and yytext_ptr.
int pplex_destroy | ( | void | ) |
Definition at line 4314 of file pplex.c.
References NULL, pp_delete_buffer(), ppfree(), pppop_buffer_state(), yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_globals(), and yy_start_stack.
Referenced by plex_call_destroy().
int ppopen | ( | const char * | name, |
struct cb_replace_list * | replacing_list | ||
) |
Definition at line 4420 of file pplex.c.
References _, copy_info::buffer, cb_error(), cb_source_file, cb_source_format, cb_source_line, COB_DASH, cobc_malloc(), cobc_strdup(), copy_stack, current_replace_list, copy_info::dname, errorcount, copy_info::file, cb_replace_list::last, copy_info::line, cb_replace_list::next, copy_info::next, pp_create_buffer(), ppin, copy_info::quotation_mark, quotation_mark, copy_info::replacing, copy_info::source_format, switch_to_buffer(), YY_BUF_SIZE, and YY_CURRENT_BUFFER.
Referenced by ppcopy(), and preprocess().
void ppparse_error | ( | const char * | msg | ) |
Definition at line 4553 of file pplex.c.
References cb_plex_error().
void pppop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
Definition at line 4154 of file pplex.c.
References NULL, pp_delete_buffer(), pp_load_buffer_state(), yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_did_buffer_switch_on_eof.
Referenced by pplex_destroy().
void pppush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Pushes the new state onto the stack.
The new state becomes the current state. This function will allocate the stack if necessary.
new_buffer | The new state. |
Definition at line 4124 of file pplex.c.
References NULL, pp_load_buffer_state(), ppensure_buffer_stack(), yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.
void * pprealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 4368 of file pplex.c.
Referenced by ppensure_buffer_stack(), yy_get_next_buffer(), and yy_push_state().
void pprestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 3958 of file pplex.c.
References pp_create_buffer(), pp_init_buffer(), pp_load_buffer_state(), ppensure_buffer_stack(), ppin, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by input(), and yy_get_next_buffer().
|
static |
|
static |
|
static |
Definition at line 4677 of file pplex.c.
References cb_source_file, cb_source_line, cobc_plex_strdup(), line, pp_switch_to_buffer(), and ppout.
Referenced by pplex(), and ppopen().
|
static |
|
static |
|
static |
Definition at line 3650 of file pplex.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, ppin, pprealloc(), pprestart(), yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, and yytext_ptr.
Referenced by input(), and pplex().
|
static |
Definition at line 3784 of file pplex.c.
References YY_AT_BOL, yy_c_buf_p, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by pplex().
|
static |
Get the current token.
Definition at line 4281 of file pplex.c.
References NULL, ppin, ppout, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, yy_start_stack, yy_start_stack_depth, and yy_start_stack_ptr.
Referenced by pplex_destroy().
|
static |
Definition at line 4240 of file pplex.c.
References BEGIN, and YY_FATAL_ERROR.
Referenced by pplex().
|
static |
Definition at line 4216 of file pplex.c.
References BEGIN, ppalloc(), pprealloc(), YY_FATAL_ERROR, YY_START, yy_start_stack, yy_start_stack_depth, and YY_START_STACK_INCR.
Referenced by pplex().
|
static |
Definition at line 3817 of file pplex.c.
References yy_c_buf_p, yy_last_accepting_cpos, and yy_last_accepting_state.
Referenced by pplex().
|
static |
|
static |
Definition at line 3840 of file pplex.c.
References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.
|
static |
Definition at line 2147 of file pplex.c.
Referenced by pp_set_replace_list(), and ppecho().
|
static |
|
static |
|
static |
Definition at line 2153 of file pplex.c.
Referenced by plex_action_directive(), plex_clear_vars(), and pplex().
|
static |
Definition at line 2139 of file pplex.c.
Referenced by plex_action_directive(), and pplex().
|
static |
FILE* ppin = (FILE *) 0 |
Definition at line 367 of file pplex.c.
Referenced by input(), pp_load_buffer_state(), ppinput(), pplex(), ppopen(), pprestart(), yy_get_next_buffer(), and yy_init_globals().
yy_size_t ppleng |
Definition at line 305 of file pplex.c.
Referenced by check_comments(), and pplex().
FILE * ppout = (FILE *) 0 |
Definition at line 367 of file pplex.c.
Referenced by ppecho(), pplex(), switch_to_buffer(), and yy_init_globals().
|
static |
|
static |
|
static |
|
static |
|
static |
Stack as an array.
Definition at line 285 of file pplex.c.
Referenced by ppensure_buffer_stack(), pplex_destroy(), and yy_init_globals().
|
static |
capacity of stack.
Definition at line 284 of file pplex.c.
Referenced by ppensure_buffer_stack(), and yy_init_globals().
|
static |
index of top of stack.
Definition at line 283 of file pplex.c.
Referenced by ppensure_buffer_stack(), pppop_buffer_state(), pppush_buffer_state(), and yy_init_globals().
|
static |
Definition at line 308 of file pplex.c.
Referenced by input(), pp_load_buffer_state(), pp_switch_to_buffer(), pplex(), pppush_buffer_state(), yy_get_next_buffer(), yy_get_previous_state(), yy_init_globals(), yy_try_NUL_trans(), and yyunput().
|
static |
|
static |
|
static |
Definition at line 315 of file pplex.c.
Referenced by input(), pp_switch_to_buffer(), pplex(), pppop_buffer_state(), and pppush_buffer_state().
|
static |
|
static |
Definition at line 303 of file pplex.c.
Referenced by input(), pp_load_buffer_state(), pp_switch_to_buffer(), pplex(), pppush_buffer_state(), and yyunput().
|
static |
Definition at line 309 of file pplex.c.
Referenced by pplex(), and yy_init_globals().
|
static |
Definition at line 2028 of file pplex.c.
Referenced by pplex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 2027 of file pplex.c.
Referenced by pplex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
|
static |
Definition at line 304 of file pplex.c.
Referenced by input(), pp_load_buffer_state(), pp_switch_to_buffer(), pplex(), pppush_buffer_state(), yy_get_next_buffer(), and yyunput().
|
static |
|
static |
Definition at line 310 of file pplex.c.
Referenced by pplex(), yy_get_previous_state(), and yy_init_globals().
|
static |
Definition at line 2241 of file pplex.c.
Referenced by pplex_destroy(), yy_init_globals(), and yy_push_state().
|
static |
Definition at line 2240 of file pplex.c.
Referenced by yy_init_globals(), and yy_push_state().
|
static |
Definition at line 2239 of file pplex.c.
Referenced by yy_init_globals().