bitmark-grammar
Version:
33 lines (24 loc) • 613 B
text/typescript
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
// ConvertTo-TS run at 2016-10-04T11:26:40.6647101-07:00
import { IntegerList } from "./IntegerList";
/**
*
* @author Sam Harwell
*/
export class IntegerStack extends IntegerList {
constructor(arg?: number | IntegerStack) {
super(arg);
}
public push(value: number): void {
this.add(value);
}
public pop(): number {
return this.removeAt(this.size - 1);
}
public peek(): number {
return this.get(this.size - 1);
}
}