Interpreter prototype alpha
c++ interpreter for make believe language
 
Loading...
Searching...
No Matches
tokens.h File Reference

tokens.cpp More...

Go to the source code of this file.

Classes

class  tokens
 stores the mapping of different keywords and types More...
 
class  token
 creates an object with the mapping of a token that was assigned to it from the 'tokens' class More...
 

Enumerations

enum  TOKENS {
  NUMBER , PLUS , MINUS , MULTIPLY ,
  DIVIDE , LPAREN , RPAREN , POWER ,
  IDENTIFIER , KEYWORD , EQUALS , STRING ,
  AND , NOT , OR , MODULUS ,
  EQUALSEQUALS , GREATERTHAN , LESSTHAN , GREATERTHANOREQUALTO ,
  LESSTHANOREQUALTO , NOTEQUALTO , BEGINLOCALSCOPE , ENDLOCALSCOPE ,
  PLUSEQUALS , MINUSEQUALS , MULTIPLYEQUALS , DIVIDEEQUALS ,
  MODULUSEQUALS , POWEREQUALS , FORLOOPSEP , FUNCARGSEP ,
  NULLNODE
}
 mapping of different types of supported tokens More...
 
enum  VISITNODES {
  OPNODEPLUS , OPNODEMINUS , OPNODEMULTIPLY , OPNODEDIVIDE ,
  NUMBERNODE , PLUSUNARYOPNODE , MINUSUNARYOPNODE , POWEROPNODE ,
  NUMBERVARNODE , STRINGVARNODE , STRINGNODE , OPNODEAND ,
  OPNODENOT , OPNODEOR , OPNODEMODULUS , OPNODEEQUALSEQUALS ,
  OPNODEGREATERTHAN , OPNODELESSTHAN , OPNODEGREATERTHANOREQUALTO , OPNODELESSTHANOREQUALTO ,
  OPNODENOTEQUALTO , BUITINFUNCTION , IFSTATEMENTNODE , ELSEIFSTATEMENTNODE ,
  ELSESTATEMENT , WHILESTATEMENT , OPNODEPLUSEQUALS , OPNODEMINUSEQUALS ,
  OPNODEMULTIPLYEQUALS , OPNODEDIVIDEEQUALS , OPNODEMODULUSEQUALS , OPNODEPOWEREQUALS ,
  FORSTATEMENT , FUNCTIONDECLARATION , NULLPTRNODE
}
 mapping of different types nodes(interpreterr.cpp uses this) More...
 
enum  KEYWRODSTYPE {
  NUMBERKEY , STRINGKEY , PRINTLINE , PRINTNEWLINE ,
  DISPLAYLINE , DISPLAYNEWLINE , IF , ELSEIF ,
  ELSE , THEN , WHILE , FOR ,
  FUNCTION__DECL , FUNCTION__CALL
}
 mapping of supported keywords More...
 

Detailed Description