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 "cobc.h"
#include "tree.h"
#include "parser.h"
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | cb_level_78 |
struct | cb_top_level_78 |
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 | yyrestart (FILE *input_file) |
Immediately switch to a different input stream. More... | |
void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
Switch to a different input buffer. More... | |
YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size) |
Allocate and initialize an input buffer state. More... | |
void | yy_delete_buffer (YY_BUFFER_STATE b) |
Destroy the buffer. More... | |
void | yy_flush_buffer (YY_BUFFER_STATE b) |
Discard all buffered characters. More... | |
void | yypush_buffer_state (YY_BUFFER_STATE new_buffer) |
Pushes the new state onto the stack. More... | |
void | yypop_buffer_state (void) |
Removes and deletes the top of the stack, if present. More... | |
static void | yyensure_buffer_stack (void) |
static void | yy_load_buffer_state (void) |
static void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | yy_scan_string (char *yy_str) |
YY_BUFFER_STATE | yy_scan_bytes (char *bytes, yy_size_t len) |
void * | yyalloc (yy_size_t) |
void * | yyrealloc (void *, yy_size_t) |
void | yyfree (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 | yywrap (void) |
static void | read_literal (const char) |
static int | scan_x (const char *) |
static int | scan_z (const char *, const cob_u32_t) |
static int | scan_h (const char *, const cob_u32_t) |
static int | scan_b (const char *, const cob_u32_t) |
static int | scan_o (const char *) |
static int | scan_numeric (const char *) |
static int | scan_floating_numeric (const char *) |
static void | scan_picture (const char *) |
static void | count_lines (const char *) |
static void | scan_define_options (const char *) |
static void | scan_options (const char *, const unsigned int) |
static int | yy_init_globals (void) |
Get the current token. More... | |
int | yylex_destroy (void) |
static void | yyunput (int c, char *buf_ptr) |
static int | input (void) |
int | yylex (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) |
static void | error_literal (const char *type, const char *literal) |
static int | get_sign (const char sign) |
static int | all_zeroes (const char *str) |
static int | significand_is_zero (const char *int_part, const char *dec_part) |
static int | can_replace (const char *src1, const char *src2, const size_t size, const size_t iteration) |
static const char * | check_78_replace (const cb_tree p) |
static void | cb_add_const_var (const char *name, cb_tree value) |
void | ylex_clear_all (void) |
void | ylex_call_destroy (void) |
void | cb_unput_dot (void) |
void | cb_reset_78 (void) |
void | cb_reset_global_78 (void) |
void | cb_add_78 (struct cb_field *f) |
struct cb_field * | check_level_78 (const char *name) |
struct cb_program * | cb_find_defined_program_by_name (const char *name) |
struct cb_program * | cb_find_defined_program_by_id (const char *orig_id) |
void | cobc_init_scanner (void) |
Variables | |
yy_size_t | yyleng |
FILE * | yyin = (FILE *) 0 |
FILE * | yyout = (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 | yylineno = 1 |
char * | yytext |
static flex_int16_t | yy_accept [833] |
static flex_int32_t | yy_ec [256] |
static flex_int32_t | yy_meta [75] |
static flex_int16_t | yy_base [865] |
static flex_int16_t | yy_def [865] |
static flex_int16_t | yy_nxt [2719] |
static flex_int16_t | yy_chk [2719] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
int | yy_flex_debug = 0 |
static struct cb_level_78 * | top78ptr = ((void*)0) |
static struct cb_level_78 * | const78ptr = ((void*)0) |
static struct cb_level_78 * | lev78ptr = ((void*)0) |
static struct cb_level_78 * | globlev78ptr = ((void*)0) |
static char * | plexbuff = ((void*)0) |
static char * | picbuff1 = ((void*)0) |
static char * | picbuff2 = ((void*)0) |
static size_t | plexsize |
static size_t | pic1size |
static size_t | pic2size |
static unsigned int | last_token_is_dot = 0 |
static unsigned int | integer_is_label = 0 |
static unsigned int | inside_bracket = 0 |
static unsigned int | literal_error |
static char | err_msg [COB_MINI_BUFF] |
static unsigned char | valid_char [256] |
static const unsigned char | pvalid_char [] |
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 175 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 176 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 177 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
Definition at line 4236 of file scanner.c.
Referenced by scan_define_options(), scan_floating_numeric(), and scan_numeric().
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 196 of file scanner.c.
Referenced by cb_unput_dot(), read_literal(), scan_picture(), and yylex().
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 342 of file scanner.c.
Referenced by yy_get_previous_state(), and yylex().
#define YY_BUF_SIZE 16384 |
Definition at line 1366 of file scanner.c.
Referenced by yylex(), and yyrestart().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 258 of file scanner.c.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 246 of file scanner.c.
Referenced by yy_flush_buffer(), and yylex().
#define YY_CURRENT_BUFFER |
Definition at line 274 of file scanner.c.
Referenced by yy_delete_buffer(), yy_flush_buffer(), yy_init_buffer(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 281 of file scanner.c.
Referenced by input(), yy_delete_buffer(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), yyrestart(), and yyunput().
#define YY_DO_BEFORE_ACTION |
Definition at line 367 of file scanner.c.
Referenced by yylex().
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 142 of file scanner.c.
Referenced by input(), yy_flush_buffer(), and yy_get_next_buffer().
#define YY_EXIT_FAILURE 2 |
Definition at line 3709 of file scanner.c.
Referenced by yy_fatal_error().
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 1669 of file scanner.c.
Referenced by yy_create_buffer(), yy_get_next_buffer(), yyensure_buffer_stack(), yylex(), and yyunput().
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 1373 of file scanner.c.
Referenced by yy_get_next_buffer().
#define YY_MORE_ADJ 0 |
Definition at line 1338 of file scanner.c.
Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().
#define yy_new_buffer yy_create_buffer |
#define YY_READ_BUF_SIZE 32768 |
Definition at line 1364 of file scanner.c.
Referenced by yy_get_next_buffer().
#define YY_RULE_SETUP |
Definition at line 1697 of file scanner.c.
Referenced by yylex().
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 121 of file scanner.c.
Referenced by yy_get_previous_state(), and yylex().
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#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_USER_INIT |
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
Definition at line 357 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_load_buffer_state(), yylex(), 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 4288 of file scanner.c.
Referenced by significand_is_zero().
|
static |
Definition at line 4463 of file scanner.c.
Referenced by scan_picture().
void cb_add_78 | ( | struct cb_field * | f | ) |
Definition at line 4810 of file scanner.c.
References CB_VALUE, check_78_replace(), cb_level_78::chk_const, cob_u32_t, cobc_malloc(), const78ptr, current_program, cb_field::flag_is_global, cb_level_78::fld78, globlev78ptr, cb_level_78::globnext, cb_level_78::last, lev78ptr, cb_field::name, cb_level_78::name_len, cb_level_78::next, cb_level_78::pic_len, cb_level_78::pic_replace, cb_level_78::prog, and cb_field::values.
Referenced by cb_validate_78_item().
|
static |
Definition at line 4583 of file scanner.c.
References cb_build_constant(), cb_build_reference(), CB_FIELD, cb_validate_78_item(), CB_VALUE, check_78_replace(), cb_level_78::chk_const, cob_u32_t, cobc_malloc(), const78ptr, cb_field::flag_is_global, cb_field::flag_item_78, cb_level_78::fld78, cb_level_78::globnext, cb_level_78::last, cb_field::level, cb_field::name, cb_level_78::name_len, cb_level_78::next, NULL, cb_level_78::pic_len, cb_level_78::pic_replace, cb_level_78::prog, and cb_field::values.
Referenced by scan_define_options().
struct cb_program* cb_find_defined_program_by_id | ( | const char * | orig_id | ) |
Definition at line 4905 of file scanner.c.
References CB_CHAIN, CB_PROGRAM, CB_VALUE, defined_prog_list, NULL, and cb_program::orig_program_id.
Referenced by check_prototype_seen().
struct cb_program* cb_find_defined_program_by_name | ( | const char * | name | ) |
Definition at line 4882 of file scanner.c.
References CB_CHAIN, CB_PROGRAM, CB_VALUE, defined_prog_list, NULL, and cb_program::program_name.
Referenced by yylex().
void cb_reset_78 | ( | void | ) |
Definition at line 4771 of file scanner.c.
References cobc_free(), const78ptr, globlev78ptr, cb_level_78::next, cb_level_78::not_const, and NULL.
Referenced by cb_build_program().
void cb_reset_global_78 | ( | void | ) |
Definition at line 4794 of file scanner.c.
References cobc_free(), const78ptr, cb_level_78::next, and NULL.
Referenced by cb_build_program().
void cb_unput_dot | ( | void | ) |
|
static |
Definition at line 4486 of file scanner.c.
References cb_high, CB_LITERAL, CB_LITERAL_P, cb_low, cb_null, cb_quote, cb_space, cb_zero, and NULL.
Referenced by cb_add_78(), and cb_add_const_var().
struct cb_field* check_level_78 | ( | const char * | name | ) |
Definition at line 4858 of file scanner.c.
References cb_level_78::fld78, cb_field::name, cb_level_78::next, and NULL.
Referenced by cb_validate_program_data().
void cobc_init_scanner | ( | void | ) |
|
static |
Definition at line 4570 of file scanner.c.
References cb_source_line.
Referenced by yylex().
|
static |
Definition at line 3844 of file scanner.c.
References _, and cb_error().
Referenced by read_literal(), scan_b(), scan_floating_numeric(), scan_h(), scan_numeric(), scan_o(), scan_x(), and scan_z().
|
static |
Definition at line 4225 of file scanner.c.
Referenced by scan_define_options(), scan_floating_numeric(), and scan_numeric().
|
static |
Definition at line 3373 of file scanner.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, 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, yyin, yyrestart(), yytext_ptr, and yywrap().
Referenced by read_literal(), and yylex().
|
static |
Definition at line 3873 of file scanner.c.
References _, cb_build_alphanumeric_literal(), cb_warning(), COB_MINI_MAX, cob_u8_t, cobc_realloc(), error_literal(), input(), unlikely, unput, and yylval.
Referenced by yylex().
|
static |
Definition at line 4112 of file scanner.c.
References _, cb_build_numeric_literal(), cb_error_node, CB_FMT_LLU, cb_verify(), COB_MINI_MAX, cob_u64_t, error_literal(), LITERAL, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4634 of file scanner.c.
References _, cb_add_const_var(), cb_build_alphanumeric_literal(), cb_build_numeric_literal(), cb_error(), COB_MAX_DIGITS, cobc_free(), cobc_strdup(), cb_level_78::fld78, get_sign(), cb_level_78::globnext, INCREMENT_IF_SIGNED, cb_field::name, NULL, and sign.
Referenced by yylex().
|
static |
Definition at line 4309 of file scanner.c.
References _, cb_build_numeric_literal(), cb_error_node, COB_MINI_MAX, current_program, cb_program::decimal_point, error_literal(), get_sign(), INCREMENT_IF_SIGNED, LITERAL, significand_is_zero(), and yylval.
Referenced by yylex().
|
static |
Definition at line 4048 of file scanner.c.
References _, cb_build_numeric_literal(), cb_error_node, CB_FMT_LLU, cb_verify(), COB_MINI_MAX, cob_u64_t, error_literal(), LITERAL, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4244 of file scanner.c.
References _, cb_build_numeric_literal(), cb_error_node, COB_MAX_DIGITS, COB_MINI_MAX, current_program, cb_program::decimal_point, error_literal(), get_sign(), INCREMENT_IF_SIGNED, LITERAL, sign, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4174 of file scanner.c.
References _, cb_build_numeric_literal(), cb_error_node, CB_FMT_LLU, cb_verify(), COB_MINI_MAX, cob_u64_t, error_literal(), LITERAL, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4627 of file scanner.c.
References COB_UNUSED.
Referenced by yylex().
|
static |
Definition at line 4517 of file scanner.c.
References can_replace(), cb_build_picture(), cb_level_78::fld78, cb_level_78::globnext, cb_field::name, cb_level_78::name_len, cb_level_78::pic_len, cb_level_78::pic_replace, unput, and yylval.
Referenced by yylex().
|
static |
Definition at line 3930 of file scanner.c.
References _, cb_build_alphanumeric_literal(), cb_error_node, COB_MINI_MAX, cob_u8_t, cobc_realloc(), error_literal(), likely, LITERAL, plexbuff, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4013 of file scanner.c.
References _, cb_build_alphanumeric_literal(), cb_error_node, CB_LITERAL, COB_MINI_MAX, cobc_realloc(), error_literal(), LITERAL, unlikely, and yylval.
Referenced by yylex().
|
static |
Definition at line 4302 of file scanner.c.
References all_zeroes().
Referenced by scan_floating_numeric().
void ylex_call_destroy | ( | void | ) |
Definition at line 4757 of file scanner.c.
References NULL, and yylex_destroy().
Referenced by process_translate().
void ylex_clear_all | ( | void | ) |
Definition at line 4736 of file scanner.c.
References cobc_free(), and NULL.
Referenced by main().
YY_BUFFER_STATE yy_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 3512 of file scanner.c.
References yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer(), yy_buffer_state::yy_is_our_buffer, and yyalloc().
Referenced by yylex(), and yyrestart().
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with yy_create_buffer() |
Definition at line 3540 of file scanner.c.
References yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_buffer_state::yy_is_our_buffer, and yyfree().
Referenced by yylex_destroy(), and yypop_buffer_state().
|
static |
|
static |
void yy_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 3587 of file scanner.c.
References 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, yy_load_buffer_state(), and yy_buffer_state::yy_n_chars.
Referenced by yy_init_buffer().
|
static |
Definition at line 3142 of file scanner.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, 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, yyin, yyrealloc(), yyrestart(), and yytext_ptr.
Referenced by input(), and yylex().
|
static |
Definition at line 3276 of file scanner.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 yylex().
|
static |
Definition at line 3559 of file scanner.c.
References file, yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_flush_buffer(), yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
Referenced by yy_create_buffer(), and yyrestart().
|
static |
Get the current token.
Definition at line 3741 of file scanner.c.
References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, yyin, and yyout.
Referenced by yylex_destroy().
|
static |
Definition at line 3498 of file scanner.c.
References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.
Referenced by yy_flush_buffer(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
YY_BUFFER_STATE yy_scan_bytes | ( | char * | bytes, |
yy_size_t | len | ||
) |
YY_BUFFER_STATE yy_scan_string | ( | char * | yy_str | ) |
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 3467 of file scanner.c.
References yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().
|
static |
Definition at line 3309 of file scanner.c.
References yy_c_buf_p, yy_last_accepting_cpos, and yy_last_accepting_state.
Referenced by yylex().
Definition at line 3815 of file scanner.c.
Referenced by yy_create_buffer(), and yyensure_buffer_stack().
|
static |
Definition at line 3665 of file scanner.c.
References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc(), and yyrealloc().
Referenced by yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyrestart().
void yyfree | ( | void * | ptr | ) |
Definition at line 3832 of file scanner.c.
Referenced by yy_delete_buffer(), and yylex_destroy().
int yylex | ( | void | ) |
The main scanner function which does all the work.
Definition at line 1705 of file scanner.c.
References _, BEGIN, BOTTOM, cb_build_alphanumeric_literal(), cb_build_comment(), cb_build_numeric_literal(), cb_build_reference(), CB_CHAIN, CB_CS_EXIT, cb_error(), cb_error_node, cb_find_defined_program_by_name(), CB_FUNC_PROTOTYPE, CB_FUNCTION_TYPE, cb_intrinsic_list, CB_LITERAL, cb_source_file, cb_source_line, CB_SYSTEM_NAME_P, CB_VALUE, cb_warning(), CB_WORD_COUNT, CB_WORD_ITEMS, cb_level_78::chk_const, COB_MAX_WORDLEN, cobc_cs_check, cobc_force_literal, cobc_free(), cobc_in_procedure, cobc_in_repository, cobc_parse_strdup(), cobc_strdup(), COMMA_DELIM, count_lines(), current_program, DECIMAL_IS_COMMA, DECIMAL_IS_PERIOD, cb_program::decimal_point, EC, END, END_FUNCTION, END_PROGRAM, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EOP, EQUAL, ESCAPE, EVENT_STATUS, EXCEPTION, EXCEPTION_CONDITION, EXPONENTIATION, cb_level_78::fld78, FROM_CRT, FUNCTION, FUNCTION_NAME, cb_program::function_spec_list, FUNCTION_STATE, functions_are_all, cb_level_78::globnext, GREATER, GREATER_OR_EQUAL, INITIAL, input(), INVALID_KEY, LENGTH_OF, LESS, LESS_OR_EQUAL, likely, LITERAL, lookup_intrinsic(), lookup_reserved_word(), MNEMONIC_NAME, cb_field::name, cb_intrinsic_table::name, cb_text_list::next, cb_level_78::next, NEXT_PAGE, NO_ADVANCING, cobc_reserved::nodegen, non_const_word, cb_level_78::not_const, NOT_END, NOT_EOP, NOT_EQUAL, NOT_ESCAPE, NOT_EXCEPTION, NOT_INVALID_KEY, NOT_OVERFLOW, NOT_SIZE_ERROR, NULL, cb_program::orig_program_id, PICTURE, PICTURE_STATE, PICTURE_SYMBOL, cb_level_78::prog, cb_program::prog_type, PROGRAM_NAME, read_literal(), READY_TRACE, REPLACING, RESET_TRACE, scan_b(), scan_define_options(), scan_floating_numeric(), scan_h(), scan_numeric(), scan_o(), scan_options(), scan_picture(), scan_x(), scan_z(), SCREEN_CONTROL, SEMI_COLON, SIZE_ERROR, cb_text_list::text, TOK_AMPER, TOK_CLOSE_PAREN, TOK_COLON, TOK_DIV, TOK_DOT, TOK_EQUAL, TOK_GREATER, TOK_LESS, TOK_MINUS, TOK_MUL, TOK_OPEN_PAREN, TOK_OVERFLOW, TOK_PLUS, cobc_reserved::token, cb_intrinsic_table::token, TOP, unlikely, unput, UPON_ARGUMENT_NUMBER, UPON_COMMAND_LINE, UPON_ENVIRONMENT_NAME, UPON_ENVIRONMENT_VALUE, USER_FUNCTION_NAME, cb_program::user_spec_list, cb_field::values, warningopt, WORD, YY_AT_BOL, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_create_buffer(), 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_load_buffer_state(), YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, 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, yyensure_buffer_stack(), yyin, yyleng, yylval, yyout, yyterminate, yytext_ptr, and yywrap().
int yylex_destroy | ( | void | ) |
Definition at line 3770 of file scanner.c.
References NULL, yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_init_globals(), yyfree(), and yypop_buffer_state().
Referenced by ylex_call_destroy().
void yypop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
Definition at line 3646 of file scanner.c.
References NULL, yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().
Referenced by yylex_destroy().
void yypush_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 3616 of file scanner.c.
References NULL, yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().
void * yyrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 3820 of file scanner.c.
Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().
void yyrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 3450 of file scanner.c.
References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.
Referenced by input(), and yy_get_next_buffer().
|
static |
|
static |
Definition at line 3332 of file scanner.c.
References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.
|
static |
|
static |
Definition at line 1437 of file scanner.c.
Referenced by cb_add_78(), cb_add_const_var(), cb_reset_78(), and cb_reset_global_78().
|
static |
|
static |
Definition at line 1439 of file scanner.c.
Referenced by cb_add_78(), and cb_reset_78().
|
static |
Definition at line 1438 of file scanner.c.
Referenced by cb_add_78().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Stack as an array.
Definition at line 266 of file scanner.c.
Referenced by yy_init_globals(), yyensure_buffer_stack(), and yylex_destroy().
|
static |
capacity of stack.
Definition at line 265 of file scanner.c.
Referenced by yy_init_globals(), and yyensure_buffer_stack().
|
static |
index of top of stack.
Definition at line 264 of file scanner.c.
Referenced by yy_init_globals(), yyensure_buffer_stack(), yypop_buffer_state(), and yypush_buffer_state().
|
static |
Definition at line 289 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_init_globals(), yy_load_buffer_state(), yy_switch_to_buffer(), yy_try_NUL_trans(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
|
static |
|
static |
Definition at line 296 of file scanner.c.
Referenced by input(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), and yypush_buffer_state().
|
static |
|
static |
Definition at line 284 of file scanner.c.
Referenced by input(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
Definition at line 290 of file scanner.c.
Referenced by yy_init_globals(), and yylex().
|
static |
Definition at line 1328 of file scanner.c.
Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().
|
static |
Definition at line 1327 of file scanner.c.
Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().
|
static |
|
static |
Definition at line 285 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
|
static |
Definition at line 291 of file scanner.c.
Referenced by yy_get_previous_state(), yy_init_globals(), and yylex().
FILE* yyin = (FILE *) 0 |
Definition at line 348 of file scanner.c.
Referenced by input(), yy_get_next_buffer(), yy_init_globals(), yy_load_buffer_state(), yylex(), and yyrestart().
FILE * yyout = (FILE *) 0 |
Definition at line 348 of file scanner.c.
Referenced by yy_init_globals(), and yylex().