All pastes #553897 Raw Edit

Tokens base.

public text v1 · immutable
·published 2007-06-09 22:48 UTC
rendered paste body
/ TOKENS BASE - ARITMETICOS
#define TBASE_PLS    "+"           // Suma.
#define TBASE_DPLS   "++"          // Incremento.
#define TBASE_MIN    "-"           // Resta.
#define TBASE_DMIN   "--"          // Decremento.
#define TBASE_MUL    "*"           // Multiplicacion.
#define TBASE_DMUL   "**"          // Cuadrado.
#define TBASE_DIV    "/"           // Division.
#define TBASE_DDIV   "//"          // Division sin coma flotante.
#define TBASE_MOD    "%"           // Modulo.
#define TBASE_POW    "^"           // Potencia.

// TOKENS BASE - LOGICOS
#define TBASE_OR     "||"          // OR Logico.
#define TBASE_AND    "&&"          // Y Logico.
#define TBASE_XOR    "<>"          // XOR Logico.

// TOKENS BASE - COMPARACION
#define TBASE_GT     ">"           // Mayor que.
#define TBASE_LT     "<"           // Menor que.
#define TBASE_EQ     "="           // Igual que     / Afirmacion.
#define TBASE_NQ     "!"           // Distinto que  / Negacion.
#define TBASE_GEQ    "=>"          // Mayor o igual.
#define TBASE_LEQ    "<="          // Menor o igual.

// TOKENS BASE - BITS
#define TBASE_SHL    "<<"          // Shift a la izquierda.
#define TBASE_SHR    ">>"          // Shift a la derecha.

// TOKENS BASE - CONVERSION DE TIPO
#define TBASE_INT    "int"         // Convertir a entero.
#define TBASE_FLT    "float"       // Convertir a float.
#define TBASE_LNG    "long"        // Convertir a long.
#define TBASE_STR    "string"      // Convertir a cadena.

// TOKENS BASE - CONVERSION DE BASE
#define TBASE_BIN    "bin"         // Convertir a binario.
#define TBASE_DEC    "dec"         // Convertir a decimal.
#define TBASE_HEX    "hex"         // Convertir a hexadecimal.
#define TBASE_OCT    "oct"         // Convertir a octal.

// TOKENS BASE - EVALUAR EXPRESION
#define TBASE_EVL    "eval"        // Evaluar expresion.