OpenCOBOL 1.1pre-rel
Data Structures | Defines | Typedefs | Enumerations | Functions | Variables
ppparse.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "cobc.h"
Include dependency graph for ppparse.c:

Go to the source code of this file.

Data Structures

union  YYSTYPE
union  yyalloc

Defines

#define YYBISON   1
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define yyparse   ppparse
#define yylex   pplex
#define yyerror   pperror
#define yylval   pplval
#define yychar   ppchar
#define yydebug   ppdebug
#define yynerrs   ppnerrs
#define YYTOKENTYPE
#define TOKEN_EOF   0
#define COPY   258
#define REPLACE   259
#define SUPPRESS   260
#define PRINTING   261
#define REPLACING   262
#define OFF   263
#define IN   264
#define OF   265
#define BY   266
#define EQEQ   267
#define TOKEN   268
#define YYDEBUG   1
#define YYERROR_VERBOSE   1
#define pperror   cb_error
#define YYERROR_VERBOSE   1
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYSTACK_ALLOC   malloc
#define YYSTACK_FREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   2
#define YYLAST   41
#define YYNTOKENS   17
#define YYNNTS   15
#define YYNRULES   31
#define YYNSTATES   50
#define YYUNDEFTOK   2
#define YYMAXUTOK   268
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -13
#define YYTABLE_NINF   -1
#define YYSIZE_T   unsigned int
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto yyacceptlab
#define YYABORT   goto yyabortlab
#define YYERROR   goto yyerrlab1
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLEX   yylex ()
#define YYFPRINTF   fprintf
#define YYDPRINTF(Args)
#define YYDSYMPRINT(Args)
#define YYDSYMPRINTF(Title, Token, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK   (yyvsp--, yyssp--)

Typedefs

typedef union YYSTYPE YYSTYPE
typedef short yysigned_char

Enumerations

