UNPKG

@composita/il

Version:

Composita language IL.

54 lines 1.99 kB
var IntegerDescriptorTag; (function (IntegerDescriptorTag) { IntegerDescriptorTag[IntegerDescriptorTag["Tag"] = 0] = "Tag"; })(IntegerDescriptorTag || (IntegerDescriptorTag = {})); export class IntegerDescriptor { constructor(initialValue = 0) { this._integerDescriptorTag = IntegerDescriptorTag.Tag; this.initialValue = Math.trunc(initialValue); } } var FloatDescriptorTag; (function (FloatDescriptorTag) { FloatDescriptorTag[FloatDescriptorTag["Tag"] = 0] = "Tag"; })(FloatDescriptorTag || (FloatDescriptorTag = {})); export class FloatDescriptor { constructor(initialValue = 0) { this._floatDescriptorTag = FloatDescriptorTag.Tag; this.initialValue = initialValue; } } var TextDescriptorTag; (function (TextDescriptorTag) { TextDescriptorTag[TextDescriptorTag["Tag"] = 0] = "Tag"; })(TextDescriptorTag || (TextDescriptorTag = {})); export class TextDescriptor { constructor(initialValue = '') { this._TextDescriptorTag = TextDescriptorTag.Tag; this.initialValue = initialValue; } } var CharacterDescriptorTag; (function (CharacterDescriptorTag) { CharacterDescriptorTag[CharacterDescriptorTag["Tag"] = 0] = "Tag"; })(CharacterDescriptorTag || (CharacterDescriptorTag = {})); export class CharacterDescriptor { constructor(initialValue = '') { this._characterDescriptorTag = CharacterDescriptorTag.Tag; if (initialValue.length > 1) { throw new Error('CharacterDescriptor initialValue lenght > 1'); } this.initialValue = initialValue; } } var BooleanDescriptorTag; (function (BooleanDescriptorTag) { BooleanDescriptorTag[BooleanDescriptorTag["Tag"] = 0] = "Tag"; })(BooleanDescriptorTag || (BooleanDescriptorTag = {})); export class BooleanDescriptor { constructor(initialValue = false) { this._booleanDescriptorTag = BooleanDescriptorTag.Tag; this.initialValue = initialValue; } } //# sourceMappingURL=builtin.js.map