Compare commits
8 Commits
0fc2d223be
...
memes
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c35a35019 | |||
| 313f999caf | |||
| a45395857d | |||
| c07921e697 | |||
| 5451b2be40 | |||
| 54fb79fa5d | |||
| e8413de4cb | |||
| 7828890a4c |
1409
lib/dot_of_tast.ml
1409
lib/dot_of_tast.ml
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
val merlin_parse : string -> unit
|
val dot_of_tast : ?fname:string -> string -> unit
|
||||||
|
|||||||
20
lib/dune
20
lib/dune
@ -1,5 +1,25 @@
|
|||||||
|
(env
|
||||||
|
(dev (flags (:standard -warn-error -A))))
|
||||||
|
|
||||||
(library
|
(library
|
||||||
(name dot_of_tast)
|
(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
|
(libraries
|
||||||
logs.fmt
|
logs.fmt
|
||||||
fmt
|
fmt
|
||||||
|
|||||||
12
notes.org
12
notes.org
@ -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
|
** current development pattern
|
||||||
|
|||||||
Reference in New Issue
Block a user