This commit is contained in:
Vitor Santos Costa
2018-01-05 16:57:38 +00:00
parent 814aa2bd4c
commit 9c862c21bc
271 changed files with 43711 additions and 6129 deletions

View File

@@ -65,6 +65,16 @@ typedef struct yap_io_position {
intptr_t reserved[2]; /* future extensions */
} yapIOPOS;
typedef struct yapchlookahead {
intptr_t charcount; /* character position in file */
intptr_t linecount; /* lineno in file */
intptr_t linepos; /* position in line */
intptr_t ch; /* future extensions */
struct yapchlookahead *next;
} yapStreamLookahead;
extern int PopCode(int sno);
#ifndef _PL_STREAM_H
typedef struct {
YAP_Atom file; /* current source file */
@@ -244,6 +254,7 @@ typedef struct stream_desc {
int); /* function the stream uses for parser. It may be different
from above if the ISO character conversion is on */
encoding_t encoding; /** current encoding for stream */
struct yapchlookahead *recbs; /// support arbitrary depth peek
} StreamDesc;
#endif