Compare commits

...

8 Commits

Author SHA1 Message Date
cqc
1c35a35019 it goes pretty far
`Dot_of_tast.dot_of_tast "let rec fact n = if n = 0 then 1. else float n *. fact (n - 1) ;; module A = struct let b = 0. let derp = Some [true, false], 'h', 3. +. (4. *. 6.)  end  ";;`
2023-06-27 20:03:57 -05:00
cqc
313f999caf still works ok 2023-06-19 19:26:44 -05:00
cqc
a45395857d sorry it's in such a bad state but this didn't go very far
so hopefully i get farther with the other method and this branch is
lost to history. but in case it's not, lol
2023-05-11 18:56:57 -05:00
cqc
c07921e697 closer 2023-04-25 15:20:52 -05:00
cqc
5451b2be40 even closer 2023-04-05 14:42:42 -05:00
cqc
54fb79fa5d vertex [shape=record, label="<0>|<1>"] / edge [headport="0", tailport="1"] 2023-04-05 13:12:50 -05:00
cqc
e8413de4cb implemented edge and vertex attributes 2023-04-03 16:39:37 -05:00
cqc
7828890a4c write dot graph to file 2023-04-01 14:57:00 -05:00
4 changed files with 1354 additions and 89 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
val merlin_parse : string -> unit
val dot_of_tast : ?fname:string -> string -> unit

View File

@ -1,5 +1,25 @@
(env
(dev (flags (:standard -warn-error -A))))
(library
(name dot_of_tast)
(modules dot_of_tast)
(libraries
logs.fmt
fmt
merlin-lib.kernel
merlin-lib.analysis
merlin-lib.ocaml_merlin_specific
merlin-lib.ocaml_utils
merlin-lib.ocaml_preprocess
merlin-lib.ocaml_parsing
merlin-lib.ocaml_typing
ocamlgraph
))
(library
(name graph_of_tast)
(modules graph_of_tast)
(libraries
logs.fmt
fmt

View File

@ -1,4 +1,16 @@
* usage:
evaulate the following in ur ocaml toplevel (`$ ocaml`):
```
#use_output "dune ocaml top";;
Dot_of_tast.dot_of_tast "let rec fact n = if n = 0 then 1. else float n *. fact (n - 1)";;
```
run in shell to see output:
```
$ xdot x.dot
```
** current development pattern