enum  yytokentype {
  TOKEN_EOF = 0, ACCEPT = 258, ACCESS = 259, ADD = 260,
  ADDRESS = 261, ADVANCING = 262, AFTER = 263, ALL = 264,
  ALLOCATE = 265, ALPHABET = 266, ALPHABETIC = 267, ALPHABETIC_LOWER = 268,
  ALPHABETIC_UPPER = 269, ALPHANUMERIC = 270, ALPHANUMERIC_EDITED = 271, ALSO = 272,
  ALTER = 273, ALTERNATE = 274, AND = 275, ANY = 276,
  ARE = 277, AREA = 278, ARGUMENT_NUMBER = 279, ARGUMENT_VALUE = 280,
  AS = 281, ASCENDING = 282, ASSIGN = 283, AT = 284,
  AUTO = 285, AUTOMATIC = 286, BACKGROUND_COLOR = 287, BASED = 288,
  BEFORE = 289, BELL = 290, BINARY = 291, BINARY_C_LONG = 292,
  BINARY_CHAR = 293, BINARY_DOUBLE = 294, BINARY_LONG = 295, BINARY_SHORT = 296,
  BLANK = 297, BLANK_LINE = 298, BLANK_SCREEN = 299, BLINK = 300,
  BLOCK = 301, BOTTOM = 302, BY = 303, BYTE_LENGTH = 304,
  CALL = 305, CANCEL = 306, CH = 307, CHAINING = 308,
  CHARACTER = 309, CHARACTERS = 310, CLASS = 311, CLOSE = 312,
  CODE = 313, CODE_SET = 314, COLLATING = 315, COL = 316,
  COLS = 317, COLUMN = 318, COLUMNS = 319, COMMA = 320,
  COMMAND_LINE = 321, COMMA_DELIM = 322, COMMIT = 323, COMMON = 324,
  COMP = 325, COMPUTE = 326, COMP_1 = 327, COMP_2 = 328,
  COMP_3 = 329, COMP_4 = 330, COMP_5 = 331, COMP_X = 332,
  CONCATENATE_FUNC = 333, CONFIGURATION = 334, CONSTANT = 335, CONTAINS = 336,
  CONTENT = 337, CONTINUE = 338, CONTROL = 339, CONTROLS = 340,
  CONTROL_FOOTING = 341, CONTROL_HEADING = 342, CONVERTING = 343, CORRESPONDING = 344,
  COUNT = 345, CRT = 346, CURRENCY = 347, CURRENT_DATE_FUNC = 348,
  CURSOR = 349, CYCLE = 350, DATA = 351, DATE = 352,
  DAY = 353, DAY_OF_WEEK = 354, DE = 355, DEBUGGING = 356,
  DECIMAL_POINT = 357, DECLARATIVES = 358, DEFAULT = 359, DELETE = 360,
  DELIMITED = 361, DELIMITER = 362, DEPENDING = 363, DESCENDING = 364,
  DETAIL = 365, DISK = 366, DISPLAY = 367, DIVIDE = 368,
  DIVISION = 369, DOWN = 370, DUPLICATES = 371, DYNAMIC = 372,
  EBCDIC = 373, ELSE = 374, END = 375, END_ACCEPT = 376,
  END_ADD = 377, END_CALL = 378, END_COMPUTE = 379, END_DELETE = 380,
  END_DISPLAY = 381, END_DIVIDE = 382, END_EVALUATE = 383, END_FUNCTION = 384,
  END_IF = 385, END_MULTIPLY = 386, END_PERFORM = 387, END_PROGRAM = 388,
  END_READ = 389, END_RETURN = 390, END_REWRITE = 391, END_SEARCH = 392,
  END_START = 393, END_STRING = 394, END_SUBTRACT = 395, END_UNSTRING = 396,
  END_WRITE = 397, ENTRY = 398, ENVIRONMENT = 399, ENVIRONMENT_NAME = 400,
  ENVIRONMENT_VALUE = 401, EOL = 402, EOP = 403, EOS = 404,
  EQUAL = 405, EQUALS = 406, ERASE = 407, ERROR = 408,
  ESCAPE = 409, EVALUATE = 410, EVENT_STATUS = 411, EXCEPTION = 412,
  EXCLUSIVE = 413, EXIT = 414, EXTEND = 415, EXTERNAL = 416,
  FD = 417, FILE_CONTROL = 418, FILE_ID = 419, FILLER = 420,
  FINAL = 421, FIRST = 422, FOOTING = 423, FOR = 424,
  FOREGROUND_COLOR = 425, FOREVER = 426, FREE = 427, FROM = 428,
  FULL = 429, FUNCTION = 430, FUNCTION_ID = 431, FUNCTION_NAME = 432,
  GE = 433, GENERATE = 434, GIVING = 435, GLOBAL = 436,
  GO = 437, GOBACK = 438, GREATER = 439, GROUP = 440,
  HEADING = 441, HIGHLIGHT = 442, HIGH_VALUE = 443, IDENTIFICATION = 444,
  IF = 445, IGNORE = 446, IGNORING = 447, IN = 448,
  INDEX = 449, INDEXED = 450, INDICATE = 451, INITIALIZE = 452,
  INITIALIZED = 453, INITIATE = 454, INPUT = 455, INPUT_OUTPUT = 456,
  INSPECT = 457, INTO = 458, INTRINSIC = 459, INVALID = 460,
  INVALID_KEY = 461, IS = 462, I_O = 463, I_O_CONTROL = 464,
  JUSTIFIED = 465, KEY = 466, LABEL = 467, LAST = 468,
  LAST_DETAIL = 469, LE = 470, LEADING = 471, LEFT = 472,
  LENGTH = 473, LESS = 474, LIMIT = 475, LIMITS = 476,
  LINAGE = 477, LINAGE_COUNTER = 478, LINE = 479, LINES = 480,
  LINKAGE = 481, LITERAL = 482, LOCALE = 483, LOCALE_DT_FUNC = 484,
  LOCAL_STORAGE = 485, LOCK = 486, LOWER_CASE_FUNC = 487, LOWLIGHT = 488,
  LOW_VALUE = 489, MANUAL = 490, MEMORY = 491, MERGE = 492,
  MINUS = 493, MNEMONIC_NAME = 494, MODE = 495, MOVE = 496,
  MULTIPLE = 497, MULTIPLY = 498, NATIONAL = 499, NATIONAL_EDITED = 500,
  NATIVE = 501, NE = 502, NEGATIVE = 503, NEXT = 504,
  NEXT_SENTENCE = 505, NO = 506, NOT = 507, NOT_END = 508,
  NOT_EOP = 509, NOT_EXCEPTION = 510, NOT_INVALID_KEY = 511, NOT_OVERFLOW = 512,
  NOT_SIZE_ERROR = 513, NO_ADVANCING = 514, NUMBER = 515, NUMBERS = 516,
  NUMERIC = 517, NUMERIC_EDITED = 518, NUMVALC_FUNC = 519, OBJECT_COMPUTER = 520,
  OCCURS = 521, OF = 522, OFF = 523, OMITTED = 524,
  ON = 525, ONLY = 526, OPEN = 527, OPTIONAL = 528,
  OR = 529, ORDER = 530, ORGANIZATION = 531, OTHER = 532,
  OUTPUT = 533, OVERFLOW = 534, OVERLINE = 535, PACKED_DECIMAL = 536,
  PADDING = 537, PAGE = 538, PAGE_FOOTING = 539, PAGE_HEADING = 540,
  PARAGRAPH = 541, PERFORM = 542, PICTURE = 543, PLUS = 544,
  POINTER = 545, POSITION = 546, POSITIVE = 547, PRESENT = 548,
  PREVIOUS = 549, PRINTER = 550, PRINTING = 551, PROCEDURE = 552,
  PROCEDURES = 553, PROCEED = 554, PROGRAM = 555, PROGRAM_ID = 556,
  PROGRAM_NAME = 557, PROGRAM_POINTER = 558, PROMPT = 559, QUOTE = 560,
  RANDOM = 561, RD = 562, READ = 563, RECORD = 564,
  RECORDING = 565, RECORDS = 566, RECURSIVE = 567, REDEFINES = 568,
  REEL = 569, REFERENCE = 570, RELATIVE = 571, RELEASE = 572,
  REMAINDER = 573, REMOVAL = 574, RENAMES = 575, REPLACING = 576,
  REPORT = 577, REPORTING = 578, REPORTS = 579, REPORT_FOOTING = 580,
  REPORT_HEADING = 581, REPOSITORY = 582, REQUIRED = 583, RESERVE = 584,
  RETURN = 585, RETURNING = 586, REVERSE_FUNC = 587, REVERSE_VIDEO = 588,
  REWIND = 589, REWRITE = 590, RIGHT = 591, ROLLBACK = 592,
  ROUNDED = 593, RUN = 594, SAME = 595, SCREEN = 596,
  SCREEN_CONTROL = 597, SCROLL = 598, SD = 599, SEARCH = 600,
  SECTION = 601, SECURE = 602, SEGMENT_LIMIT = 603, SELECT = 604,
  SEMI_COLON = 605, SENTENCE = 606, SEPARATE = 607, SEQUENCE = 608,
  SEQUENTIAL = 609, SET = 610, SHARING = 611, SIGN = 612,
  SIGNED = 613, SIGNED_INT = 614, SIGNED_LONG = 615, SIGNED_SHORT = 616,
  SIZE = 617, SIZE_ERROR = 618, SORT = 619, SORT_MERGE = 620,
  SOURCE = 621, SOURCE_COMPUTER = 622, SPACE = 623, SPECIAL_NAMES = 624,
  STANDARD = 625, STANDARD_1 = 626, STANDARD_2 = 627, START = 628,
  STATUS = 629, STOP = 630, STRING = 631, SUBSTITUTE_FUNC = 632,
  SUBSTITUTE_CASE_FUNC = 633, SUBTRACT = 634, SUM = 635, SUPPRESS = 636,
  SYMBOLIC = 637, SYNCHRONIZED = 638, TALLYING = 639, TAPE = 640,
  TERMINATE = 641, TEST = 642, THAN = 643, THEN = 644,
  THRU = 645, TIME = 646, TIMES = 647, TO = 648,
  TOK_FALSE = 649, TOK_FILE = 650, TOK_INITIAL = 651, TOK_NULL = 652,
  TOK_TRUE = 653, TOP = 654, TRAILING = 655, TRANSFORM = 656,
  TRIM_FUNCTION = 657, TYPE = 658, UNDERLINE = 659, UNIT = 660,
  UNLOCK = 661, UNSIGNED = 662, UNSIGNED_INT = 663, UNSIGNED_LONG = 664,
  UNSIGNED_SHORT = 665, UNSTRING = 666, UNTIL = 667, UP = 668,
  UPDATE = 669, UPON = 670, UPON_ARGUMENT_NUMBER = 671, UPON_COMMAND_LINE = 672,
  UPON_ENVIRONMENT_NAME = 673, UPON_ENVIRONMENT_VALUE = 674, UPPER_CASE_FUNC = 675, USAGE = 676,
  USE = 677, USING = 678, VALUE = 679, VARYING = 680,
  WAIT = 681, WHEN = 682, WHEN_COMPILED_FUNC = 683, WITH = 684,
  WORD = 685, WORDS = 686, WORKING_STORAGE = 687, WRITE = 688,
  YYYYDDD = 689, YYYYMMDD = 690, ZERO = 691, UNARY_SIGN = 692,
  TOKEN_EOF = 0, ACCEPT = 258, ACCESS = 259, ADD = 260,
  ADDRESS = 261, ADVANCING = 262, AFTER = 263, ALL = 264,
  ALLOCATE = 265, ALPHABET = 266, ALPHABETIC = 267, ALPHABETIC_LOWER = 268,
  ALPHABETIC_UPPER = 269, ALPHANUMERIC = 270, ALPHANUMERIC_EDITED = 271, ALSO = 272,
  ALTER = 273, ALTERNATE = 274, AND = 275, ANY = 276,
  ARE = 277, AREA = 278, ARGUMENT_NUMBER = 279, ARGUMENT_VALUE = 280,
  AS = 281, ASCENDING = 282, ASSIGN = 283, AT = 284,
  AUTO = 285, AUTOMATIC = 286, BACKGROUND_COLOR = 287, BASED = 288,
  BEFORE = 289, BELL = 290, BINARY = 291, BINARY_C_LONG = 292,
  BINARY_CHAR = 293, BINARY_DOUBLE = 294, BINARY_LONG = 295, BINARY_SHORT = 296,
  BLANK = 297, BLANK_LINE = 298, BLANK_SCREEN = 299, BLINK = 300,
  BLOCK = 301, BOTTOM = 302, BY = 303, BYTE_LENGTH = 304,
  CALL = 305, CANCEL = 306, CH = 307, CHAINING = 308,
  CHARACTER = 309, CHARACTERS = 310, CLASS = 311, CLOSE = 312,
  CODE = 313, CODE_SET = 314, COLLATING = 315, COL = 316,
  COLS = 317, COLUMN = 318, COLUMNS = 319, COMMA = 320,
  COMMAND_LINE = 321, COMMA_DELIM = 322, COMMIT = 323, COMMON = 324,
  COMP = 325, COMPUTE = 326, COMP_1 = 327, COMP_2 = 328,
  COMP_3 = 329, COMP_4 = 330, COMP_5 = 331, COMP_X = 332,
  CONCATENATE_FUNC = 333, CONFIGURATION = 334, CONSTANT = 335, CONTAINS = 336,
  CONTENT = 337, CONTINUE = 338, CONTROL = 339, CONTROLS = 340,
  CONTROL_FOOTING = 341, CONTROL_HEADING = 342, CONVERTING = 343, CORRESPONDING = 344,
  COUNT = 345, CRT = 346, CURRENCY = 347, CURRENT_DATE_FUNC = 348,
  CURSOR = 349, CYCLE = 350, DATA = 351, DATE = 352,
  DAY = 353, DAY_OF_WEEK = 354, DE = 355, DEBUGGING = 356,
  DECIMAL_POINT = 357, DECLARATIVES = 358, DEFAULT = 359, DELETE = 360,
  DELIMITED = 361, DELIMITER = 362, DEPENDING = 363, DESCENDING = 364,
  DETAIL = 365, DISK = 366, DISPLAY = 367, DIVIDE = 368,
  DIVISION = 369, DOWN = 370, DUPLICATES = 371, DYNAMIC = 372,
  EBCDIC = 373, ELSE = 374, END = 375, END_ACCEPT = 376,
  END_ADD = 377, END_CALL = 378, END_COMPUTE = 379, END_DELETE = 380,
  END_DISPLAY = 381, END_DIVIDE = 382, END_EVALUATE = 383, END_FUNCTION = 384,
  END_IF = 385, END_MULTIPLY = 386, END_PERFORM = 387, END_PROGRAM = 388,
  END_READ = 389, END_RETURN = 390, END_REWRITE = 391, END_SEARCH = 392,
  END_START = 393, END_STRING = 394, END_SUBTRACT = 395, END_UNSTRING = 396,
  END_WRITE = 397, ENTRY = 398, ENVIRONMENT = 399, ENVIRONMENT_NAME = 400,
  ENVIRONMENT_VALUE = 401, EOL = 402, EOP = 403, EOS = 404,
  EQUAL = 405, EQUALS = 406, ERASE = 407, ERROR = 408,
  ESCAPE = 409, EVALUATE = 410, EVENT_STATUS = 411, EXCEPTION = 412,
  EXCLUSIVE = 413, EXIT = 414, EXTEND = 415, EXTERNAL = 416,
  FD = 417, FILE_CONTROL = 418, FILE_ID = 419, FILLER = 420,
  FINAL = 421, FIRST = 422, FOOTING = 423, FOR = 424,
  FOREGROUND_COLOR = 425, FOREVER = 426, FREE = 427, FROM = 428,
  FULL = 429, FUNCTION = 430, FUNCTION_ID = 431, FUNCTION_NAME = 432,
  GE = 433, GENERATE = 434, GIVING = 435, GLOBAL = 436,
  GO = 437, GOBACK = 438, GREATER = 439, GROUP = 440,
  HEADING = 441, HIGHLIGHT = 442, HIGH_VALUE = 443, IDENTIFICATION = 444,
  IF = 445, IGNORE = 446, IGNORING = 447, IN = 448,
  INDEX = 449, INDEXED = 450, INDICATE = 451, INITIALIZE = 452,
  INITIALIZED = 453, INITIATE = 454, INPUT = 455, INPUT_OUTPUT = 456,
  INSPECT = 457, INTO = 458, INTRINSIC = 459, INVALID = 460,
  INVALID_KEY = 461, IS = 462, I_O = 463, I_O_CONTROL = 464,
  JUSTIFIED = 465, KEY = 466, LABEL = 467, LAST = 468,
  LAST_DETAIL = 469, LE = 470, LEADING = 471, LEFT = 472,
  LENGTH = 473, LESS = 474, LIMIT = 475, LIMITS = 476,
  LINAGE = 477, LINAGE_COUNTER = 478, LINE = 479, LINES = 480,
  LINKAGE = 481, LITERAL = 482, LOCALE = 483, LOCALE_DT_FUNC = 484,
  LOCAL_STORAGE = 485, LOCK = 486, LOWER_CASE_FUNC = 487, LOWLIGHT = 488,
  LOW_VALUE = 489, MANUAL = 490, MEMORY = 491, MERGE = 492,
  MINUS = 493, MNEMONIC_NAME = 494, MODE = 495, MOVE = 496,
  MULTIPLE = 497, MULTIPLY = 498, NATIONAL = 499, NATIONAL_EDITED = 500,
  NATIVE = 501, NE = 502, NEGATIVE = 503, NEXT = 504,
  NEXT_SENTENCE = 505, NO = 506, NOT = 507, NOT_END = 508,
  NOT_EOP = 509, NOT_EXCEPTION = 510, NOT_INVALID_KEY = 511, NOT_OVERFLOW = 512,
  NOT_SIZE_ERROR = 513, NO_ADVANCING = 514, NUMBER = 515, NUMBERS = 516,
  NUMERIC = 517, NUMERIC_EDITED = 518, NUMVALC_FUNC = 519, OBJECT_COMPUTER = 520,
  OCCURS = 521, OF = 522, OFF = 523, OMITTED = 524,
  ON = 525, ONLY = 526, OPEN = 527, OPTIONAL = 528,
  OR = 529, ORDER = 530, ORGANIZATION = 531, OTHER = 532,
  OUTPUT = 533, OVERFLOW = 534, OVERLINE = 535, PACKED_DECIMAL = 536,
  PADDING = 537, PAGE = 538, PAGE_FOOTING = 539, PAGE_HEADING = 540,
  PARAGRAPH = 541, PERFORM = 542, PICTURE = 543, PLUS = 544,
  POINTER = 545, POSITION = 546, POSITIVE = 547, PRESENT = 548,
  PREVIOUS = 549, PRINTER = 550, PRINTING = 551, PROCEDURE = 552,
  PROCEDURES = 553, PROCEED = 554, PROGRAM = 555, PROGRAM_ID = 556,
  PROGRAM_NAME = 557, PROGRAM_POINTER = 558, PROMPT = 559, QUOTE = 560,
  RANDOM = 561, RD = 562, READ = 563, RECORD = 564,
  RECORDING = 565, RECORDS = 566, RECURSIVE = 567, REDEFINES = 568,
  REEL = 569, REFERENCE = 570, RELATIVE = 571, RELEASE = 572,
  REMAINDER = 573, REMOVAL = 574, RENAMES = 575, REPLACING = 576,
  REPORT = 577, REPORTING = 578, REPORTS = 579, REPORT_FOOTING = 580,
  REPORT_HEADING = 581, REPOSITORY = 582, REQUIRED = 583, RESERVE = 584,
  RETURN = 585, RETURNING = 586, REVERSE_FUNC = 587, REVERSE_VIDEO = 588,
  REWIND = 589, REWRITE = 590, RIGHT = 591, ROLLBACK = 592,
  ROUNDED = 593, RUN = 594, SAME = 595, SCREEN = 596,
  SCREEN_CONTROL = 597, SCROLL = 598, SD = 599, SEARCH = 600,
  SECTION = 601, SECURE = 602, SEGMENT_LIMIT = 603, SELECT = 604,
  SEMI_COLON = 605, SENTENCE = 606, SEPARATE = 607, SEQUENCE = 608,
  SEQUENTIAL = 609, SET = 610, SHARING = 611, SIGN = 612,
  SIGNED = 613, SIGNED_INT = 614, SIGNED_LONG = 615, SIGNED_SHORT = 616,
  SIZE = 617, SIZE_ERROR = 618, SORT = 619, SORT_MERGE = 620,
  SOURCE = 621, SOURCE_COMPUTER = 622, SPACE = 623, SPECIAL_NAMES = 624,
  STANDARD = 625, STANDARD_1 = 626, STANDARD_2 = 627, START = 628,
  STATUS = 629, STOP = 630, STRING = 631, SUBSTITUTE_FUNC = 632,
  SUBSTITUTE_CASE_FUNC = 633, SUBTRACT = 634, SUM = 635, SUPPRESS = 636,
  SYMBOLIC = 637, SYNCHRONIZED = 638, TALLYING = 639, TAPE = 640,
  TERMINATE = 641, TEST = 642, THAN = 643, THEN = 644,
  THRU = 645, TIME = 646, TIMES = 647, TO = 648,
  TOK_FALSE = 649, TOK_FILE = 650, TOK_INITIAL = 651, TOK_NULL = 652,
  TOK_TRUE = 653, TOP = 654, TRAILING = 655, TRANSFORM = 656,
  TRIM_FUNCTION = 657, TYPE = 658, UNDERLINE = 659, UNIT = 660,
  UNLOCK = 661, UNSIGNED = 662, UNSIGNED_INT = 663, UNSIGNED_LONG = 664,
  UNSIGNED_SHORT = 665, UNSTRING = 666, UNTIL = 667, UP = 668,
  UPDATE = 669, UPON = 670, UPON_ARGUMENT_NUMBER = 671, UPON_COMMAND_LINE = 672,
  UPON_ENVIRONMENT_NAME = 673, UPON_ENVIRONMENT_VALUE = 674, UPPER_CASE_FUNC = 675, USAGE = 676,
  USE = 677, USING = 678, VALUE = 679, VARYING = 680,
  WAIT = 681, WHEN = 682, WHEN_COMPILED_FUNC = 683, WITH = 684,
  WORD = 685, WORDS = 686, WORKING_STORAGE = 687, WRITE = 688,
  YYYYDDD = 689, YYYYMMDD = 690, ZERO = 691, UNARY_SIGN = 692,
  TOKEN_EOF = 0, COPY = 258, REPLACE = 259, SUPPRESS = 260,
  PRINTING = 261, REPLACING = 262, OFF = 263, IN = 264,
  OF = 265, BY = 266, EQEQ = 267, TOKEN = 268,
  TOKEN_EOF = 0, COPY = 258, REPLACE = 259, SUPPRESS = 260,
  PRINTING = 261, REPLACING = 262, OFF = 263, IN = 264,
  OF = 265, BY = 266, EQEQ = 267, TOKEN = 268
}

