REScan.xcc
Benoit Dupont de Dinechin (Benoit.Dupont-de-Dinechin@st.com)
Copyright 2007 STMicroelectronics. Copyright 1995 - 1998 Commissariat a l'Energie Atomique.
This program is free software; you can redistribute it and/or modify it under the terms of either (at your option): the GNU Public License (GPL) version 2; the GNU Lesser General Public License (LGPL) version 2.1; any later version of these licences as published by the Free Software Foundation.
REScan— Scan environment for re2c scanners.
struct REScan_ { //@args Memory memory, FILE *file Memory MEMORY; // Where to allocate memory. FILE *INPUT; // Input file. byte *TOKEN; // Start of current token. byte *LIMIT; // For YYLIMIT (past valid data). byte *MARKER; // For YYMARKER. byte *CURSOR; // For YYCURSOR. byte *BASE; // Base of the buffer. byte *PAST; // Past the buffer. byte *END; // End of input. int32_t LINE; // Input line counter. int32_t STATE; // Scanner state. //@access LENGTH (REScan_CURSOR(this) - REScan_TOKEN(this)) };