cordbuilder
Version:
Simple dsl to create discord builders simple.
52 lines (51 loc) • 1.71 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubPropertyDeclaration = exports.ArgumentsExpression = exports.Identifier = exports.ParenthesizedExpression = exports.BooleanExpression = exports.StringExpression = void 0;
const ast_1 = require("../types/ast");
class StringExpression {
constructor(value) {
this.value = value;
this.kind = ast_1.ExpressionKind.StringExpression;
}
}
exports.StringExpression = StringExpression;
class BooleanExpression {
constructor(value) {
this.value = value;
this.kind = ast_1.ExpressionKind.BooleanExpression;
}
}
exports.BooleanExpression = BooleanExpression;
class ParenthesizedExpression {
constructor(parens, expression) {
this.parens = parens;
this.expression = expression;
this.kind = ast_1.ExpressionKind.ParenthesizedExpression;
}
}
exports.ParenthesizedExpression = ParenthesizedExpression;
class Identifier {
constructor(name, token) {
this.name = name;
this.token = token;
this.kind = ast_1.ExpressionKind.Identifier;
}
}
exports.Identifier = Identifier;
class ArgumentsExpression {
constructor(brackets, args) {
this.brackets = brackets;
this.args = args;
this.kind = ast_1.ExpressionKind.ArgumentsExpression;
}
}
exports.ArgumentsExpression = ArgumentsExpression;
class SubPropertyDeclaration {
constructor(identifier, expression, colon) {
this.identifier = identifier;
this.expression = expression;
this.colon = colon;
this.kind = ast_1.ExpressionKind.SubPropertyDeclaration;
}
}
exports.SubPropertyDeclaration = SubPropertyDeclaration;