Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
(fix) Allow init clause to be part of main dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Jun 15, 2018
1 parent ceeaf84 commit f0c6fab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion mechanization/Translation/ErgoNNRCtoJavaScriptCicero.v
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ Section ErgoNNRCtoJavaScriptCicero.
++ " * @param {" ++ request_type ++ "} context.request - the incoming request" ++ eol
++ " * @param {" ++ response_type ++ "} context.response - the response" ++ eol
++ " * @param {" ++ emits_type ++ "} context.emit - the emitted events" ++ eol
++ (if string_dec clause_name clause_init_name then " * @AccordClauseLogicInit" else " * @AccordClauseLogic") ++ eol
++ (if string_dec clause_name clause_init_name then " * @AccordClauseLogicInit" ++ eol else "")
++ " * @AccordClauseLogic" ++ eol
++ " */" ++ eol.

(** Note: this adjusts the external interface to that currently expected in Cicero. Namely:
Expand Down
8 changes: 4 additions & 4 deletions packages/ergo-cli/lib/ergoc-lib.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/ergo-compiler/lib/ergo-core.js

Large diffs are not rendered by default.

0 comments on commit f0c6fab

Please sign in to comment.