![]() |
YAP 7.1.0
|
glue code between parser and streams More...
#include "Yap.h"#include "YapEval.h"#include "YapFlags.h"#include "YapHeap.h"#include "YapText.h"#include "Yatom.h"#include "yapio.h"#include <stdlib.h>#include "iopreds.h"Go to the source code of this file.
Macros | |
| #define | strncat(X, Y, Z) strcat(X, Y) |
| #define | strncpy(X, Y, Z) strcpy(X, Y) |
| #define | SYSTEM_STAT stat |
| #define | READ_DEFS() |
| #define | PAR(x, y, z) z |
| #define | PAR(x, y, z) |
| #define | PUSHFET(X) *HR++ = fe->X |
| #define | POPFET(X) fe->X = *--HR |
| #define | READ_CLAUSE_DEFS() |
| #define | PAR(x, y, z) z |
| #define | PAR(x, y, z) |
Typedefs | |
| typedef enum open_enum_choices | read_choices_t |
| typedef struct FEnv | FEnv |
| typedef struct renv | REnv |
| typedef enum read_clause_enum_choices | read_clause_choices_t |
Enumerations | |
| enum | open_enum_choices { OPEN_DEFS =() , READ_DEFS =() } |
| enum | parser_state_t { YAP_START_PARSING , YAP_SCANNING , YAP_SCANNING_ERROR , YAP_PARSING , YAP_PARSING_ERROR , YAP_PARSING_FINISHED } |
| enum | read_clause_enum_choices { READ_CLAUSE_DEFS =() } |
Functions | |
| Term | Yap_syntax_error (TokEntry *errtok, int sno, const char *msg) |
| Int | Yap_FirstLineInParse (void) |
| Term | Yap_read_term (int sno, Term opts, bool clause) |
| generic routine to read terms from a stream More... | |
| Term | Yap_BufferToTerm (const char *s, Term opts) |
| Term | Yap_UBufferToTerm (const unsigned char *s, Term opts) |
| X_API Term | Yap_BufferToTermWithPrioBindings (const char *s, Term ctl, Term bindings, size_t len, int prio) |
| void | Yap_InitReadTPreds (void) |
glue code between parser and streams
for yap refering to: Files and GLOBAL_Streams, Simple Input/Output,
Definition in file readterm.c.
| #define PAR | ( | x, | |
| y, | |||
| z | |||
| ) | z |
Definition at line 1436 of file readterm.c.
| #define PAR | ( | x, | |
| y, | |||
| z | |||
| ) |
Definition at line 1436 of file readterm.c.
| #define PAR | ( | x, | |
| y, | |||
| z | |||
| ) | z |
Definition at line 1436 of file readterm.c.
| #define PAR | ( | x, | |
| y, | |||
| z | |||
| ) |
Definition at line 1436 of file readterm.c.
| #define POPFET | ( | X | ) | fe->X = *--HR |
Definition at line 736 of file readterm.c.
| #define PUSHFET | ( | X | ) | *HR++ = fe->X |
Definition at line 735 of file readterm.c.
| #define READ_CLAUSE_DEFS | ( | ) |
Definition at line 1417 of file readterm.c.
| #define READ_DEFS | ( | ) |
Definition at line 205 of file readterm.c.
| #define strncat | ( | X, | |
| Y, | |||
| Z | |||
| ) | strcat(X, Y) |
Definition at line 80 of file readterm.c.
| #define strncpy | ( | X, | |
| Y, | |||
| Z | |||
| ) | strcpy(X, Y) |
Definition at line 83 of file readterm.c.
| #define SYSTEM_STAT stat |
Definition at line 99 of file readterm.c.
| enum open_enum_choices |
Definition at line 227 of file readterm.c.
| enum parser_state_t |
Definition at line 718 of file readterm.c.
| enum read_clause_enum_choices |
Definition at line 1429 of file readterm.c.
| Term Yap_BufferToTerm | ( | const char * | s, |
| Term | opts | ||
| ) |
Definition at line 1762 of file readterm.c.
| X_API Term Yap_BufferToTermWithPrioBindings | ( | const char * | s, |
| Term | ctl, | ||
| Term | bindings, | ||
| size_t | len, | ||
| int | prio | ||
| ) |
Definition at line 1793 of file readterm.c.
| Int Yap_FirstLineInParse | ( | void | ) |
Definition at line 729 of file readterm.c.
| void Yap_InitReadTPreds | ( | void | ) |
Definition at line 2020 of file readterm.c.
| Term Yap_read_term | ( | int | sno, |
| Term | opts, | ||
| bool | clause | ||
| ) |
generic routine to read terms from a stream
Implementation uses a state machine: default is init, scan, parse, complete
Definition at line 1324 of file readterm.c.
| Term Yap_syntax_error | ( | TokEntry * | errtok, |
| int | sno, | ||
| const char * | msg | ||
| ) |
Definition at line 508 of file readterm.c.
| Term Yap_UBufferToTerm | ( | const unsigned char * | s, |
| Term | opts | ||
| ) |
Definition at line 1778 of file readterm.c.