Module Parse__.Syntax
type arg=|Atom of string * arg listatom. e.g. a(X, Y)
|ProcCtx of stringunary process context. e.g. $p
|Link of stringlink. e.g. X
|IntData of intint. e.g. 1
argument of an atom
type proc=|Zeronull.
|Graph of argatom. e.g. a(Y, b(X))
|Mol of proc * procmolecule. e.g. (P, Q)
|Rule of string option * proc * proc * procrule. e.g. P :- G1, ..., Gn | Q.
process
type atom_name_precedence= intprecedence of operators
- >= 1 for an operator atom name
- 0 for a normal symbol atom name
- -1 for a quoted atom name
type atom_name_type=|ANOp of atom_name_associativity * intoperator
|ANSymbolsymbol atom
|ANQuotedfailed to parse
Types of atom names