Pol  Revision:cb584c9
tokens.h File Reference
#include <iosfwd>
#include "../clib/rawtypes.h"
#include "../clib/stlutil.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Bscript
 
 Pol::Clib
 

Enumerations

enum  Pol::Bscript::BTokenId : u16 {
  Pol::Bscript::TOK_LONG = 0x00, Pol::Bscript::TOK_DOUBLE = 0x01, Pol::Bscript::TOK_STRING = 0x02, Pol::Bscript::TOK_IDENT = 0x03,
  Pol::Bscript::TOK_ADD = 0x04, Pol::Bscript::TOK_SUBTRACT = 0x05, Pol::Bscript::TOK_MULT = 0x06, Pol::Bscript::TOK_DIV = 0x07,
  Pol::Bscript::TOK_ASSIGN = 0x08, Pol::Bscript::INS_ASSIGN_CONSUME = 0x09, Pol::Bscript::TOK_PLUSEQUAL = 0x0a, Pol::Bscript::TOK_MINUSEQUAL = 0x0b,
  Pol::Bscript::TOK_TIMESEQUAL = 0x0c, Pol::Bscript::TOK_DIVIDEEQUAL = 0x0d, Pol::Bscript::TOK_MODULUSEQUAL = 0x0e, Pol::Bscript::TOK_INSERTINTO = 0x0f,
  Pol::Bscript::TOK_LESSTHAN = 0x10, Pol::Bscript::TOK_LESSEQ = 0x11, Pol::Bscript::TOK_GRTHAN = 0x12, Pol::Bscript::TOK_GREQ = 0x13,
  Pol::Bscript::TOK_AND = 0x14, Pol::Bscript::TOK_OR = 0x15, Pol::Bscript::TOK_EQUAL = 0x16, Pol::Bscript::TOK_NEQ = 0x17,
  Pol::Bscript::TOK_UNPLUS = 0x18, Pol::Bscript::TOK_UNMINUS = 0x19, Pol::Bscript::TOK_LOG_NOT = 0x1a, Pol::Bscript::TOK_BITWISE_NOT = 0x1b,
  Pol::Bscript::TOK_CONSUMER = 0x1c, Pol::Bscript::TOK_ARRAY_SUBSCRIPT = 0x1d, Pol::Bscript::TOK_ADDMEMBER = 0x1e, Pol::Bscript::TOK_DELMEMBER = 0x1f,
  Pol::Bscript::TOK_CHKMEMBER = 0x20, Pol::Bscript::CTRL_STATEMENTBEGIN = 0x21, Pol::Bscript::CTRL_PROGEND = 0x22, Pol::Bscript::CTRL_MAKELOCAL = 0x23,
  Pol::Bscript::CTRL_JSR_USERFUNC = 0x24, Pol::Bscript::INS_POP_PARAM = 0x25, Pol::Bscript::CTRL_LEAVE_BLOCK = 0x26, Pol::Bscript::RSV_JMPIFFALSE = 0x27,
  Pol::Bscript::RSV_JMPIFTRUE = 0x28, Pol::Bscript::RSV_GOTO = 0x29, Pol::Bscript::RSV_RETURN = 0x2a, Pol::Bscript::RSV_EXIT = 0x2b,
  Pol::Bscript::RSV_LOCAL = 0x2c, Pol::Bscript::RSV_GLOBAL = 0x2d, Pol::Bscript::RSV_VAR = 0x2e, Pol::Bscript::RSV_FUNCTION = 0x2f,
  Pol::Bscript::INS_DECLARE_ARRAY = 0x30, Pol::Bscript::TOK_FUNC = 0x31, Pol::Bscript::TOK_USERFUNC = 0x32, Pol::Bscript::TOK_ERROR = 0x33,
  Pol::Bscript::TOK_IN = 0x34, Pol::Bscript::TOK_LOCALVAR = 0x35, Pol::Bscript::TOK_GLOBALVAR = 0x36, Pol::Bscript::INS_INITFOREACH = 0x37,
  Pol::Bscript::INS_STEPFOREACH = 0x38, Pol::Bscript::INS_CASEJMP = 0x39, Pol::Bscript::INS_GET_ARG = 0x3a, Pol::Bscript::TOK_ARRAY = 0x3b,
  Pol::Bscript::INS_CALL_METHOD = 0x3c, Pol::Bscript::TOK_DICTIONARY = 0x3d, Pol::Bscript::TOK_STACK = 0x3e, Pol::Bscript::INS_INITFOR = 0x3f,
  Pol::Bscript::INS_NEXTFOR = 0x40, Pol::Bscript::TOK_REFTO = 0x41, Pol::Bscript::INS_POP_PARAM_BYREF = 0x42, Pol::Bscript::TOK_MODULUS = 0x43,
  Pol::Bscript::TOK_BSLEFT = 0x44, Pol::Bscript::TOK_BSRIGHT = 0x45, Pol::Bscript::TOK_BITAND = 0x46, Pol::Bscript::TOK_BITOR = 0x47,
  Pol::Bscript::TOK_BITXOR = 0x48, Pol::Bscript::TOK_STRUCT = 0x49, Pol::Bscript::INS_SUBSCRIPT_ASSIGN = 0x4a, Pol::Bscript::INS_SUBSCRIPT_ASSIGN_CONSUME = 0x4b,
  Pol::Bscript::INS_MULTISUBSCRIPT = 0x4c, Pol::Bscript::INS_MULTISUBSCRIPT_ASSIGN = 0x4d, Pol::Bscript::INS_ASSIGN_LOCALVAR = 0x4e, Pol::Bscript::INS_ASSIGN_GLOBALVAR = 0x4f,
  Pol::Bscript::INS_GET_MEMBER = 0x50, Pol::Bscript::INS_SET_MEMBER = 0x51, Pol::Bscript::INS_SET_MEMBER_CONSUME = 0x52, Pol::Bscript::INS_ADDMEMBER2 = 0x53,
  Pol::Bscript::INS_ADDMEMBER_ASSIGN = 0x54, Pol::Bscript::INS_UNINIT = 0x55, Pol::Bscript::INS_DICTIONARY_ADDMEMBER = 0x56, Pol::Bscript::INS_GET_MEMBER_ID = 0x57,
  Pol::Bscript::INS_SET_MEMBER_ID = 0x58, Pol::Bscript::INS_SET_MEMBER_ID_CONSUME = 0x59, Pol::Bscript::INS_CALL_METHOD_ID = 0x5a, Pol::Bscript::TOK_EQUAL1 = 0x5b,
  Pol::Bscript::INS_SET_MEMBER_ID_CONSUME_PLUSEQUAL = 0x5c, Pol::Bscript::INS_SET_MEMBER_ID_CONSUME_MINUSEQUAL = 0x5d, Pol::Bscript::INS_SET_MEMBER_ID_CONSUME_TIMESEQUAL = 0x5e, Pol::Bscript::INS_SET_MEMBER_ID_CONSUME_DIVIDEEQUAL = 0x5f,
  Pol::Bscript::INS_SET_MEMBER_ID_CONSUME_MODULUSEQUAL = 0x60, Pol::Bscript::TOK_FUNCREF = 0x61, Pol::Bscript::TOK_SEMICOLON = 0x100, Pol::Bscript::TOK_COMMA,
  Pol::Bscript::TOK_LPAREN, Pol::Bscript::TOK_RPAREN, Pol::Bscript::TOK_TERM, Pol::Bscript::TOK_LBRACKET,
  Pol::Bscript::TOK_RBRACKET, Pol::Bscript::TOK_LBRACE, Pol::Bscript::TOK_RBRACE, Pol::Bscript::RSV_FOREACH,
  Pol::Bscript::RSV_ENDFOREACH, Pol::Bscript::RSV_DECLARE, Pol::Bscript::RSV_FUTURE, Pol::Bscript::RSV_BREAK,
  Pol::Bscript::RSV_CONTINUE, Pol::Bscript::RSV_USE_MODULE, Pol::Bscript::RSV_INCLUDE_FILE, Pol::Bscript::RSV_FOR,
  Pol::Bscript::RSV_NEXT, Pol::Bscript::RSV_TO, Pol::Bscript::RSV_STEP, Pol::Bscript::RSV_THEN,
  Pol::Bscript::RSV_ST_IF, Pol::Bscript::RSV_ELSE, Pol::Bscript::RSV_ELSEIF, Pol::Bscript::RSV_ENDIF,
  Pol::Bscript::RSV_GOSUB, Pol::Bscript::RSV_BEGIN, Pol::Bscript::RSV_ENDB, Pol::Bscript::RSV_DO,
  Pol::Bscript::RSV_WHILE, Pol::Bscript::RSV_OPTION_BRACKETED, Pol::Bscript::CTRL_LABEL, Pol::Bscript::CTRL_NOTHING,
  Pol::Bscript::RSV_CONST, Pol::Bscript::RSV_ENDWHILE, Pol::Bscript::RSV_REPEAT, Pol::Bscript::RSV_UNTIL,
  Pol::Bscript::RSV_ENDFOR, Pol::Bscript::RSV_ENDFUNCTION, Pol::Bscript::RSV_SWITCH, Pol::Bscript::RSV_CASE,
  Pol::Bscript::RSV_DEFAULT, Pol::Bscript::RSV_ENDSWITCH, Pol::Bscript::RSV_COLON, Pol::Bscript::RSV_PROGRAM,
  Pol::Bscript::RSV_ENDPROGRAM, Pol::Bscript::RSV_ENUM, Pol::Bscript::RSV_ENDENUM, Pol::Bscript::RSV_EXPORTED,
  Pol::Bscript::TOK_MEMBER, Pol::Bscript::TOK_DICTKEY, Pol::Bscript::RSV_DOWHILE, Pol::Bscript::TOK_UNUSED
}
 
