Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| language:syntacticreplication [2025/08/25 12:56] – [Syntactic Replication] rajit | language:syntacticreplication [2025/09/04 11:12] (current) – [The core ACT language] rajit | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| (sym id : range : body(id) ) | (sym id : range : body(id) ) | ||
| </ | </ | ||
| - | The '' | + | The '' |
| <code act> | <code act> | ||
| | | ||
| </ | </ | ||
| where '' | where '' | ||
| + | |||
| + | |||
| ===== The core ACT language ===== | ===== The core ACT language ===== | ||
| Line 21: | Line 23: | ||
| b[0].R = b[1].L; b[1].R = b[2].L; ... b[8].R = b[9].L; | b[0].R = b[1].L; b[1].R = b[2].L; ... b[8].R = b[9].L; | ||
| </ | </ | ||
| + | In this particular case, the separator is empty. | ||
| Another example is: | Another example is: | ||
| Line 54: | Line 57: | ||
| ] | ] | ||
| </ | </ | ||
| + | In this scenario, the separator is the '' | ||
| Line 109: | Line 112: | ||
| | | ||
| (|i : N : ~x[i]) -> y+ | (|i : N : ~x[i]) -> y+ | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Sizing ===== | ||
| + | |||
| + | The sizing body also supports syntactic replication. | ||
| + | <code act> | ||
| + | sizing { | ||
| + | ... | ||
| + | (; i : 5 : out[i] {-1}); | ||
| + | ... | ||
| } | } | ||
| </ | </ | ||