![]() |
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"
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 (yyconst char *yy_str) |
YY_BUFFER_STATE | pp_scan_bytes (yyconst 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 (yyconst char msg[]) |
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) |
if (!(yy_init)) | |
while (1) | |
static void | yyunput (int c, register char *yy_bp) |
static void | yy_fatal_error (yyconst 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 yyconst flex_int16_t | yy_accept [1082] |
static yyconst flex_int32_t | yy_ec [256] |
static yyconst flex_int32_t | yy_meta [74] |
static yyconst flex_int16_t | yy_base [1183] |
static yyconst flex_int16_t | yy_def [1183] |
static yyconst flex_int16_t | yy_nxt [5374] |
static yyconst 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 = NULL |
static char * | plexbuff2 = NULL |
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 = NULL |
static struct cb_replace_list * | save_current_replace = NULL |
static struct cb_replace_list * | base_replace_list = NULL |
static struct cb_text_list * | text_queue = NULL |
static struct copy_info * | copy_stack = NULL |
static struct plex_stack | plex_cond_stack [PLEX_COND_DEPTH] |
static int | yy_start_stack_ptr = 0 |
static int | yy_start_stack_depth = 0 |
static int * | yy_start_stack = NULL |
YY_DECL | |
The main scanner function which does all the work. More... | |
register char * | yy_cp |
register char * | yy_bp |
register int | yy_act |
Referenced by while(), yy_pop_state(), and yy_push_state().
#define COB_IN_PPLEX 1 |
#define EOB_ACT_CONTINUE_SCAN 0 |
Referenced by input(), while(), and yy_get_next_buffer().
#define EOB_ACT_END_OF_FILE 1 |
Referenced by input(), while(), and yy_get_next_buffer().
#define EOB_ACT_LAST_MATCH 2 |
Referenced by input(), while(), and yy_get_next_buffer().
#define FLEX_BETA |
#define FLEX_SCANNER |
#define FLEXINT_H |
#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 PLEX_COND_DEPTH 16 |
Referenced by plex_action_directive().
#define REJECT reject_used_but_not_detected |
#define UINT16_MAX (65535U) |
#define UINT32_MAX (4294967295U) |
#define UINT8_MAX (255U) |
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Referenced by display_to_eol(), skip_to_eol(), and while().
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Referenced by while(), and yy_get_previous_state().
#define YY_BUF_SIZE 16384 |
Referenced by if(), ppopen(), pprestart(), and yyrestart().
#define YY_BUF_SIZE 32768 |
#define YY_BUFFER_EOF_PENDING 2 |
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Referenced by pp_flush_buffer(), and while().
#define yy_create_buffer pp_create_buffer |
#define YY_CURRENT_BUFFER |
Referenced by if(), pp_delete_buffer(), pp_flush_buffer(), pp_init_buffer(), pp_switch_to_buffer(), pplex_destroy(), ppopen(), pppop_buffer_state(), pppush_buffer_state(), pprestart(), and while().
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
#define YY_DECL_IS_OURS 1 |
#define yy_delete_buffer pp_delete_buffer |
#define YY_DO_BEFORE_ACTION |
Referenced by while().
#define YY_END_OF_BUFFER_CHAR 0 |
Referenced by input(), pp_flush_buffer(), and yy_get_next_buffer().
#define YY_EXIT_FAILURE 2 |
Referenced by yy_fatal_error().
#define YY_EXTRA_TYPE void * |
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Referenced by pp_create_buffer(), ppensure_buffer_stack(), while(), yy_get_next_buffer(), yy_pop_state(), yy_push_state(), and yyunput().
int yy_flex_debug pp_flex_debug |
#define YY_FLEX_MAJOR_VERSION 2 |
#define YY_FLEX_MINOR_VERSION 5 |
#define YY_FLEX_SUBMINOR_VERSION 37 |
#define yy_flush_buffer pp_flush_buffer |
#define YY_FLUSH_BUFFER pp_flush_buffer(YY_CURRENT_BUFFER ) |
#define yy_init_buffer pp_init_buffer |
Referenced by yy_get_next_buffer().
#define YY_INT_ALIGNED short int |
#define YY_LESS_LINENO | ( | n | ) |
#define yy_load_buffer_state pp_load_buffer_state |
#define YY_MORE_ADJ 0 |
Referenced by while(), yy_get_next_buffer(), and yy_get_previous_state().
#define yy_new_buffer pp_create_buffer |
#define YY_NO_UNISTD_H 1 |
#define YY_NUM_RULES 156 |
#define YY_READ_BUF_SIZE 32768 |
Referenced by yy_get_next_buffer().
#define YY_RULE_SETUP |
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Referenced by while(), and yy_get_previous_state().
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#define YY_SKIP_YYWRAP |
Referenced by while(), and yy_push_state().
#define YY_START_STACK_INCR 25 |
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) |
Referenced by while().
#define YY_STRUCT_YY_BUFFER_STATE |
#define yy_switch_to_buffer pp_switch_to_buffer |
#define YY_TYPEDEF_YY_BUFFER_STATE |
#define YY_TYPEDEF_YY_SIZE_T |
#define YY_USER_ACTION |
#define YY_USER_INIT |
Referenced by if().
#define yyconst |
FILE * yyin ppin |
Referenced by cobc_clean_up(), if(), input(), main(), process_translate(), while(), yy_get_next_buffer(), yy_init_globals(), yy_load_buffer_state(), and yyrestart().
int yyleng ppleng |
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
int yylineno pplineno |
#define yymore | ( | ) | yymore_used_but_not_detected |
FILE * yyout ppout |
Referenced by cobc_clean_up(), codegen(), if(), main(), process_translate(), and yy_init_globals().
#define YYTABLES_NAME "yytables" |
char * yytext pptext |
Referenced by input(), pp_load_buffer_state(), while(), 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 unsigned char YY_CHAR |
typedef size_t yy_size_t |
typedef int yy_state_type |
|
static |
|
static |
References CB_FORMAT_FIXED, cb_listing_file, cb_source_format, cobc_gen_listing, and cb_text_list::text.
Referenced by ppecho(), and while().
if | ( | ! | yy_init | ) |
References pp_create_buffer(), pp_load_buffer_state(), ppensure_buffer_stack(), ppin, ppout, YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init, yy_start, and YY_USER_INIT.
Referenced by check_picture_item(), cob_cmp_alnum(), cob_linage_write_opt(), cob_sys_system(), cob_unstring_into(), output_initialize_literal(), process_assemble(), and yyunput().
|
static |
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 | ||
) |
void plex_call_destroy | ( | void | ) |
void plex_clear_all | ( | void | ) |
void plex_clear_vars | ( | void | ) |
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 . |
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 if(), ppopen(), and pprestart().
void pp_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with pp_create_buffer() |
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_destroy(), pppop_buffer_state(), and while().
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 . |
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 |
|
static |
References ppin, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, and yytext_ptr.
Referenced by if(), pp_flush_buffer(), pp_switch_to_buffer(), 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 | ( | yyconst char * | bytes, |
yy_size_t | len | ||
) |
YY_BUFFER_STATE pp_scan_string | ( | yyconst char * | yy_str | ) |
void pp_set_replace_list | ( | struct cb_replace_list * | list, |
const cob_u32_t | is_pushpop | ||
) |
References base_replace_list, cb_replace_list::last, cb_replace_list::next, NULL, and cb_replace_list::prev.
void pp_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
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().
|
staticread |
References cobc_plex_malloc(), cb_text_list::last, cb_text_list::next, p, and cb_text_list::text.
Referenced by ppecho().
void * ppalloc | ( | yy_size_t | size | ) |
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 | ||
) |
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.
|
static |
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 while().
|
static |
References ppalloc(), pprealloc(), yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by if(), pp_switch_to_buffer(), pppush_buffer_state(), and pprestart().
void ppfree | ( | void * | ptr | ) |
Referenced by pp_delete_buffer(), and pplex_destroy().
|
static |
References _, CB_FORMAT_FIXED, CB_FORMAT_FREE, cb_plex_error(), cb_plex_warning(), cb_source_format, likely, newline_count, ppin, PPLEX_BUFF_LEN, unlikely, and YY_NULL.
int pplex | ( | void | ) |
int pplex_destroy | ( | void | ) |
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 | ||
) |
References _, copy_info::buffer, cb_error(), cb_source_file, cb_source_format, cb_source_line, 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, p, pp_create_buffer(), ppin, copy_info::quotation_mark, quotation_mark, copy_info::replacing, replacing_list, 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 | ) |
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.
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. |
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 | ||
) |
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
. 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 |
References cb_source_file, cb_source_line, cobc_plex_strdup(), line, pp_switch_to_buffer(), and ppout.
Referenced by ppopen(), and while().
while | ( | 1 | ) |
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, p, PARAMETER, plex_cond_stack, plex_nest_depth, pp_delete_buffer(), ppecho(), ppin, ppleng, pplval, 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_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_cp, 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_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(), yyterminate, and yytext_ptr.
|
static |
|
static |
References YY_EXIT_FAILURE.
|
static |
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 while().
|
static |
References YY_AT_BOL, yy_c_buf_p, yy_cp, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by while().
|
static |
Get the current token.
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 |
|
static |
References BEGIN, ppalloc(), pprealloc(), YY_FATAL_ERROR, YY_START, yy_start_stack, yy_start_stack_depth, and YY_START_STACK_INCR.
Referenced by while().
|
static |
|
static |
|
static |
References if(), yy_c_buf_p, yy_cp, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.
|
static |
Referenced by pp_set_replace_list(), and ppecho().
|
static |
Referenced by ppinput().
|
static |
Referenced by check_comments().
|
static |
Referenced by ppinput().
|
static |
|
static |
|
static |
Referenced by check_listing().
|
static |
Referenced by ppinput().
|
static |
Referenced by ppinput().
|
static |
Referenced by plex_action_directive(), plex_clear_vars(), and while().
|
static |
Referenced by plex_action_directive(), and while().
|
static |
Referenced by display_to_eol(), and ppinput().
|
static |
int pp_flex_debug = 0 |
FILE* ppin = (FILE *) 0 |
yy_size_t ppleng |
Referenced by check_comments(), and while().
int pplineno = 1 |
FILE * ppout = (FILE *) 0 |
char * pptext |
Referenced by ppecho().
|
static |
Referenced by check_listing().
|
static |
Referenced by check_listing().
|
static |
|
static |
Referenced by ppecho().
|
static |
Referenced by check_comments(), and ppinput().
|
static |
register int yy_act |
|
static |
register char * yy_bp |
|
static |
Stack as an array.
Referenced by ppensure_buffer_stack(), pplex_destroy(), and yy_init_globals().
|
static |
capacity of stack.
Referenced by ppensure_buffer_stack(), and yy_init_globals().
|
static |
index of top of stack.
Referenced by ppensure_buffer_stack(), pppop_buffer_state(), pppush_buffer_state(), and yy_init_globals().
|
static |
|
static |
register char* yy_cp |
Referenced by while(), yy_get_previous_state(), and yyunput().
YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
Referenced by input(), pp_switch_to_buffer(), pppop_buffer_state(), pppush_buffer_state(), and while().
|
static |
|
static |
Referenced by input(), pp_load_buffer_state(), pp_switch_to_buffer(), pppush_buffer_state(), while(), and yyunput().
|
static |
Referenced by if(), and yy_init_globals().
|
static |
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
|
static |
Referenced by input(), pp_load_buffer_state(), pp_switch_to_buffer(), pppush_buffer_state(), while(), yy_get_next_buffer(), and yyunput().
|
static |
|
static |
Referenced by if(), while(), yy_get_previous_state(), and yy_init_globals().
|
static |
Referenced by pplex_destroy(), yy_init_globals(), and yy_push_state().
|
static |
Referenced by yy_init_globals(), and yy_push_state().
|
static |
Referenced by yy_init_globals().