1
0

unaryApp.js 247 B

1234567891011121314
  1. import {InfixApp} from './infixApp';
  2. export class UnaryApp extends InfixApp {
  3. constructor (op, left) {
  4. super(op, left, null);
  5. }
  6. toString () {
  7. const l = this.left.toString();
  8. const op = this.op.value;
  9. return op + l;
  10. }
  11. }