Invention Grant
- Patent Title: Generating a semantic diff
-
Application No.: US15653746Application Date: 2017-07-19
-
Publication No.: US10558737B2Publication Date: 2020-02-11
- Inventor: Rob Rix , Rick Winfrey , Joshua Evan Vera , Timothy Evan Clem
- Applicant: Github, Inc.
- Applicant Address: US CA San Francisco
- Assignee: GITHUB, INC.
- Current Assignee: GITHUB, INC.
- Current Assignee Address: US CA San Francisco
- Agency: Workman Nydegger
- Main IPC: G06F17/22
- IPC: G06F17/22 ; G06F16/31 ; G06F17/27

Abstract:
Generation of a semantic diff is described. A machine according to some example embodiments generates first and second parse trees by parsing the first and second documents using a grammar of a coding language common to both documents. The machine classifies subtrees within these parse trees and determines that a first subtree from the first document shares a classification with a second subtree from the second document. Based on their sharing of the classification, the machine selects these two subtrees for comparison to each other and also chooses a comparison procedure based on the shared classification. The machine then executes the selected comparison procedure with the selected two subtrees as input and generates a differential subtree that indicates one or more differences between the two subtrees. The machine may also generate a differential tree that indicates differences between the entireties of the first and second documents.
Public/Granted literature
- US20190026255A1 GENERATING A SEMANTIC DIFF Public/Granted day:2019-01-24
Information query