Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the reserved words of Seed7?

seed7 words
0
Posted

What are the reserved words of Seed7?

0

In Seed7 there are no reserved words. Instead there are keywords which are used at various places. Some keywords introduce statements or other constructs (such as declarations). E.g.: The keywords ‘if’, ‘while’, ‘repeat’, ‘for’, and some others introduce statements. Other keywords like ‘do’, ‘range’, ‘result’, etc. are used in the middle of statements (or other constructs). Finally there are also keywords like ‘div’, ‘rem’, ‘lpad’, ‘times’, etc. which are used as operator symbols. Seed7 uses syntax declarations to specify the syntax of statements. A keyword is a name which is used somewhere in a syntax declaration. Syntax declarations reduce the possibilities to use a keyword out of context. E.g.: After the keyword ‘if’ the parser expects always an expression. This makes ‘if’ unusable as variable name. This way you get error messages when you try to use ‘if’ or other keywords as variable name. That behaviour is just the same as in other languages which have reserved words. It can be su

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123