MISR Toolkit  1.5.1
Data Structures | Macros | Functions | Variables
lexan.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "odldef.h"
#include "odlparse.h"
#include "odlinter.h"
#include <ctype.h>

Go to the source code of this file.

Data Structures

struct  yysvf
 
struct  yywork
 

Macros

#define U(x)   x
 
#define NLSTATE   yyprevious=YYNEWLINE
 
#define BEGIN   yybgin = yysvec + 1 +
 
#define INITIAL   0
 
#define YYLERR   yysvec
 
#define YYSTATE   (yyestate-yysvec-1)
 
#define YYOPTIM   1
 
#define YYLMAX   BUFSIZ
 
#define output(c)   putc(c,yyout)
 
#define input()   (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)
 
#define unput(c)   {yytchar= (c);if(yytchar=='\n')yylineno--;*yysptr++=yytchar;}
 
#define yymore()   (yymorfg=1)
 
#define ECHO   fprintf(yyout, "%s",yytext)
 
#define REJECT   { nstr = yyreject(); goto yyfussy;}
 
#define ODL_BUFF_INCREMENT   BUFSIZ
 
#define MESSAGE1   "Value is assumed to be a file name -- converted to a string"
 
#define MESSAGE2   "Value N/A is not a name -- will appear within single quotes"
 
#define MESSAGE3   "BEGIN_GROUP statement found. Will be converted to GROUP"
 
#define MESSAGE4   "BEGIN_OBJECT statement found. Will be converted to OBJECT"
 
#define YYNEWLINE   10
 
#define YYTYPE   int
 
#define YYU(x)   x
 
#define NLSTATE   yyprevious=YYNEWLINE
 

Functions

char * yyGetStringToken ()
 
void yyGetComment ()
 
 yylex ()
 
 yywrap ()
 
char * ODLStoreString (char c)
 
void ODLNewString ()
 
char ODLBackupString ()
 
char ODLPeekString (int pos)
 
void ODLKillString ()
 
int ODLStringLength ()
 
 yylook ()
 
int yyback (int *p, int m)
 
 yyinput ()
 
void yyoutput (int c)
 
void yyunput (int c)
 

Variables

int yyleng
 
char yytext []
 
int yymorfg
 
char * yysptr = yysbuf
 
char yysbuf []
 
int yytchar
 
FILE * yyin
 
FILE * yyout
 
int yylineno =1
 
struct yysvfyyestate
 
struct yysvf yysvec []
 
struct yysvfyybgin = yysvec+1
 
int nc
 
int ODL_buf_pos = 0
 
long ODL_buf_size = 0
 
char * temp_buf = NULL
 
char * ODL_buffer = NULL
 
char * ODLcurrent_comment
 
int yyvstop []
 
struct yywork yycrank []
 
struct yyworkyytop = yycrank+3029
 
char yymatch []
 
char yyextra []
 
struct yysvfyylstate [YYLMAX]
 
struct yysvf ** yylsp
 
struct yysvf ** yyolsp
 
int * yyfnd
 
int yyprevious = YYNEWLINE
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   yybgin = yysvec + 1 +

Definition at line 4 of file lexan.c.

◆ ECHO

#define ECHO   fprintf(yyout, "%s",yytext)

Definition at line 14 of file lexan.c.

◆ INITIAL

#define INITIAL   0

Definition at line 5 of file lexan.c.

◆ input

#define input ( )    (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)

Definition at line 11 of file lexan.c.

◆ MESSAGE1

#define MESSAGE1   "Value is assumed to be a file name -- converted to a string"

Definition at line 98 of file lexan.c.

◆ MESSAGE2

#define MESSAGE2   "Value N/A is not a name -- will appear within single quotes"

Definition at line 99 of file lexan.c.

◆ MESSAGE3

#define MESSAGE3   "BEGIN_GROUP statement found. Will be converted to GROUP"

Definition at line 100 of file lexan.c.

◆ MESSAGE4

#define MESSAGE4   "BEGIN_OBJECT statement found. Will be converted to OBJECT"

Definition at line 101 of file lexan.c.

◆ NLSTATE [1/2]

#define NLSTATE   yyprevious=YYNEWLINE

Definition at line 1953 of file lexan.c.

◆ NLSTATE [2/2]

#define NLSTATE   yyprevious=YYNEWLINE

Definition at line 1953 of file lexan.c.

◆ ODL_BUFF_INCREMENT

#define ODL_BUFF_INCREMENT   BUFSIZ

Definition at line 88 of file lexan.c.

◆ output

#define output (   c)    putc(c,yyout)

Definition at line 10 of file lexan.c.

◆ REJECT

#define REJECT   { nstr = yyreject(); goto yyfussy;}

Definition at line 15 of file lexan.c.

◆ U

#define U (   x)    x

Definition at line 2 of file lexan.c.

◆ unput

#define unput (   c)    {yytchar= (c);if(yytchar=='\n')yylineno--;*yysptr++=yytchar;}

Definition at line 12 of file lexan.c.

◆ YYLERR

#define YYLERR   yysvec

Definition at line 6 of file lexan.c.

◆ YYLMAX

#define YYLMAX   BUFSIZ

Definition at line 9 of file lexan.c.

◆ yymore

#define yymore ( )    (yymorfg=1)

Definition at line 13 of file lexan.c.

◆ YYNEWLINE

#define YYNEWLINE   10

Definition at line 130 of file lexan.c.

◆ YYOPTIM

#define YYOPTIM   1

Definition at line 8 of file lexan.c.

◆ YYSTATE

#define YYSTATE   (yyestate-yysvec-1)

Definition at line 7 of file lexan.c.

◆ YYTYPE

#define YYTYPE   int

