Add GNU extensions to Algol 68 library
Integrates Algol 68 GNU extensions and standard operators into the compiler's library.
This patch enhances the Algol 68 compiler support by adding GNU extensions, including word compl operators, to the libga68 library. A new GNU module is introduced, and prelude sources are processed by sppp. The changes ensure that extended standard modes are always built, even when using strict language standards, as they are required by a68_decode_modes. The find_operator function is also corrected to properly handle standard power operators.
In Details
This commit expands GCC's Algol 68 frontend support by integrating GNU-specific extensions into libga68. It introduces a new GNU module within the library, incorporating extended standard operators like word compl. The changes affect module loading and the handling of standard modes (M_* globals), ensuring their availability for functions like a68_decode_modes. Additionally, it refactors and fixes issues in a68-parser-moids-check.cc concerning the find_operator function's logic for handling standard power operators, particularly cross-term operations.
- Algol 68
- An influential, early high-level programming language known for its complex syntax and powerful features, including a flexible type system and support for parallel processing.
- libga68
- The GCC library for Algol 68 support, providing runtime and language-specific functionalities.
- sppp
- A preprocessor used by GCC, similar to
cpp, for macro expansion and text manipulation of source files before compilation. - WORDEN
- An Algol 68 operator related to type conversion, specifically for obtaining a 'word' representation (integer, real, or bits) from other types through truncation or extension.
- cross-term operators
- In Algol 68, operators that can take operands of different, but compatible, basic types (e.g., adding a real and an integer). The language defines rules for coercing one type to match the other.