Functions

static char * fix_filename (char *name)
static char * fold_lower (char *name)
static char * fold_upper (char *name)
static struct cb_replace_listcb_replace_list_add (struct cb_replace_list *replace_list, struct cb_text_list *old_text, struct cb_text_list *new_text)
static void yy_stack_print (short *bottom, short *top)
static void yy_reduce_print (int yyrule)
static YYSIZE_T yystrlen (char *yystr) const
static char * yystpcpy (char *yydest, const char *yysrc)
static void yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
static void yydestruct (int yytype, YYSTYPE *yyvaluep)
int yyparse ()

Variables

static const unsigned char yytranslate []
static const unsigned char yyprhs []
static const yysigned_char yyrhs []
static const unsigned char yyrline []
static const char *const yytname []
static const unsigned char yyr1 []
static const unsigned char yyr2 []
static const unsigned char yydefact []
static const yysigned_char yydefgoto []
static const yysigned_char yypact []
static const yysigned_char yypgoto []
static const unsigned char yytable []
static const yysigned_char yycheck []
static const unsigned char yystos []
int yydebug
int yychar
YYSTYPE yylval
int yynerrs

Define Documentation

#define BY   266

Definition at line 88 of file ppparse.c.

#define COPY   258

Definition at line 80 of file ppparse.c.

#define EQEQ   267

Definition at line 89 of file ppparse.c.

#define IN   264

Definition at line 86 of file ppparse.c.

#define OF   265

Definition at line 87 of file ppparse.c.

#define OFF   263

Definition at line 85 of file ppparse.c.

#define pperror   cb_error

Definition at line 110 of file ppparse.c.

#define PRINTING   261

Definition at line 83 of file ppparse.c.

#define REPLACE   259

Definition at line 81 of file ppparse.c.

#define REPLACING   262

Definition at line 84 of file ppparse.c.

#define SUPPRESS   260

Definition at line 82 of file ppparse.c.

#define TOKEN   268

Definition at line 90 of file ppparse.c.

#define TOKEN_EOF   0

Definition at line 79 of file ppparse.c.

#define YY_REDUCE_PRINT (   Rule)
Value:
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (Rule);             \
} while (0)

Definition at line 604 of file ppparse.c.

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)

Definition at line 574 of file ppparse.c.

#define YYABORT   goto yyabortlab

Definition at line 472 of file ppparse.c.

#define YYACCEPT   goto yyacceptlab

Definition at line 471 of file ppparse.c.

#define YYBACKUP (   Token,
  Value 
)
Value:
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror ("syntax error: cannot back up");\
      YYERROR;                                                  \
    }                                                           \
while (0)

Definition at line 483 of file ppparse.c.

#define YYBISON   1

Definition at line 37 of file ppparse.c.

#define yychar   ppchar

Definition at line 54 of file ppparse.c.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 467 of file ppparse.c.

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do                                      \
        {                                       \
          register YYSIZE_T yyi;                \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (0)

Definition at line 213 of file ppparse.c.

#define yydebug   ppdebug

Definition at line 55 of file ppparse.c.

#define YYDEBUG   1

Definition at line 108 of file ppparse.c.

#define YYDPRINTF (   Args)
Value:
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (0)

Definition at line 530 of file ppparse.c.

#define YYDSYMPRINT (   Args)
Value:
do {                                            \
  if (yydebug)                                  \
    yysymprint Args;                            \
} while (0)

Definition at line 536 of file ppparse.c.

#define YYDSYMPRINTF (   Title,
  Token,
  Value,
  Location 
)
Value:
do {                                                            \
  if (yydebug)                                                  \
    {                                                           \
      YYFPRINTF (stderr, "%s ", Title);                         \
      yysymprint (stderr,                                       \
                  Token, Value);        \
      YYFPRINTF (stderr, "\n");                                 \
    }                                                           \
} while (0)

Definition at line 542 of file ppparse.c.

#define YYEMPTY   (-2)

Definition at line 468 of file ppparse.c.

#define YYEOF   0

Definition at line 469 of file ppparse.c.

#define YYERRCODE   256

Definition at line 501 of file ppparse.c.

#define yyerrok   (yyerrstatus = 0)

Definition at line 466 of file ppparse.c.

#define yyerror   pperror

Definition at line 52 of file ppparse.c.

#define YYERROR   goto yyerrlab1

Definition at line 473 of file ppparse.c.

#define YYERROR_VERBOSE   1

Definition at line 127 of file ppparse.c.

#define YYERROR_VERBOSE   1

Definition at line 127 of file ppparse.c.

#define YYFAIL   goto yyerrlab

Definition at line 479 of file ppparse.c.

#define YYFINAL   2

Definition at line 249 of file ppparse.c.

#define YYFPRINTF   fprintf

Definition at line 527 of file ppparse.c.

#define YYINITDEPTH   200

Definition at line 624 of file ppparse.c.

#define YYLAST   41

Definition at line 251 of file ppparse.c.

#define yylex   pplex

