Skip to content

Commit

Permalink
initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
ATScriptDev committed Jan 31, 2018
1 parent 940a86f commit b9c93fa
Show file tree
Hide file tree
Showing 6 changed files with 3,397 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ATScompiler.js
@@ -0,0 +1,25 @@
console.log("ATScript compiler. See more at http://atscript.net");
console.log("COPYRIGHT 2017 (c) ATScript Development Team");

var fs = require("fs");

if (process.argv.length == 4){
var ats_script = fs.readFileSync(process.argv[2]);

var at_parser = require("./lib/ATScript-parser.js");
var at_generator = require("./lib/AT-generator.js");
var ast = at_parser.parse(ats_script, false);
var at_code = at_generator.gen_code(ast, {});

//console.log(at_code);

fs.writeFile(process.argv[3], at_code, function(err) {
if (err) {
return console.error(err);
}

console.log("AT code written to output file.");
});
} else {
console.log("Usage: node ATScompiler.js inputfile.ats outputfile.at");
}
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -10,6 +10,8 @@ ATScript language will be created with well defined API and documentation. ATScr

Project is planned to be finished in 12 month from work start.

PROJECT IS IN DEVELOPMENT NOW AND SOURCE CODE IS NOT YET COMPLETED!

Crowdfunding for that project: BURST-WCGB-F4SG-VKLG-GV3C4

You can also donate: BURST-FAB6-RXH7-CHA3-FWUVH
Expand Down

0 comments on commit b9c93fa

Please sign in to comment.