import {altPrio, Expression, plusPrio, seq} from "../../abap/2_statements/combi";
import {IStatementRunnable} from "../../abap/2_statements/statement_runnable";
import {DDLInclude} from "./ddl_include";
import {DDLName} from "./ddl_name";
import {DDLTableField} from "./ddl_table_field";

export class DDLTable extends Expression {
  public getRunnable(): IStatementRunnable {
    return seq("DEFINE TABLE", DDLName, "{", plusPrio(altPrio(DDLTableField, DDLInclude)), "}");
  }
}