You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
549 B
32 lines
549 B
package patronInterpreter;
|
|
|
|
//Nuestro contexto es una sentencia del lenguaje a analizar.
|
|
public class Context {
|
|
private String input;
|
|
private int output;
|
|
|
|
public Context(String input)
|
|
{
|
|
this.input = input;
|
|
}
|
|
|
|
public String getInput()
|
|
{
|
|
return input;
|
|
}
|
|
|
|
public void setInput(String input)
|
|
{
|
|
this.input = input;
|
|
}
|
|
|
|
public int getOutput()
|
|
{
|
|
return output;
|
|
}
|
|
|
|
public void setOutput(int output)
|
|
{
|
|
this.output = output;
|
|
}
|
|
}
|
|
|