Definition at line 51 of file ppparse.c.

#define YYLEX   yylex ()

Definition at line 519 of file ppparse.c.

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
Current.first_line   = Rhs[1].first_line;      \
  Current.first_column = Rhs[1].first_column;    \
  Current.last_line    = Rhs[N].last_line;       \
  Current.last_column  = Rhs[N].last_column;

Definition at line 507 of file ppparse.c.

#define YYLSP_NEEDED   0

Definition at line 46 of file ppparse.c.

#define yylval   pplval

Definition at line 53 of file ppparse.c.

#define YYMAXDEPTH   10000

Definition at line 639 of file ppparse.c.

#define YYMAXUTOK   268

Definition at line 264 of file ppparse.c.

#define yynerrs   ppnerrs

Definition at line 56 of file ppparse.c.

#define YYNNTS   15

Definition at line 256 of file ppparse.c.

#define YYNRULES   31

Definition at line 258 of file ppparse.c.

#define YYNSTATES   50

Definition at line 260 of file ppparse.c.

#define YYNTOKENS   17

Definition at line 254 of file ppparse.c.

#define YYPACT_NINF   -13

Definition at line 399 of file ppparse.c.

int yyparse   ppparse

Definition at line 50 of file ppparse.c.

#define YYPOPSTACK   (yyvsp--, yyssp--)
#define YYPURE   0

Definition at line 43 of file ppparse.c.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 481 of file ppparse.c.

#define YYSIZE_T   unsigned int

Definition at line 463 of file ppparse.c.

#define YYSKELETON_NAME   "yacc.c"

Definition at line 40 of file ppparse.c.

#define YYSTACK_ALLOC   malloc

Definition at line 180 of file ppparse.c.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (short) + sizeof (YYSTYPE))                              \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 202 of file ppparse.c.

#define YYSTACK_FREE   free

Definition at line 181 of file ppparse.c.

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 198 of file ppparse.c.

#define YYSTACK_RELOCATE (   Stack)
Value:
do                                                                      \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        Stack = &yyptr->Stack;                                          \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (0)

Definition at line 229 of file ppparse.c.

#define yystype   YYSTYPE

Definition at line 141 of file ppparse.c.

#define YYSTYPE_IS_DECLARED   1

Definition at line 142 of file ppparse.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 143 of file ppparse.c.

#define YYTABLE_NINF   -1

Definition at line 420 of file ppparse.c.

#define YYTERROR   1

Definition at line 500 of file ppparse.c.

#define YYTOKENTYPE

Definition at line 61 of file ppparse.c.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 266 of file ppparse.c.

#define YYUNDEFTOK   2

Definition at line 263 of file ppparse.c.


Typedef Documentation

typedef short yysigned_char

Definition at line 245 of file ppparse.c.

typedef union YYSTYPE YYSTYPE

Enumeration Type Documentation

