3.2.2 C ¶
The C programming language is a low-level language. We took inspiration
from it in the implementation of our language. For example, the C
programming language is from the imperative paradigm, and so is our
language.
We took many things from this language:
- The imperative paradigm
- The int-defined booleans In the C programming language, all integers
can be interpreted as booleans. A false is a value strictly equal to
zero, and a true is every other values.
- The possibility of defining variables local to each function call
- The possibility of using recursive function calls
- The representation of a chararacter by it’s ascii value
- The function used to print a character “putchar”
- The existence of a standard library with some useful functions
- All of the operations like xor, addition, bitshift…
- The possibility for functions to return a value
- The infix notation of operations, with parenthesis
- The possibility to compute directly with any combination of operations
in any part of the code where a value is required. For example, when
passing a parameter, you could pass a computation, a variable value,
or a mix of both
Many of these features are also present in other languages, but we took
them from our knowledge of the C programming language.