import Foundation /// Represents the evaluation result for a single line in the editor. struct LineResult: Identifiable, Equatable { let id: Int let expression: String let result: String? let isError: Bool /// Line number (1-based) corresponding to this result. var lineNumber: Int { id } /// A blank/comment line that produces no result. var isEmpty: Bool { result == nil && !isError } }