Enumerator:
TOKEN_EOF 
ACCEPT 
ACCESS 
ADD 
ADDRESS 
ADVANCING 
AFTER 
ALL 
ALLOCATE 
ALPHABET 
ALPHABETIC 
ALPHABETIC_LOWER 
ALPHABETIC_UPPER 
ALPHANUMERIC 
ALPHANUMERIC_EDITED 
ALSO 
ALTER 
ALTERNATE 
AND 
ANY 
ARE 
AREA 
ARGUMENT_NUMBER 
ARGUMENT_VALUE 
AS 
ASCENDING 
ASSIGN 
AT 
AUTO 
AUTOMATIC 
BACKGROUND_COLOR 
BASED 
BEFORE 
BELL 
BINARY 
BINARY_C_LONG 
BINARY_CHAR 
BINARY_DOUBLE 
BINARY_LONG 
BINARY_SHORT 
BLANK 
BLANK_LINE 
BLANK_SCREEN 
BLINK 
BLOCK 
BOTTOM 
BY 
BYTE_LENGTH 
CALL 
CANCEL 
CH 
CHAINING 
CHARACTER 
CHARACTERS 
CLASS 
CLOSE 
CODE 
CODE_SET 
COLLATING 
COL 
COLS 
COLUMN 
COLUMNS 
COMMA 
COMMAND_LINE 
COMMA_DELIM 
COMMIT 
COMMON 
COMP 
COMPUTE 
COMP_1 
COMP_2 
COMP_3 
COMP_4 
COMP_5 
COMP_X 
CONCATENATE_FUNC 
CONFIGURATION 
CONSTANT 
CONTAINS 
CONTENT 
CONTINUE 
CONTROL 
CONTROLS 
CONTROL_FOOTING 
CONTROL_HEADING 
CONVERTING 
CORRESPONDING 
COUNT 
CRT 
CURRENCY 
CURRENT_DATE_FUNC 
CURSOR 
CYCLE 
DATA 
DATE 
DAY 
DAY_OF_WEEK 
DE 
DEBUGGING 
DECIMAL_POINT 
DECLARATIVES 
DEFAULT 
DELETE 
DELIMITED 
DELIMITER 
DEPENDING 
DESCENDING 
DETAIL 
DISK 
DISPLAY 
DIVIDE 
DIVISION 
DOWN 
DUPLICATES 
DYNAMIC 
EBCDIC 
ELSE 
END 
END_ACCEPT 
END_ADD 
END_CALL 
END_COMPUTE 
END_DELETE 
END_DISPLAY 
END_DIVIDE 
END_EVALUATE 
END_FUNCTION 
END_IF 
END_MULTIPLY 
END_PERFORM 
END_PROGRAM 
END_READ 
END_RETURN 
END_REWRITE 
END_SEARCH 
END_START 
END_STRING 
END_SUBTRACT 
END_UNSTRING 
END_WRITE 
ENTRY 
ENVIRONMENT 
ENVIRONMENT_NAME 
ENVIRONMENT_VALUE 
EOL 
EOP 
EOS 
EQUAL 
EQUALS 
ERASE 
ERROR 
ESCAPE 
EVALUATE 
EVENT_STATUS 
EXCEPTION 
EXCLUSIVE 
EXIT 
EXTEND 
EXTERNAL 
FD 
FILE_CONTROL 
FILE_ID 
FILLER 
FINAL 
FIRST 
FOOTING 
FOR 
FOREGROUND_COLOR 
FOREVER 
FREE 
FROM 
FULL 
FUNCTION 
FUNCTION_ID 
FUNCTION_NAME 
GE 
GENERATE 
GIVING 
GLOBAL 
GO 
GOBACK 
GREATER 
GROUP 
HEADING 
HIGHLIGHT 
HIGH_VALUE 
IDENTIFICATION 
IF 
IGNORE 
IGNORING 
IN 
INDEX 
INDEXED 
INDICATE 
INITIALIZE 
INITIALIZED 
INITIATE 
INPUT 
INPUT_OUTPUT 
INSPECT 
INTO 
INTRINSIC 
INVALID 
INVALID_KEY 
IS 
I_O 
I_O_CONTROL 
JUSTIFIED 
KEY 
LABEL 
LAST 
LAST_DETAIL 
LE 
LEADING 
LEFT 
LENGTH 
LESS 
LIMIT 
LIMITS 
LINAGE 
LINAGE_COUNTER 
LINE 
LINES 
LINKAGE 
LITERAL 
LOCALE 
LOCALE_DT_FUNC 
LOCAL_STORAGE 
LOCK 
LOWER_CASE_FUNC 
LOWLIGHT 
LOW_VALUE 
MANUAL 
MEMORY 
MERGE 
MINUS 
MNEMONIC_NAME 
MODE 
MOVE 
MULTIPLE 
MULTIPLY 
NATIONAL 
NATIONAL_EDITED 
NATIVE 
NE 
NEGATIVE 
NEXT 
NEXT_SENTENCE 
NO 
NOT 
NOT_END 
NOT_EOP 
NOT_EXCEPTION 
NOT_INVALID_KEY 
NOT_OVERFLOW 
NOT_SIZE_ERROR 
NO_ADVANCING 
NUMBER 
NUMBERS 
NUMERIC 
NUMERIC_EDITED 
NUMVALC_FUNC 
OBJECT_COMPUTER 
OCCURS 
OF 
OFF 
OMITTED 
ON 
ONLY 
OPEN 
OPTIONAL 
OR 
ORDER 
ORGANIZATION 
OTHER 
OUTPUT 
OVERFLOW 
OVERLINE 
PACKED_DECIMAL 
PADDING 
PAGE 
PAGE_FOOTING 
PAGE_HEADING 
PARAGRAPH 
PERFORM 
PICTURE 
PLUS 
POINTER 
POSITION 
POSITIVE 
PRESENT 
PREVIOUS 
PRINTER 
PRINTING 
PROCEDURE 
PROCEDURES 
PROCEED 
PROGRAM 
PROGRAM_ID 
PROGRAM_NAME 
PROGRAM_POINTER 
PROMPT 
QUOTE 
RANDOM 
RD 
READ 
RECORD 
RECORDING 
RECORDS 
RECURSIVE 
REDEFINES 
REEL 
REFERENCE 
RELATIVE 
RELEASE 
REMAINDER 
REMOVAL 
RENAMES 
REPLACING 
REPORT 
REPORTING 
REPORTS 
REPORT_FOOTING 
REPORT_HEADING 
REPOSITORY 
REQUIRED 
RESERVE 
RETURN 
RETURNING 
REVERSE_FUNC 
REVERSE_VIDEO 
REWIND 
REWRITE 
RIGHT 
ROLLBACK 
ROUNDED 
RUN 
SAME 
SCREEN 
SCREEN_CONTROL 
SCROLL 
SD 
SEARCH 
SECTION 
SECURE 
SEGMENT_LIMIT 
SELECT 
SEMI_COLON 
SENTENCE 
SEPARATE 
SEQUENCE 
SEQUENTIAL 
SET 
SHARING 
SIGN 
SIGNED 
SIGNED_INT 
SIGNED_LONG 
SIGNED_SHORT 
SIZE 
SIZE_ERROR 
SORT 
SORT_MERGE 
SOURCE 
SOURCE_COMPUTER 
SPACE 
SPECIAL_NAMES 
STANDARD 
STANDARD_1 
STANDARD_2 
START 
STATUS 
STOP 
STRING 
SUBSTITUTE_FUNC 
SUBSTITUTE_CASE_FUNC 
SUBTRACT 
SUM 
SUPPRESS 
SYMBOLIC 
SYNCHRONIZED 
TALLYING 
TAPE 
TERMINATE 
TEST 
THAN 
THEN 
THRU 
TIME 
TIMES 
TO 
TOK_FALSE 
TOK_FILE 
TOK_INITIAL 
TOK_NULL 
TOK_TRUE 
TOP 
TRAILING 
TRANSFORM 
TRIM_FUNCTION 
TYPE 
UNDERLINE 
UNIT 
UNLOCK 
UNSIGNED 
UNSIGNED_INT 
UNSIGNED_LONG 
UNSIGNED_SHORT 
UNSTRING 
UNTIL 
UP 
UPDATE 
UPON 
UPON_ARGUMENT_NUMBER 
UPON_COMMAND_LINE 
UPON_ENVIRONMENT_NAME 
UPON_ENVIRONMENT_VALUE 
UPPER_CASE_FUNC 
USAGE 
USE 
USING 
VALUE 
VARYING 
WAIT 
WHEN 
WHEN_COMPILED_FUNC 
WITH 
WORD 
WORDS 
WORKING_STORAGE 
WRITE 
YYYYDDD 
YYYYMMDD 
ZERO 
UNARY_SIGN 
TOKEN_EOF 
ACCEPT 
ACCESS 
ADD 
ADDRESS 
ADVANCING 
AFTER 
ALL 
ALLOCATE 
ALPHABET 
ALPHABETIC 
ALPHABETIC_LOWER 
ALPHABETIC_UPPER 
ALPHANUMERIC 
ALPHANUMERIC_EDITED 
ALSO 
ALTER 
ALTERNATE 
AND 
ANY 
ARE 
AREA 
ARGUMENT_NUMBER 
ARGUMENT_VALUE 
AS 
ASCENDING 
ASSIGN 
AT 
AUTO 
AUTOMATIC 
BACKGROUND_COLOR 
BASED 
BEFORE 
BELL 
BINARY 
BINARY_C_LONG 
BINARY_CHAR 
BINARY_DOUBLE 
BINARY_LONG 
BINARY_SHORT 
BLANK 
BLANK_LINE 
BLANK_SCREEN 
BLINK 
BLOCK 
BOTTOM 
BY 
BYTE_LENGTH 
CALL 
CANCEL 
CH 
CHAINING 
CHARACTER 
CHARACTERS 
CLASS 
CLOSE 
CODE 
CODE_SET 
COLLATING 
COL 
COLS 
COLUMN 
COLUMNS 
COMMA 
COMMAND_LINE 
COMMA_DELIM 
COMMIT 
COMMON 
COMP 
COMPUTE 
COMP_1 
COMP_2 
COMP_3 
COMP_4 
COMP_5 
COMP_X 
CONCATENATE_FUNC 
CONFIGURATION 
CONSTANT 
CONTAINS 
CONTENT 
CONTINUE 
CONTROL 
CONTROLS 
CONTROL_FOOTING 
CONTROL_HEADING 
CONVERTING 
CORRESPONDING 
COUNT 
CRT 
CURRENCY 
CURRENT_DATE_FUNC 
CURSOR 
CYCLE 
DATA 
DATE 
DAY 
DAY_OF_WEEK 
DE 
DEBUGGING 
DECIMAL_POINT 
DECLARATIVES 
DEFAULT 
DELETE 
DELIMITED 
DELIMITER 
DEPENDING 
DESCENDING 
DETAIL 
DISK 
DISPLAY 
DIVIDE 
DIVISION 
DOWN 
DUPLICATES 
DYNAMIC 
EBCDIC 
ELSE 
END 
END_ACCEPT 
END_ADD 
END_CALL 
END_COMPUTE 
END_DELETE 
END_DISPLAY 
END_DIVIDE 
END_EVALUATE 
END_FUNCTION 
END_IF 
END_MULTIPLY 
END_PERFORM 
END_PROGRAM 
END_READ 
END_RETURN 
END_REWRITE 
END_SEARCH 
END_START 
END_STRING 
END_SUBTRACT 
END_UNSTRING 
END_WRITE 
ENTRY 
ENVIRONMENT 
ENVIRONMENT_NAME 
ENVIRONMENT_VALUE 
EOL 
EOP 
EOS 
EQUAL 
EQUALS 
ERASE 
ERROR 
ESCAPE 
EVALUATE 
EVENT_STATUS 
EXCEPTION 
EXCLUSIVE 
EXIT 
EXTEND 
EXTERNAL 
FD 
FILE_CONTROL 
FILE_ID 
FILLER 
FINAL 
FIRST 
FOOTING 
FOR 
FOREGROUND_COLOR 
FOREVER 
FREE 
FROM 
FULL 
FUNCTION 
FUNCTION_ID 
FUNCTION_NAME 
GE 
GENERATE 
GIVING 
GLOBAL 
GO 
GOBACK 
GREATER 
GROUP 
HEADING 
HIGHLIGHT 
HIGH_VALUE 
IDENTIFICATION 
IF 
IGNORE 
IGNORING 
IN 
INDEX 
INDEXED 
INDICATE 
INITIALIZE 
INITIALIZED 
INITIATE 
INPUT 
INPUT_OUTPUT 
INSPECT 
INTO 
INTRINSIC 
INVALID 
INVALID_KEY 
IS 
I_O 
I_O_CONTROL 
JUSTIFIED 
KEY 
LABEL 
LAST 
LAST_DETAIL 
LE 
LEADING 
LEFT 
LENGTH 
LESS 
LIMIT 
LIMITS 
LINAGE 
LINAGE_COUNTER 
LINE 
LINES 
LINKAGE 
LITERAL 
LOCALE 
LOCALE_DT_FUNC 
LOCAL_STORAGE 
LOCK 
LOWER_CASE_FUNC 
LOWLIGHT 
LOW_VALUE 
MANUAL 
MEMORY 
MERGE 
MINUS 
MNEMONIC_NAME 
MODE 
MOVE 
MULTIPLE 
MULTIPLY 
NATIONAL 
NATIONAL_EDITED 
NATIVE 
NE 
NEGATIVE 
NEXT 
NEXT_SENTENCE 
NO 
NOT 
NOT_END 
NOT_EOP 
NOT_EXCEPTION 
NOT_INVALID_KEY 
NOT_OVERFLOW 
NOT_SIZE_ERROR 
NO_ADVANCING 
NUMBER 
NUMBERS 
NUMERIC 
NUMERIC_EDITED 
NUMVALC_FUNC 
OBJECT_COMPUTER 
OCCURS 
OF 
OFF 
OMITTED 
ON 
ONLY 
OPEN 
OPTIONAL 
OR 
ORDER 
ORGANIZATION 
OTHER 
OUTPUT 
OVERFLOW 
OVERLINE 
PACKED_DECIMAL 
PADDING 
PAGE 
PAGE_FOOTING 
PAGE_HEADING 
PARAGRAPH 
PERFORM 
PICTURE 
PLUS 
POINTER 
POSITION 
POSITIVE 
PRESENT 
PREVIOUS 
PRINTER 
PRINTING 
PROCEDURE 
PROCEDURES 
PROCEED 
PROGRAM 
PROGRAM_ID 
PROGRAM_NAME 
PROGRAM_POINTER 
PROMPT 
QUOTE 
RANDOM 
RD 
READ 
RECORD 
RECORDING 
RECORDS 
RECURSIVE 
REDEFINES 
REEL 
REFERENCE 
RELATIVE 
RELEASE 
REMAINDER 
REMOVAL 
RENAMES 
REPLACING 
REPORT 
REPORTING 
REPORTS 
REPORT_FOOTING 
REPORT_HEADING 
REPOSITORY 
REQUIRED 
RESERVE 
RETURN 
RETURNING 
REVERSE_FUNC 
REVERSE_VIDEO 
REWIND 
REWRITE 
RIGHT 
ROLLBACK 
ROUNDED 
RUN 
SAME 
SCREEN 
SCREEN_CONTROL 
SCROLL 
SD 
SEARCH 
SECTION 
SECURE 
SEGMENT_LIMIT 
SELECT 
SEMI_COLON 
SENTENCE 
SEPARATE 
SEQUENCE 
SEQUENTIAL 
SET 
SHARING 
SIGN 
SIGNED 
SIGNED_INT 
SIGNED_LONG 
SIGNED_SHORT 
SIZE 
SIZE_ERROR 
SORT 
SORT_MERGE 
SOURCE 
SOURCE_COMPUTER 
SPACE 
SPECIAL_NAMES 
STANDARD 
STANDARD_1 
STANDARD_2 
START 
STATUS 
STOP 
STRING 
SUBSTITUTE_FUNC 
SUBSTITUTE_CASE_FUNC 
SUBTRACT 
SUM 
SUPPRESS 
SYMBOLIC 
SYNCHRONIZED 
TALLYING 
TAPE 
TERMINATE 
TEST 
THAN 
THEN 
THRU 
TIME 
TIMES 
TO 
TOK_FALSE 
TOK_FILE 
TOK_INITIAL 
TOK_NULL 
TOK_TRUE 
TOP 
TRAILING 
TRANSFORM 
TRIM_FUNCTION 
TYPE 
UNDERLINE 
UNIT 
UNLOCK 
UNSIGNED 
UNSIGNED_INT 
UNSIGNED_LONG 
UNSIGNED_SHORT 
UNSTRING 
UNTIL 
UP 
UPDATE 
UPON 
UPON_ARGUMENT_NUMBER 
UPON_COMMAND_LINE 
UPON_ENVIRONMENT_NAME 
UPON_ENVIRONMENT_VALUE 
UPPER_CASE_FUNC 
USAGE 
USE 
USING 
VALUE 
VARYING 
WAIT 
WHEN 
WHEN_COMPILED_FUNC 
WITH 
WORD 
WORDS 
WORKING_STORAGE 
WRITE 
YYYYDDD 
YYYYMMDD 
ZERO 
UNARY_SIGN 
TOKEN_EOF 
COPY 
REPLACE 
SUPPRESS 
PRINTING 
REPLACING 
OFF 
IN 
OF 
BY 
EQEQ 
TOKEN 
TOKEN_EOF 
COPY 
REPLACE 
SUPPRESS 
PRINTING 
REPLACING 
OFF 
IN 
OF 
BY 
EQEQ 
TOKEN 

