What are the reserved words of Seed7?
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 the past tense of spread? Okay I know its a dumb question because its just spread right? But it doesn seem right to say they spread the peanut butter on the bread yesterday. Maybe I need to insert some more words like "managed to"
- Are reCAPTCHAs less secure than other CAPTCHAs that use random characters instead of words?
- What are the reserved words of Seed7?