enum  Pol::Bscript::BTokenType : u8 {
  Pol::Bscript::TYP_TERMINATOR = 0x00, Pol::Bscript::TYP_OPERAND = 0x01, Pol::Bscript::TYP_OPERATOR = 0x02, Pol::Bscript::TYP_UNARY_OPERATOR = 0x03,
  Pol::Bscript::TYP_LEFTPAREN = 0x04, Pol::Bscript::TYP_RIGHTPAREN = 0x05, Pol::Bscript::TYP_LEFTBRACKET = 0x06, Pol::Bscript::TYP_RIGHTBRACKET = 0x07,
  Pol::Bscript::TYP_TESTMAX = TYP_RIGHTBRACKET, Pol::Bscript::TYP_RESERVED = 0x08, Pol::Bscript::TYP_LABEL = 0x09, Pol::Bscript::TYP_FUNC = 0x10,
  Pol::Bscript::TYP_METHOD = 0x1a, Pol::Bscript::TYP_USERFUNC = 0x1b, Pol::Bscript::TYP_SEPARATOR = 0x1c, Pol::Bscript::TYP_DELIMITER = 0x1d,
  Pol::Bscript::TYP_CONTROL = 0x1e, Pol::Bscript::TYP_LEFTBRACE = 0x1f, Pol::Bscript::TYP_RIGHTBRACE = 0x20, Pol::Bscript::TYP_NUMTYPES = 0x21,
  Pol::Bscript::TYP_FUNCREF = 0x22
}
 
enum  Pol::Bscript::ESCRIPT_CASE_TYPES : u8 { Pol::Bscript::CASE_TYPE_LONG = 255, Pol::Bscript::CASE_TYPE_DEFAULT = 254, Pol::Bscript::CASE_STRING_MAXLEN = 253 }
 

Functions

std::ostream & Pol::Bscript::operator<< (std::ostream &out, const BTokenType &tok)
 
std::ostream & Pol::Bscript::operator<< (std::ostream &out, const BTokenId &tok)
 
template<>
std::string Pol::Clib::tostring (const Bscript::BTokenType &v)
 
template<>
std::string Pol::Clib::tostring (const Bscript::BTokenId &v)
 

Detailed Description

History

Definition in file tokens.h.