process method

List<MassageLine> process(
  1. List<String> argsOf
)

Implementation

List<MassageLine> process(List<String> argsOf)
  => this.getFences(argsOf)
    .asIterable()
    .map<Fence>(CmdExec(this).convert)
    .transform<Iterable<Fence>>(FenceArranger())
    .map<MassageLine>((Fence f) => switch(f.type){
      .core => (nr: f.at, msg: this._tab
        .search(f.inst.substring(1)).decode(
          f.values.map<List<int>>(
             ParseInstruction.from(
                    f.inst.substring(0, 1))
                 .parserOf(
                     this._tab.search(f.inst.substring(1)))
                       .convert)
            .expand<int>((Iterable<int> i) => i).toList()), isSystem: false, enc: this._tab.search(f.inst.substring(1))),
      .cmd => (nr: f.at, msg: switch(f.inst.toLowerCase()){
          "list" => this._tab.showList(true),
          "usage" => CharHelp.usage,
          "help" => CharHelp.help,
          "oenc" => this._oencSet(f.values[0]),
          "ofile" => this._ofileModeSet(f.values[0]),
          "ob" => this._obyteModeSet(),
          "usele" => this._leModeSet(),
          "usebom" => this._bomModeSet(),
          "suspend" => "%SUSPENDED%",
          "helppage" => (){
              webOpen("https://pub.dev/packages/yakibuta");
              return "";
            }(),
          _ => "",
        }, isSystem: true, enc: this._enc),
  }).toList()._setAml(this);