Skip to content

Commit

Permalink
signal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-serrano committed Dec 30, 2023
1 parent c619ad3 commit 0ba99fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/lang/signal.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ via an [interface declaration](./module.md##hiphop-interfaces) or inside an
HipHop statement, with the [signal](./syntax/hiphop.bnf#HHSignal) construct.

### signal [direction] ident [= value] [combine function] ... ###
### signal implements [mirror] intf ... ###
<!-- [:@glyphicon glyphicon-tag syntax] -->

&#x2606; [Formal syntax](./syntax/syntax.bnf#HHSignal)
Expand Down Expand Up @@ -64,6 +65,12 @@ The `.nowval` will contain all the values emitted during the reaction.
&#x2605; Example: [toggle.hh.js](../../test/toggle.hh.js)
The form `signal implements [mirror] intf` declares locally the
signals declared in the interface `intf`. The optional keyword
`mirror` swaps the input and output signals.
&#x2605; Example: [imirror.hh.js](../../test/imirror.hh.js)
Variable Declarations
---------------------
Expand Down

0 comments on commit 0ba99fc

Please sign in to comment.