CLectorLDC.h File Reference

#include <windows.h>
#include <fstream>
#include <iostream.h>
#include <string>
#include <stack>
#include "../Utilidades/Globales.h"
#include "../Utilidades/CSucesos.h"
#include "../Logica Interna/CCoche.h"
#include "../Logica Interna/CCircuito.h"

Go to the source code of this file.

Defines

#define __   -1
#define _____   -1
#define ALFABETICO(a)   (((a)>='A' && (a)<='Z') || ((a)>='a' && (a)<='z') || (a)=='_')
#define NUMERICO(a)   ((a)>='0' && (a)<='9')
#define PDECIMAL(a)   ((a)=='.')
#define ALFANUMERICO(a)   (NUMERICO(a) || ALFABETICO(a))
#define SEPARADOR(a)   ((a)<=' ' && (a)!=EOF)
#define R(a)   ((a) + 1000)
#define D(a)   (a)
#define OK   100000

Enumerations

enum  TIDTerminal {
  T_COCHE = 0, T_CIRCUITO, T_VELMAX, T_ACELMAX,
  T_GIROMAX, T_AGARRE, T_POLI, T_COLOR,
  T_FONDO, T_RECTA, T_CERRAR, T_Coma,
  T_ParentesisAbierto, T_ParentesisCerrado, T_CorcheteAbierto, T_CorcheteCerrado,
  T_Numero, T_Identificador, T_EOF
}
enum  TIDNoTerminal {
  NT_LDC, NT_COCHE, NT_CIRCUITO, NT_CARACTCOCHE,
  NT_CARACTCIRCUITO, NT_DEFCOCHE, NT_DEFCIRCUITO, NT_VELMAX,
  NT_ACELMAX, NT_GIROMAX, NT_AGARRE, NT_COLOR,
  NT_FONDO, NT_RECTA, NT_POLI, NT_RGB,
  NT_LISTPT3, NT_PUNTO, NT_MASPT
}
enum  { Archivo_Desconocido, Archivo_Circuito, Archivo_Coche }

Variables

const int kMaxParteEntera = 12
const int kMaxParteDecimal = 10
const int kMaxLongIdentificador = 20
const int kNumPalabrasReservadas = 11
const int kNumTerminales = 19
const string ValoresToken [kNumTerminales]
const int kNumEstados = 61
const int kNumReglas = 25
const int kNumNoTerminales = 19
const TIDNoTerminal ParteIzquierda [kNumReglas+1]
const int LongParteDerecha [kNumReglas+1]
const int IrA [kNumEstados][kNumNoTerminales]
const int Accion [kNumEstados][kNumTerminales]


Define Documentation

#define __   -1
 

Definition at line 63 of file CLectorLDC.h.

#define _____   -1
 

Definition at line 64 of file CLectorLDC.h.

#define ALFABETICO  )     (((a)>='A' && (a)<='Z') || ((a)>='a' && (a)<='z') || (a)=='_')
 

Definition at line 65 of file CLectorLDC.h.

#define ALFANUMERICO  )     (NUMERICO(a) || ALFABETICO(a))
 

Definition at line 68 of file CLectorLDC.h.

#define D  )     (a)
 

Definition at line 71 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC(), and TrueRand::Md5Hash::ProcessBlock().

#define NUMERICO  )     ((a)>='0' && (a)<='9')
 

Definition at line 66 of file CLectorLDC.h.

#define OK   100000
 

Definition at line 72 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

#define PDECIMAL  )     ((a)=='.')
 

Definition at line 67 of file CLectorLDC.h.

#define R  )     ((a) + 1000)
 

Definition at line 70 of file CLectorLDC.h.

Referenced by CCircuito::CalcularPistaDoble(), and CLectorLDC::CargarArchivoLDC().

#define SEPARADOR  )     ((a)<=' ' && (a)!=EOF)
 

Definition at line 69 of file CLectorLDC.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
Archivo_Desconocido 
Archivo_Circuito 
Archivo_Coche 

Definition at line 300 of file CLectorLDC.h.

enum TIDNoTerminal
 

Enumeration values:
NT_LDC 
NT_COCHE 
NT_CIRCUITO 
NT_CARACTCOCHE 
NT_CARACTCIRCUITO 
NT_DEFCOCHE 
NT_DEFCIRCUITO 
NT_VELMAX 
NT_ACELMAX 
NT_GIROMAX 
NT_AGARRE 
NT_COLOR 
NT_FONDO 
NT_RECTA 
NT_POLI 
NT_RGB 
NT_LISTPT3 
NT_PUNTO 
NT_MASPT 

Definition at line 106 of file CLectorLDC.h.

enum TIDTerminal
 

Enumeration values:
T_COCHE 
T_CIRCUITO 
T_VELMAX 
T_ACELMAX 
T_GIROMAX 
T_AGARRE 
T_POLI 
T_COLOR 
T_FONDO 
T_RECTA 
T_CERRAR 
T_Coma 
T_ParentesisAbierto 
T_ParentesisCerrado 
T_CorcheteAbierto 
T_CorcheteCerrado 
T_Numero 
T_Identificador 
T_EOF 

Definition at line 98 of file CLectorLDC.h.


Variable Documentation

const int Accion[kNumEstados][kNumTerminales]
 

Definition at line 209 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

const int IrA[kNumEstados][kNumNoTerminales]
 

Definition at line 132 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

const int kMaxLongIdentificador = 20
 

Definition at line 83 of file CLectorLDC.h.

Referenced by CLectorLDC::GetSiguienteToken().

const int kMaxParteDecimal = 10
 

Definition at line 82 of file CLectorLDC.h.

Referenced by CLectorLDC::GetSiguienteToken().

const int kMaxParteEntera = 12
 

Definition at line 81 of file CLectorLDC.h.

Referenced by CLectorLDC::GetSiguienteToken().

const int kNumEstados = 61
 

Definition at line 114 of file CLectorLDC.h.

const int kNumNoTerminales = 19
 

Definition at line 116 of file CLectorLDC.h.

const int kNumPalabrasReservadas = 11
 

Definition at line 86 of file CLectorLDC.h.

Referenced by CLectorLDC::GetSiguienteToken().

const int kNumReglas = 25
 

Definition at line 115 of file CLectorLDC.h.

const int kNumTerminales = 19
 

Definition at line 87 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

const int LongParteDerecha[kNumReglas+1]
 

Initial value:

 
    { 0, 1, 1, 1, 4, 4, 5, 2, 2, 0, 2, 1, 2,
         2, 2, 2, 2, 2, 3, 4, 7, 3, 5, 2, 1, 3 }

Definition at line 127 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

const TIDNoTerminal ParteIzquierda[kNumReglas+1]
 

Initial value:

Definition at line 119 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC().

const string ValoresToken[kNumTerminales]
 

Initial value:

   
    { "COCHE", "CIRCUITO", "VELMAX", "ACELMAX", "GIROMAX", "AGARRE", "POLI", 
      "COLOR",  "FONDO", "RECTA", "CERRAR", ",", "(", ")", "[", "]", "número", 
      "identificador", "Fin_de_fichero"}

Definition at line 90 of file CLectorLDC.h.

Referenced by CLectorLDC::CargarArchivoLDC(), and CLectorLDC::GetSiguienteToken().


Generated on Fri May 13 16:32:35 2005 for Screaming Racers by  doxygen 1.4.2