/* * Patterns to parse: * * ?<expression> * <id>=<expression> * list breakpoint|watch|all * add breakpoint|watch <breakpoint expression> * delete breakpoint|watch <expression> * disable breakpoint|watch <expression> * enable breakpoint|watch <expression> * clear breakpoint|watch <expression> * clear all * go * step * quit * help * * <expression> = <address>, <address range>, <word address> * <address> = <label name>, <hex> * <address range> = <address>-<address>, <address>:<length> * <word address> = &<address> */ public void Parse(string command) { _formatter.Clear(); if (ParseInternal(command)) { _logger.LogInformation(_formatter.ToString()); } else { _logger.LogError($"Command not recognised: {command}"); } _formatter.Clear(); }