Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
language:langs:chp [2022/05/13 08:48] rajit |
language:langs:chp [2022/08/02 16:24] rajit |
||
---|---|---|---|
Line 173: | Line 173: | ||
</ | </ | ||
+ | ==== Functions in expressions ==== | ||
+ | |||
+ | The CHP language supports functions in expressions. These functions can be templated, and must operate on '' | ||
==== More on channel expressions and probes ==== | ==== More on channel expressions and probes ==== | ||
Line 229: | Line 232: | ||
Four-phase handshake channels involve two synchronizations. If you need to make this explicit in the CHP, the '' | Four-phase handshake channels involve two synchronizations. If you need to make this explicit in the CHP, the '' | ||
+ | |||
+ | ==== The chp-txt sublanguage ==== | ||
+ | |||
+ | Since the CHP syntax is quite different from commonly used programming languages, we have provided a variation called '' | ||
+ | <code act> | ||
+ | chp-txt { | ||
+ | /* chp-txt program goes here */ | ||
+ | } | ||
+ | </ | ||
+ | The basic statements, expression syntax, etc. remains unchanged from the CHP language. What is different is the syntax for loops, selection statements, and short-cuts. | ||