Ejemplo n.º 1
0
 public Symbol(string value, TerminalEnums.varTypes type, TerminalEnums.varStructure structure, int size1, int size2)
 {
     varStructure = structure;
     varType      = type;
     varValue     = value;
     sizex        = size1;
     sizey        = size2;
 }
Ejemplo n.º 2
0
 public Symbol(string value, TerminalEnums.varTypes type, TerminalEnums.varStructure structure)
 {
     varStructure = structure;
     varType      = type;
     varValue     = value;
     sizex        = -1;
     sizey        = -1;
 }
Ejemplo n.º 3
0
 public bool CreateVar(int scope, string name, string value, TerminalEnums.varTypes type, TerminalEnums.varStructure structure)
 {
     if (scope < symbolTable.Count)
     {
         return(symbolTable[scope].CreateVar(name, value, type));
     }
     else
     {
         return(false);
     }
 }