|
@@ -10,19 +10,19 @@
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
- FILE * fh; // Input file handle.
|
|
|
|
- YYCTYPE buf[CHUNK_SIZE], // Start of buffer.
|
|
|
|
- * lim, // Position after the last available
|
|
|
|
- // input character (YYLIMIT).
|
|
|
|
- * cur, // Next input character to be read
|
|
|
|
- // (YYCURSOR)
|
|
|
|
- * mar, // Most recent match (YYMARKER)
|
|
|
|
- * tok, // Start of current token.
|
|
|
|
- * bol; // Address of the beginning of the
|
|
|
|
- // current line (for debugging).
|
|
|
|
- unsigned line; // Current line no. (for debugging).
|
|
|
|
- unsigned ct; // Number of parsed triples.
|
|
|
|
- bool eof; // if we have reached EOF.
|
|
|
|
|
|
+ FILE * fh; ///< Input file handle.
|
|
|
|
+ YYCTYPE buf[CHUNK_SIZE], ///< Start of buffer.
|
|
|
|
+ * lim, ///< Position after the last available
|
|
|
|
+ ///< input character (YYLIMIT).
|
|
|
|
+ * cur, ///< Next input character to be read
|
|
|
|
+ ///< (YYCURSOR)
|
|
|
|
+ * mar, ///< Most recent match (YYMARKER)
|
|
|
|
+ * tok, ///< Start of current token.
|
|
|
|
+ * bol; ///< Address of the beginning of the
|
|
|
|
+ ///< current line (for debugging).
|
|
|
|
+ unsigned line; ///< Current line no. (for debugging).
|
|
|
|
+ unsigned ct; ///< Number of parsed triples.
|
|
|
|
+ bool eof; ///< if we have reached EOF.
|
|
/*!stags:re2c format = "YYCTYPE *@@;"; */
|
|
/*!stags:re2c format = "YYCTYPE *@@;"; */
|
|
} ParseIterator;
|
|
} ParseIterator;
|
|
|
|
|
|
@@ -64,9 +64,9 @@ static void parse_init(ParseIterator *it, FILE *fh)
|
|
|
|
|
|
|
|
|
|
// Parser interface. Required here to silence linters.
|
|
// Parser interface. Required here to silence linters.
|
|
-void *NTParseAlloc();
|
|
|
|
-void NTParse();
|
|
|
|
-void NTParseFree();
|
|
|
|
|
|
+//void *NTParseAlloc(void *);
|
|
|
|
+//void NTParse(void *);
|
|
|
|
+//void NTParseFree(void *);
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|
|
void NTParseTrace();
|
|
void NTParseTrace();
|
|
#endif
|
|
#endif
|
|
@@ -76,6 +76,9 @@ void NTParseTrace();
|
|
static int lex (ParseIterator *it, LSUP_Term **term)
|
|
static int lex (ParseIterator *it, LSUP_Term **term)
|
|
{
|
|
{
|
|
const YYCTYPE *lit_data_e, *dtype_s, *lang_s;
|
|
const YYCTYPE *lit_data_e, *dtype_s, *lang_s;
|
|
|
|
+ (void) lit_data_e;
|
|
|
|
+ (void) dtype_s;
|
|
|
|
+ (void) lang_s;
|
|
|
|
|
|
loop:
|
|
loop:
|
|
|
|
|