Re-arrange source code and tests

This commit is contained in:
Guille Gonzalez
2026-01-04 07:01:24 +01:00
parent 0e865739f5
commit fe6df90c4a
18 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import Foundation
extension Math {
final class Accent: Atom {
var innerList: AtomList?
override var finalized: Math.Atom {
let finalized = super.finalized
if let accent = finalized as? Accent {
accent.innerList = accent.innerList?.finalized
}
return finalized
}
init(_ accent: Accent) {
self.innerList = accent.innerList.map { AtomList($0) }
super.init(accent)
}
init(value: String = "", innerList: AtomList? = nil) {
self.innerList = innerList
super.init(type: .accent, nucleus: value)
}
}
}