mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Restrict comparisons by category.
This commit is contained in:
parent
b0f6854460
commit
1ed4b68378
@ -80,7 +80,7 @@ func termWithInput(string: String) -> Term? {
|
||||
let arguments = BoundsCheckedArray(array: Process.arguments)
|
||||
if let aString = arguments[1].flatMap(readFile), bString = arguments[2].flatMap(readFile), c = arguments[3], ui = arguments[4] {
|
||||
if let a = termWithInput(aString), b = termWithInput(bString) {
|
||||
let diff = Interpreter<Term>(equal: Term.equals(annotation: const(true), leaf: ==), comparable: const(true), cost: Free.sum(Patch.difference)).run(a, b)
|
||||
let diff = Interpreter<Term>(equal: Term.equals(annotation: const(true), leaf: ==), comparable: Interpreter<Term>.comparable { $0.extract.categories }, cost: Free.sum(Patch.difference)).run(a, b)
|
||||
let range: Range<Int> -> Doubt.JSON = {
|
||||
[
|
||||
$0.startIndex.JSON,
|
||||
|
Loading…
Reference in New Issue
Block a user