UNPKG

bitmark-grammar

Version:
25 lines (24 loc) 578 B
/*! * 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) { super(arg); } push(value) { this.add(value); } pop() { return this.removeAt(this.size - 1); } peek() { return this.get(this.size - 1); } }