Example #1
0
 public VariableDeclarators(VariableDeclaration vDec1, VariableDeclaration vDec2)
 {
     varDeclarator1 = vDec1;
     varDeclarator2 = vDec2;
 }
Example #2
0
        VariableDeclaration variable_declarators(VariableDeclaration beforeDeclaration, Tipo tipoVariables)
        {
            if (peek(","))
            {
                match(",");

                string idVariable = direct_variable_declarator();
                Tipo tipoVariable = variable_array(tipoVariables);
                Initializers init = variable_initializer();

                entornoTipos.put(idVariable, tipoVariable);//tablasimbolos

                VariableSubDeclarator variableActual = new VariableSubDeclarator(tipoVariable, idVariable);
                VariableDeclarator actualDeclaration = new VariableDeclarator(variableActual, init);
                VariableDeclarators variableDeclarators = new VariableDeclarators(beforeDeclaration, actualDeclaration);

                return variable_declarators(variableDeclarators, tipoVariables);
            }
            else
                return beforeDeclaration;//null
        }
Example #3
0
 public VariableDeclarations(VariableDeclaration VarDeclarations)
 {
     variableDeclarations = VarDeclarations;
 }