My compiler is in the directory /compiler, all code compilations go through it i.e. in waffle test.mylang the source code of my programming language is stored, and when I run compiler/compiler.js then he immediately with test.mylang reads the code and saves the result output.txt saved to run it by copying, as developers of programming languages hide these operations?,- also I would like to run code with my prefix i.e. sketch code.mylang (supposedly node code.js), sketch the name of my language, which would run the compiler in compiler/compiler.js. Please, help.
Code of test.mylang:
var :(int) govnocode = 16.0;
print :(string) "Variable govnocode created!";
Code of output.txt:
#include <iostream>
using namespace std;
int main () {
int govnocode=16.0;
cout << "Variable govnocode created!", 18+18;
return 0;
}
And all these operations go through the compiler which needs to be hidden and, it would be desirable to make your own launch prefix like: sketch code.mylang