https://github.com/clasp-developers/hir-clj
Render hir using cytoscape.
https://github.com/clasp-developers/hir-clj
Last synced: 5 months ago
JSON representation
Render hir using cytoscape.
- Host: GitHub
- URL: https://github.com/clasp-developers/hir-clj
- Owner: clasp-developers
- Created: 2020-07-06T14:17:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T18:04:02.000Z (almost 6 years ago)
- Last Synced: 2024-12-28T10:47:58.876Z (over 1 year ago)
- Language: Common Lisp
- Size: 32.2 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Render Cleavir HIR using cytoscape and display it in jupyterlab
## To generate a HIR graph
This compiles the form and captures the HIR during the compilation.
The HIR is stored in clasp-cleavir::*hir* until the next `hir-clj:draw-form-hir` invocation.
`(hir-clj:draw-form-hir '(lambda (x y) (+ x y)))`
## To immediately the same hir graph using graphviz for comparison
`(clasp-cleavir::draw-hir clasp-cleavir::*hir* "/tmp/hir.dot")`