Repository navigation
Notable additions
In order to make Pseudocode usable, a few features that are not present in the taught, "official" flavors of Pseudocode have been added.
These features should probably be avoided in tests.
This document provides an exhaustive list of these "notable additions".
Sometimes it is necessary to convert values from one type to another. This can be done with a C-like syntax for type casting, or through implicit conversions.
Directives (lines starting with #) are used for configuration, comptime introspection, and modularity.
Initialiers for primitive types (any type except structure or arrays) are supported.
This is for convenience only — separating initialization from declaration is recommended to preserve your grade.
Just a semi-colon ;. Does nothing.
An anonymous block défines a new scope.
Any newline preceded by a backslash is preprocessed away. This can be used for multiline string literals:
écrireÉcran("this is a long\
string literal")Output:
this is a longstring literal
But this syntax can be used anywhere, including in keywords and other literals.