Definition at line 64 of file ppparse.c.

                    {
     TOKEN_EOF = 0,
     COPY = 258,
     REPLACE = 259,
     SUPPRESS = 260,
     PRINTING = 261,
     REPLACING = 262,
     OFF = 263,
     IN = 264,
     OF = 265,
     BY = 266,
     EQEQ = 267,
     TOKEN = 268
   };

Function Documentation

static struct cb_replace_list * cb_replace_list_add ( struct cb_replace_list replace_list,
struct cb_text_list old_text,
struct cb_text_list new_text 
) [static, read]

Definition at line 1458 of file ppparse.c.

{
        struct cb_replace_list *p;
        struct cb_replace_list *l;

        p = cobc_malloc (sizeof (struct cb_replace_list));
        p->old_text = old_text;
        p->new_text = new_text;
        p->next = NULL;
        if (!list) {
                return p;
        } else {
                for (l = list; l->next; l = l->next) ;
                l->next = p;
                return list;
        }
}

Here is the call graph for this function:

static char * fix_filename ( char *  name) [static]

Definition at line 1421 of file ppparse.c.

{
        /* remove quotation from alphanumeric literals */
        if (name[0] == '\'' || name[0] == '\"') {
                name++;
                name[strlen (name) - 1] = 0;
        }
        return name;
}
static char * fold_lower ( char *  name) [static]

Definition at line 1432 of file ppparse.c.

{
        unsigned char   *p;

        for (p = (unsigned char *)name; *p; p++) {
                if (isupper (*p)) {
                        *p = tolower (*p);
                }
        }
        return name;
}
static char * fold_upper ( char *  name) [static]

Definition at line 1445 of file ppparse.c.

{
        unsigned char   *p;

        for (p = (unsigned char *)name; *p; p++) {
                if (islower (*p)) {
                        *p = toupper (*p);
                }
        }
        return name;
}
static void yy_reduce_print ( int  yyrule) [static]

Definition at line 590 of file ppparse.c.

