small changes
This commit is contained in:
parent
d4930eb13d
commit
9401c02800
5 changed files with 11 additions and 17 deletions
|
|
@ -57,7 +57,6 @@ export class Environment {
|
|||
])));
|
||||
}
|
||||
}
|
||||
console.log(this.scopes);
|
||||
return new Environment(this.scopes.with(-1, new Map([
|
||||
...this.scopes[this.scopes.length-1].entries(),
|
||||
[key, value],
|
||||
|
|
@ -94,18 +93,6 @@ export class Environment {
|
|||
}
|
||||
}
|
||||
|
||||
// console.log('env...');
|
||||
// let env = new Environment();
|
||||
// env = env.set("a", 1);
|
||||
// env = env.set("b", 2);
|
||||
// env = env.pushScope();
|
||||
// console.log(env.get("a")); // 1
|
||||
// env = env.newVar("a", 99);
|
||||
// console.log(env.get("a")); // 99
|
||||
// env = env.popScope();
|
||||
// console.log(env.get("a")); // 1
|
||||
// console.log('end env...');
|
||||
|
||||
export type RT_Statechart = {
|
||||
mode: Mode;
|
||||
environment: Environment;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue