-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into stick-to-your-language
- Loading branch information
Showing
4 changed files
with
260 additions
and
75 deletions.
There are no files selected for viewing
150 changes: 75 additions & 75 deletions
150
cpg-language-typescript/src/main/nodejs/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Design Principles | ||
|
||
## The CPG represents the code's ... | ||
|
||
* Structure/Syntax | ||
* Data Flows | ||
* Execution Order/Control Flow | ||
* Variable Usage | ||
* Calls | ||
* The Type System | ||
|
||
## The CPG should parse ... | ||
|
||
* Incomplete code | ||
* Code with missing toolchains | ||
* With resilience to incorrect code | ||
* Language heterogeneous projects | ||
|
||
|
||
## CPG-Library users should be able to ... | ||
|
||
* Load projects and single files | ||
* Visualize and analyze code | ||
* Implement and register new Language Frontends | ||
* Extends and modify existing components, e.g., passes | ||
* Parse code incrementally | ||
|
||
## The CPG-Transformation should be ... | ||
* Language independent: Allow for language independent and cross-language queries | ||
* Information-rich: contain language-specific information in generalized structures | ||
* Fast (enough). | ||
* Small Projects/Development projects should be analyzable in real-time, at most some seconds. | ||
* Large libraries should take no longer than a few hours. | ||
* About 5 to 10 times as long as the compilation process. |
Oops, something went wrong.