{
  int yyi;
  unsigned int yylineno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
             yyrule - 1, yylineno);
  /* Print the symbols being reduced, and their result.  */
  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
}
static void yy_stack_print ( short *  bottom,
short *  top 
) [static]

Definition at line 563 of file ppparse.c.

{
  YYFPRINTF (stderr, "Stack now");
  for (/* Nothing. */; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}
static void yydestruct ( int  yytype,
YYSTYPE yyvaluep 
) [static]

Definition at line 746 of file ppparse.c.

{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  switch (yytype)
    {

      default:
        break;
    }
}
int yyparse ( void  )
static char* yystpcpy ( char *  yydest,
const char *  yysrc 
) [static]

Definition at line 679 of file ppparse.c.

{
  register char *yyd = yydest;
  register const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
static YYSIZE_T yystrlen ( char *  yystr) const [static]

Definition at line 655 of file ppparse.c.

{
  register const char *yys = yystr;

  while (*yys++ != '\0')
    continue;

  return yys - yystr - 1;
}
static void yysymprint ( FILE *  yyoutput,
int  yytype,
YYSTYPE yyvaluep 
) [static]

Definition at line 709 of file ppparse.c.

{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  if (yytype < YYNTOKENS)
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
# ifdef YYPRINT
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
    }
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  switch (yytype)
    {
      default:
        break;
    }
  YYFPRINTF (yyoutput, ")");
}

Variable Documentation

int yychar

Definition at line 782 of file ppparse.c.

const yysigned_char yycheck[] [static]
Initial value:
{
      12,     9,    10,    13,     8,    14,    16,    15,    12,    13,
      13,     0,    11,    25,     3,     4,    12,    13,    14,     9,
      10,    12,    13,    35,    12,    13,    12,    13,    13,    13,
       5,    11,    13,     6,    13,    13,    48,     7,    14,    -1,
      -1,    43
}

Definition at line 430 of file ppparse.c.

int yydebug

Definition at line 612 of file ppparse.c.

const unsigned char yydefact[] [static]
Initial value:
{
       2,     0,     1,     0,     0,     3,     4,     5,     7,     0,
       0,    24,     0,     0,    18,    19,     0,     0,    10,    15,
      20,    22,     0,    14,     0,     0,     0,     0,     0,     8,
       9,    30,    12,    21,    23,     0,    16,    25,    26,    28,
       0,    31,    11,     0,     0,    17,    29,    27,    13,     6
}

Definition at line 381 of file ppparse.c.

const yysigned_char yydefgoto[] [static]
Initial value:
{
      -1,     1,     5,     6,    18,    32,    44,     7,    12,    13,
      14,    22,    15,    40,    42
}

Definition at line 391 of file ppparse.c.

Definition at line 785 of file ppparse.c.

int yynerrs

Definition at line 788 of file ppparse.c.

const yysigned_char yypact[] [static]
Initial value:
{
     -13,    11,   -13,    -3,    -4,   -13,   -13,   -13,    10,    -9,
       9,   -13,     4,     1,   -13,    -8,    15,    16,    25,   -13,
     -13,   -13,    12,   -13,    20,    14,    19,    21,    22,   -13,
     -13,    27,    30,   -13,   -13,    14,   -13,   -13,   -13,   -13,
     -10,   -13,   -13,    14,    24,   -13,   -13,   -13,    14,   -13
}

Definition at line 400 of file ppparse.c.

const yysigned_char yypgoto[] [static]
Initial value:
{
     -13,   -13,   -13,   -13,   -13,   -13,   -13,   -13,    -2,   -12,
     -13,   -13,   -13,   -13,   -13
}

Definition at line 410 of file ppparse.c.

const unsigned char yyprhs[] [static]
Initial value:
{
       0,     0,     3,     4,     7,     9,    11,    18,    19,    22,
      25,    26,    29,    30,    33,    37,    41,    45,    50,    52,
      54,    57,    61,    63,    66,    68,    72,    76,    81,    83,
      86,    87
}

Definition at line 304 of file ppparse.c.

const unsigned char yyr1[] [static]
Initial value:
{
       0,    17,    18,    18,    19,    19,    20,    21,    21,    21,
      22,    22,    23,    23,    24,    24,    25,    25,    26,    26,
      27,    27,    28,    28,    29,    29,    29,    29,    30,    30,
      31,    31
}

Definition at line 361 of file ppparse.c.

const unsigned char yyr2[] [static]
Initial value:
{
       0,     2,     0,     2,     1,     1,     6,     0,     2,     2,
       0,     2,     0,     2,     3,     3,     3,     4,     1,     1,
       2,     3,     1,     2,     1,     3,     3,     4,     1,     2,
       0,     1
}

Definition at line 370 of file ppparse.c.

const yysigned_char yyrhs[] [static]
Initial value:
{
      18,     0,    -1,    -1,    18,    19,    -1,    20,    -1,    24,
      -1,     3,    13,    21,    22,    23,    14,    -1,    -1,     9,
      13,    -1,    10,    13,    -1,    -1,     5,    31,    -1,    -1,
       7,    25,    -1,     4,    25,    14,    -1,     4,     8,    14,
      -1,    26,    11,    26,    -1,    25,    26,    11,    26,    -1,
      27,    -1,    29,    -1,    12,    12,    -1,    12,    28,    12,
      -1,    13,    -1,    28,    13,    -1,    13,    -1,    29,     9,
      13,    -1,    29,    10,    13,    -1,    29,    15,    30,    16,
      -1,    13,    -1,    30,    13,    -1,    -1,     6,    -1
}

Definition at line 313 of file ppparse.c.

const unsigned char yyrline[] [static]
Initial value:
{
       0,    63,    63,    63,    64,    64,    67,    89,    90,    91,
      94,    95,    99,   100,   104,   105,   109,   110,   114,   115,
     119,   120,   124,   125,   129,   130,   137,   144,   157,   158,
     165,   165
}

Definition at line 327 of file ppparse.c.

const unsigned char yystos[] [static]
Initial value:
{
       0,    18,     0,     3,     4,    19,    20,    24,    13,     8,
      12,    13,    25,    26,    27,    29,     9,    10,    21,    14,
      12,    13,    28,    14,    26,    11,     9,    10,    15,    13,
      13,     5,    22,    12,    13,    11,    26,    13,    13,    13,
      30,     6,    31,     7,    23,    26,    13,    16,    25,    14
}

Definition at line 441 of file ppparse.c.

const unsigned char yytable[] [static]
Initial value:
{
      24,    26,    27,    46,     9,    19,    47,    28,    10,    11,
       8,     2,    25,    36,     3,     4,    10,    11,    23,    16,
      17,    20,    21,    45,    33,    34,    10,    11,    29,    30,
      31,    35,    37,    41,    38,    39,    24,    43,    49,     0,
       0,    48
}

Definition at line 421 of file ppparse.c.

const char* const yytname[] [static]
Initial value:
{
  "\"end of file\"", "error", "$undefined", "COPY", "REPLACE", "SUPPRESS", 
  "PRINTING", "REPLACING", "OFF", "IN", "OF", "BY", "EQEQ", "TOKEN", 
  "'.'", "'('", "')'", "$accept", "statement_list", "statement", 
  "copy_statement", "copy_in", "copy_suppress", "copy_replacing", 
  "replace_statement", "replacing_list", "text", "pseudo_text", 
  "token_list", "identifier", "subscripts", "_printing", 0
}

Definition at line 339 of file ppparse.c.

const unsigned char yytranslate[] [static]
Initial value:
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      15,    16,     2,     2,     2,     2,    14,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13
}

Definition at line 270 of file ppparse.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines