Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

Commit

Permalink
Document the Void type
Browse files Browse the repository at this point in the history
  • Loading branch information
UnkindPartition committed May 10, 2017
1 parent 8528963 commit 576a64b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions reference/supported_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ More complex types can be built out of primitive ones:
* Arrays: ``[type1]``
* `Sums <https://en.wikipedia.org/wiki/Algebraic_data_type>`_: ``Name1 type1a ... | Name2 type2a ... | ...``

``Void`` is a special type that is used to define custom sources and sinks,
see :ref:`supported-integrations`.

A user can define their own type in the :ref:`workflow_language`.
3 changes: 2 additions & 1 deletion reference/workflow_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ The syntax is defined in EBNF (ISO/IEC 14977) in terms of tokens.
import = 'import', module name, 'as', module alias;
type = 'type', name, '=', ( type expression | sum type );
declaration = 'fun', name, ':', type expression,
'->', type expression;
'->', top-level type expression;
definition = 'def', name, '=', expression;
top-level type expression = type expression | 'Void';
type expression = type expression1
| 'optional', type expression 1
;
Expand Down

0 comments on commit 576a64b

Please sign in to comment.