Skip to content

Instantly share code, notes, and snippets.

@stevenroose
Created May 22, 2014 18:52
Show Gist options
  • Save stevenroose/bb7276e304a3f308003a to your computer and use it in GitHub Desktop.
Save stevenroose/bb7276e304a3f308003a to your computer and use it in GitHub Desktop.
public class AssignmentStatement implements Statement {
String name;
Expression rhs;
public AssignmentStatement(String name, Expression rhs) {
this.name = name;
this.rhs = rhs;
}
public void execute(Map<String, Type> context) {
// mss wa checks runne
context.put(name, rhs);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment