Add poc files

This commit is contained in:
Joey Yakimowich-Payne 2018-05-26 10:55:38 +09:00
commit fa600b98f7
220 changed files with 45679 additions and 0 deletions

View file

@ -0,0 +1,26 @@
type fact =
| At of entity * Common.filename (* readable path *) * int (* line *)
| Kind of entity * Entity_code.entity_kind
| Type of entity * string
| Extends of string * string
| Implements of string * string
| Mixins of string * string
| Privacy of entity * Entity_code.privacy
| Call of entity * entity
| UseData of entity * entity * bool option (* read/write *)
| Special of entity * entity * entity * string (* field/function *)
| Misc of string
and entity =
string list (* package/module/namespace/class qualifier*) * string (* name *)
val string_of_fact: fact -> string
val entity_of_str: string -> entity
(* reused in other modules which generate prolog facts *)
val string_of_entity_kind: Entity_code.entity_kind -> string