a68: add some standard operators for SIZETY compl
Algol68 adds standard operators for 'compl' on 'SIZETY'.
This commit introduces several standard operators for the compl (complement) operation on the SIZETY type within the Algol68 compiler. These operators, including equality, inequality, addition, subtraction, multiplication, division, and logical complement, are now defined in the standard.a68 library. Consequently, these operator declarations have been removed from the compiler’s prelude (a68-parser-prelude.cc) to avoid redundancy.
In Details
The Algol68 compiler's standard prelude (a68-parser-prelude.cc) no longer declares operators for compl on SIZETY. Instead, these operators are now defined in the libga68/standard.a68 file. This change centralizes the definition of these operators in the standard library, improving maintainability and consistency.
- Algol68
- A historically significant imperative programming language known for its innovative features like complex data structures and powerful type system.
- SIZETY
- Likely a type in Algol68 representing the size or length of a data structure or array.
- compl
- In Algol68, 'compl' is the operator for logical complement (NOT) or bitwise complement, depending on the context and type.
- operator
- A symbol or keyword that denotes a computation, such as '+', '-', '*', '/', '=', etc. In Algol68, operators can be user-defined.
- prelude
- A set of standard definitions and declarations that are automatically available to a program, typically including basic types and functions.