What I meant was that compilers have a definition of the syntax of the statements of its input that must define all possible programs that it will read. Your "compiler" will need to do the same.
Type: Posts; User: Norm
What I meant was that compilers have a definition of the syntax of the statements of its input that must define all possible programs that it will read. Your "compiler" will need to do the same.
You need to define all the possible combinations of input and what will be written out for each input.
You need to define the "source" language and what the "compiler" will generate from it.
Sounds like you want to write a kind of compiler where the source is the "algorithm" statements and the output is c source code.