Definition at line 1006 of file lexan.c.

◆ YYU

#define YYU (   x)    x

Definition at line 1952 of file lexan.c.

Function Documentation

◆ ODLBackupString()

char ODLBackupString ( )

Definition at line 601 of file lexan.c.

◆ ODLKillString()

void ODLKillString ( )

Definition at line 621 of file lexan.c.

◆ ODLNewString()

void ODLNewString ( )

Definition at line 589 of file lexan.c.

◆ ODLPeekString()

char ODLPeekString ( int  pos)

Definition at line 612 of file lexan.c.

◆ ODLStoreString()

char* ODLStoreString ( char  c)

Definition at line 567 of file lexan.c.

◆ ODLStringLength()

int ODLStringLength ( )

Definition at line 629 of file lexan.c.

◆ yyback()

int yyback ( int *  p,
int  m 
)

Definition at line 2111 of file lexan.c.

◆ yyGetComment()

void yyGetComment ( )

Definition at line 496 of file lexan.c.

◆ yyGetStringToken()

char * yyGetStringToken ( )

Definition at line 383 of file lexan.c.

◆ yyinput()

yyinput ( )

Definition at line 2124 of file lexan.c.

◆ yylex()

yylex ( )

Definition at line 131 of file lexan.c.

◆ yylook()

yylook ( )

Definition at line 1961 of file lexan.c.

◆ yyoutput()

void yyoutput ( int  c)

Definition at line 2127 of file lexan.c.

◆ yyunput()

void yyunput ( int  c)

Definition at line 2131 of file lexan.c.

◆ yywrap()

yywrap ( )

Definition at line 353 of file lexan.c.

Variable Documentation

◆ nc

int nc

Definition at line 84 of file lexan.c.

◆ ODL_buf_pos

int ODL_buf_pos = 0

Definition at line 90 of file lexan.c.

◆ ODL_buf_size

long ODL_buf_size = 0

Definition at line 91 of file lexan.c.

◆ ODL_buffer

char* ODL_buffer = NULL

Definition at line 93 of file lexan.c.

◆ ODLcurrent_comment

char* ODLcurrent_comment

Definition at line 59 of file parsact.c.

◆ temp_buf

char* temp_buf = NULL

Definition at line 92 of file lexan.c.

◆ yybgin

struct yysvf * yybgin = yysvec+1

Definition at line 1919 of file lexan.c.

◆ yycrank

struct yywork yycrank[]

◆ yyestate

struct yysvf * yyestate

Definition at line 26 of file lexan.c.

◆ yyextra

char yyextra[]
Initial value:
= {
0,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0}

Definition at line 1938 of file lexan.c.

◆ yyfnd

int* yyfnd

Definition at line 1958 of file lexan.c.

◆ yyin

FILE* yyin

Definition at line 20 of file lexan.c.

◆ yyleng

int yyleng

Definition at line 16 of file lexan.c.

◆ yylineno

int yylineno =1

Definition at line 1951 of file lexan.c.

◆ yylsp

struct yysvf ** yylsp

Definition at line 1955 of file lexan.c.

◆ yylstate

struct yysvf* yylstate[YYLMAX]

Definition at line 1955 of file lexan.c.

◆ yymatch

char yymatch[]
Initial value:
= {
00 ,01 ,01 ,01 ,01 ,01 ,01 ,01 ,
01 ,011 ,012 ,01 ,014 ,014 ,01 ,01 ,
01 ,01 ,01 ,01 ,01 ,01 ,01 ,01 ,
01 ,01 ,01 ,01 ,01 ,01 ,01 ,01 ,
011 ,01 ,01 ,01 ,01 ,01 ,01 ,047 ,
01 ,01 ,01 ,'+' ,01 ,'+' ,01 ,01 ,
'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,
'0' ,'0' ,01 ,014 ,01 ,01 ,01 ,01 ,
01 ,'A' ,'B' ,'C' ,'D' ,'E' ,'F' ,'G' ,
'H' ,'I' ,'J' ,'H' ,'H' ,'H' ,'N' ,'O' ,
'P' ,'H' ,'R' ,'H' ,'T' ,'U' ,'H' ,'H' ,
'H' ,'H' ,'H' ,01 ,01 ,01 ,01 ,01 ,
01 ,'A' ,'B' ,'C' ,'D' ,'E' ,'F' ,'G' ,
'H' ,'I' ,'J' ,'H' ,'H' ,'H' ,'N' ,'O' ,
'P' ,'H' ,'R' ,'H' ,'T' ,'U' ,'v' ,'H' ,
'H' ,'H' ,'H' ,01 ,01 ,01 ,01 ,01 ,
0}

Definition at line 1920 of file lexan.c.

◆ yymorfg

int yymorfg

Definition at line 17 of file lexan.c.

◆ yyolsp

struct yysvf ** yyolsp

Definition at line 1955 of file lexan.c.

◆ yyout

FILE * yyout

Definition at line 20 of file lexan.c.

◆ yyprevious

int yyprevious = YYNEWLINE

Definition at line 1960 of file lexan.c.

◆ yysbuf

char yysbuf

Definition at line 1956 of file lexan.c.

◆ yysptr

char * yysptr = yysbuf

Definition at line 1957 of file lexan.c.

◆ yysvec

struct yysvf yysvec

Definition at line 1767 of file lexan.c.

◆ yytchar

int yytchar

Definition at line 19 of file lexan.c.

◆ yytext

char yytext

Definition at line 1954 of file lexan.c.

◆ yytop

struct yywork* yytop = yycrank+3029

Definition at line 1918 of file lexan.c.

◆ yyvstop

int yyvstop[]

Definition at line 633 of file lexan.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53