Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
language:introduction [2022/05/13 12:31] – rajit | language:introduction [2025/09/04 11:09] (current) – [Loops and conditionals] rajit | ||
---|---|---|---|
Line 92: | Line 92: | ||
parser was expecting. Error messages are accompanied by the file name, | parser was expecting. Error messages are accompanied by the file name, | ||
line number, and column number of the item that resulted in the error. | line number, and column number of the item that resulted in the error. | ||
+ | |||
+ | The variable names '' | ||
+ | ACT language features like functions and user-defined types. | ||
The names in the port list of a user-defined type are the only parts of | The names in the port list of a user-defined type are the only parts of | ||
Line 246: | Line 249: | ||
The parentheses are used to group the body of the loop. '' | The parentheses are used to group the body of the loop. '' | ||
the dummy variable, and it ranges from zero to eight in this | the dummy variable, and it ranges from zero to eight in this | ||
- | example. | + | example. In general if only one integer is specified for |
- | the body of the loop. | + | |
the range, the variable ranges from zero to one less than the integer. | the range, the variable ranges from zero to one less than the integer. | ||
+ | This is a special case of a more general [[syntacticreplication|syntactic replication]] construct | ||
+ | that can be used in many contexts. | ||
The conditional statement uses the guarded command notation. They are | The conditional statement uses the guarded command notation. They are |