Skip to content

Commit

Permalink
grammar for domains
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed May 12, 2016
1 parent 195193a commit e353734
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/essence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,26 @@ The first character of a valid name has to be a letter or an underscore characte
Domains
-------

.. code-block:: bnf
Domain := "bool"
| "int" list(Expression, ",", "()")
| *(enumerated)* Name list(Expression, ",", "()")
| *(unnamed)* Name
| "tuple" list(Domain, ",", "()")
| "record" list(NameDomain, ",", "{}")
| "variant" list(NameDomain, ",", "{}")
| "matrix indexed by" list(Domain, ",", "[]") of Domain
| "set" list(Attribute, ",", "()") "of" Domain
| "mset" list(Attribute, ",", "()") "of" Domain
| "function" list(Attribute, ",", "()") Domain "-->" Domain
| "sequence" list(Attribute, ",", "()") "of" Domain
| "relation" list(Attribute, ",", "()") "of" list(Domain, "*", "()")
| "partition" list(Attribute, ",", "()") "from" Domain
(In preparation)


Expand Down

0 comments on commit e353734

Please sign in to comment.