def create_alter():
alter = upkey("<STR_LIT>").setResultsName("<STR_LIT:action>")<EOL>prim_or_star = primitive | "<STR_LIT:*>"<EOL>set_throughput = (<EOL>Suppress(upkey("<STR_LIT>"))<EOL>+ Optional(Suppress(upkey("<STR_LIT:index>")) + var.setResultsName("<STR_LIT:index>"))<EOL>+ create_throughput(prim_or_star)<EOL>)<EOL>drop_index = (<EOL>Suppress(upkey("<STR_LIT>") + upkey("<STR_LIT:index>")) + var + Optional(if_exists)<EOL>).setResultsName("<STR_LIT>")<EOL>global_index = _global_index()<EOL>create_index = (<EOL>Suppress(upkey("<STR_LIT>"))<EOL>+ global_index.setResultsName("<STR_LIT>")<EOL>+ Optional(if_not_exists)<EOL>)<EOL>return alter + table_key + table + (set_throughput | drop_index | create_index)<EOL>
Create the grammar for the 'alter' statement