INNER CODE UNIT · JavaScript

Build

NerdLang/nerd · nerd.js:315

var Build = function(prepare)
{ 
	global.DEBUG = false;
	if(global.CLI.cli["--debug"])
	{
		global.DEBUG = true;
	}
  if(global.CLI.cli["--build"]) DEFAULT_COMPILER = global.CLI.cli["--build"].argument;
  else if(global.CLI.cli["-b"]) DEFAULT_COMPILER = global.CLI.cli["-b"].argument;
  
  COMPILER = require(path.join(__dirname, "compiler", DEFAULT_COMPILER, "compiler.js"));
  
  if(global.CLI.cli["--compiler"] && global.CLI.cli["--compiler"].argument) COMPILER.COMPILER = global.CLI.cli["--compiler"].argument;
  else if(global.CLI.cli["-c"] && global.CLI.cli["-c"].argument) COMPILER.COMPILER = global.CLI.cli["-c"].argument;

  var preset;
  if(global.CLI.cli["--preset"] && global.CLI.cli["--preset"].argument) preset = global.CLI.cli["--preset"].argument;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…