public TokenizedSourceLine TokenizeLine([NotNull] string line) { line = CleanupLine(line); if (String.IsNullOrWhiteSpace(line)) { return(TokenizedSourceLine.CreateEmpty()); } var match = SPLIT_REGEX.Match(line); if (match.Success) { return(CreateSourceLine(match)); } else { throw new ArgumentException("Line is malformed: " + line, nameof(line)); } }
/// <inheritdoc /> protected bool Equals([NotNull] TokenizedSourceLine other) => Equals(Label, other.Label) && Equals(Instruction, other.Instruction);