GNU PROLOG with UTF8 support
Macros | Functions | Variables
parse_supp.c File Reference
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <setjmp.h>
#include "engine_pl.h"
#include "bips_pl.h"
Include dependency graph for parse_supp.c:

Macros

#define OBJ_INIT   Parse_Supp_Initializer
 
#define PARSE_SUPP_FILE
 
#define COMMA_ANY   FALSE
 
#define GENERAL_TERM   0
 
#define TRYING_PREFIX   1
 
#define INSIDE_ANY_OP   2
 
#define Unget_Token
 
#define Update_Last_Read_Position
 

Functions

static void Read_Next_Token (Bool comma_is_punct)
 
static WamWord Parse_Term (int cur_prec, int context, Bool comma_is_punct)
 
static WamWord Parse_Args_Of_Functor (int atom)
 
static WamWord Parse_Bracketed_Term (void)
 
static WamWord Parse_List (Bool can_be_empty)
 
static WamWord Create_Structure (int func, int arity, WamWord *arg)
 
static int Lookup_In_Dico_Var (char *name)
 
static void Parse_Error (char *err_msg)
 
static void Parse_Supp_Initializer (void)
 
WamWord Pl_Read_Term (StmInf *pstm, int parse_end_of_term)
 
WamWord Pl_Read_Atom (StmInf *pstm)
 
WamWord Pl_Read_Integer (StmInf *pstm)
 
WamWord Pl_Read_Number (StmInf *pstm)
 
WamWord Pl_Read_Token (StmInf *pstm)
 

Variables

static StmInfpstm_i
 
static Bool tok_present
 
static TokInf unget_tok
 
static sigjmp_buf jumper
 
static int atom_var
 
static int atom_string
 
static int atom_punct
 
static int atom_atom
 
static int atom_back_quotes
 
static int atom_full_stop
 
static int atom_extend
 

Macro Definition Documentation

#define COMMA_ANY   FALSE
#define GENERAL_TERM   0
#define INSIDE_ANY_OP   2
#define OBJ_INIT   Parse_Supp_Initializer
#define PARSE_SUPP_FILE
#define TRYING_PREFIX   1
#define Unget_Token
Value:
do { \
} while(0)
static TokInf unget_tok
Definition: parse_supp.c:79
static Bool tok_present
Definition: parse_supp.c:78
TokInf pl_token
#define TRUE
Definition: bool.h:60
#define Update_Last_Read_Position
Value:
{ \
}
int pl_last_read_col
Definition: parse_supp.h:87
TokInf pl_token
int line
Definition: scan_supp.h:79
int pl_last_read_line
Definition: parse_supp.h:86
int col
Definition: scan_supp.h:80

Function Documentation

static WamWord Create_Structure ( int  func,
int  arity,
WamWord arg 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int Lookup_In_Dico_Var ( char *  name)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static WamWord Parse_Args_Of_Functor ( int  atom)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static WamWord Parse_Bracketed_Term ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void Parse_Error ( char *  err_msg)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static WamWord Parse_List ( Bool  can_be_empty)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void Parse_Supp_Initializer ( void  )
static

Here is the call graph for this function:

static WamWord Parse_Term ( int  cur_prec,
int  context,
Bool  comma_is_punct 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

WamWord Pl_Read_Atom ( StmInf pstm)

Here is the call graph for this function:

Here is the caller graph for this function:

WamWord Pl_Read_Integer ( StmInf pstm)

Here is the call graph for this function:

Here is the caller graph for this function:

WamWord Pl_Read_Number ( StmInf pstm)

Here is the call graph for this function:

Here is the caller graph for this function:

WamWord Pl_Read_Term ( StmInf pstm,
int  parse_end_of_term 
)

Here is the call graph for this function:

Here is the caller graph for this function:

WamWord Pl_Read_Token ( StmInf pstm)

Here is the call graph for this function:

Here is the caller graph for this function:

static void Read_Next_Token ( Bool  comma_is_punct)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int atom_atom
static
int atom_back_quotes
static
int atom_extend
static
int atom_full_stop
static
int atom_punct
static
int atom_string
static
int atom_var
static
sigjmp_buf jumper
static
StmInf* pstm_i
static
Bool tok_present
static
TokInf unget_tok
static