1
0

realLiteral.js 342 B

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