1
0

boolLiteral.js 343 B

123456789101112131415
  1. import { Literal } from './literal';
  2. import { Types } from './../../typeSystem/types';
  3. import { convertBoolToString } from "./../../typeSystem/parsers";
  4. export class BoolLiteral extends Literal {
  5. constructor(value) {
  6. super(Types.BOOLEAN);
  7. this.value = value;
  8. }
  9. toString () {
  10. return convertBoolToString(this.value);
  11. }
  12. }