Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tqma113/graph-test
A graph test language.
https://github.com/tqma113/graph-test
graph language testing
Last synced: about 2 months ago
JSON representation
A graph test language.
- Host: GitHub
- URL: https://github.com/tqma113/graph-test
- Owner: tqma113
- License: mit
- Created: 2020-07-30T09:10:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T13:53:26.000Z (about 2 years ago)
- Last Synced: 2024-11-01T13:03:10.230Z (3 months ago)
- Topics: graph, language, testing
- Language: TypeScript
- Homepage:
- Size: 2.78 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: Contributing.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Graph Test
Graph test tool chain.
## Packages
+ [language](./packages/language/README.md)
+ [editor](./packages/editor/README.md)
+ [tree](./packages/tree/README.md)## Development
1. `git clone https://github.com/tqma113/graph-test-language.git`
2. `cd graph-test-language`
3. `yarn`
3. `yarn build`
4. `cd example`
5. `yarn`
6. `yarn start`look at localhost:3000
## Example
https://github.com/tqma113/gtl-example
## Conversion graph
```
+---------------------+
| |
+-------------->| Source(string) |
| | |
| +-----+--------+------+
| |
| |
| createLexer
| |
| |
| v
| +---------------------+
| | |
codegen | Token[] |
| | |
| +-----+--------+------+
| |
| |
| parse +--------------------+
| | | |
| | | |
| v v format
| +---------------------+ |
| | | |
+---------------| Program |---------------+
| |
+-----+--------+------+
| ^
| |
| |
convert reverse
| |
| |
v |
+---------------------+
| |
| Tree |
| |
+-----+--------+------+
| ^
| |
| |
unfold fold
| |
| |
v |
+---------------------+
| |
| TreeNodeRecord |
| |
+-----+--------+------+
```