0
0

🎉 start working on parser

This commit is contained in:
DrMaxNix 2022-09-01 19:31:19 +02:00
parent 12f7b7e869
commit 75b95e6739

View File

@ -20,21 +20,26 @@ class Juicescript {
} }
} }
/*
Parse given PROGRAM-STRING and store syntax tree
*/
parse(program_string){
// DEVIDE INTO LINES //
var line_list = program_string.split("\n");
/**/console.log(line_list);
}
// DEBUG STUFFS // // DEBUG STUFFS //
parse(program_string){
this.program_string = program_string;
}
run(){ run(){
this.io_stdout(this.program_string); //this.io_stdout("stdout text");
this.io_stderr_debug("This debug is a test"); //this.io_stderr_debug("This debug is a test");
this.io_stderr_info("This info is a test"); //this.io_stderr_info("This info is a test");
this.io_stderr_warning("This warning is a test"); //this.io_stderr_warning("This warning is a test");
this.io_stderr_error("This error is a test"); //this.io_stderr_error("This error is a test");
} }