|
|
|
|
Manual for the Seed7 programming language
CONTENTS
- INTRODUCTION
- What is Seed7?
- Why a new programming language?
- Features of Seed7
- How to read the manual
- TUTORIAL
- Hello world
- Local declarations and expressions
- For loop and float expressions
- Parameters
- Declare a statement
- Template declaring a statement
- DECLARATIONS
- Normal declarations
- Syntax declarations
- System declarations
- PREDEFINED STATEMENTS
- Assignment
- while-statement
- repeat-statement
- for-statement
- for-each-statement
- if-statement
- case-statement
- PREDEFINED TYPES
- boolean
- integer
- bigInteger
- rational
- bigRational
- float
- complex
- char
- string
- array
- hash
- set
- struct
- category
- reference
- ref_list
- program
- ptr
- ENUMERATION
- color
- time
- duration
- file
- text
- func
- varfunc
- void
- proc
- type
- object
- expr
- PARAMETERS
- 'val' parameter
- 'ref' parameter
- 'in' parameter
- 'in var' parameter
- 'inout' parameter
- Symbol parameter
- 'attr' parameter
- OBJECT ORIENTATION
- Interface and implementation
- Dynamic dispatch
- Inheritance
- Class methods
- Multiple dispatch
- Replacing pointers with interface types
- THE FILE SYSTEM
- Conversion to strings and back
- Basic input and output operations
- Input and output with conversion
- Simple read and write statements
- Standard input and output files
- Access to operating system files
- Keyboard file
- Files with line structure
- Sockets
- User defined file types
- Scanning a file
- STRUCTURED SYNTAX DEFINITION
- The Extended Backus-Naur Form
- The syntax of a statement
- Priority and associativity
- The syntax of operators
- Syntax of predefined statements
- Advanced syntax definitions
- Comparison of EBNF and S7SSD
- TOKENS
- White space
- Spaces
- Comments
- Line comments
- Identifiers
- Name identifiers
- Special identifiers
- Parentheses
- Literals
- Integer literals
- String literals
- Character literals
- EXPRESSIONS
- Parentheses
- Call expressions
- Dot expressions
- OPERATING SYSTEM ACCESS
- Directory access
- Other directory operations
- fileType
- fileMode
- setFileMode
- fileSize
- getATime
- getCTime
- getMTime
- setATime
- setMTime
- readlink
- symlink
- removeFile
- removeAnyFile
- copyFile
- cloneFile
- moveFile
- argv
- getenv
- PRIMITIVE ACTIONS
- Actions for the type ACTION
- Actions for array types
- Actions for the type bigInteger
- Actions for the type boolean
- Actions for byte strings
- Actions for the type char
- Actions for various directory, file and other commands
- Actions for declarations
- Actions to do graphic output
- Actions for enumeration types
- Actions for the type PRIMITIVE_FILE
- Actions for the type float
- Actions to support the graphic keyboard
- Actions for hash types
- Actions for the type integer
- Actions for interface types
- Actions to support the text (console) screen keyboard
- Actions for the list type
- Actions for proc operations and statements
- Actions for the type program
- Actions for the type reference
- Actions for the type ref_list
- Actions for text (console) screen output
- Actions for struct types
- Actions for set types
- Actions for the type PRIMITIVE_SOCKET
- Actions for the type string
- Actions for the type time
- Actions for the type type
- Actions for the type utf8_file
- ERRORS
- Compile time errors
- Exceptions
- Handlers
- Stack trace
- Other errors and warnings
|
|