2
0

amberc 480 B

12345678910111213
  1. #!/usr/bin/env node
  2. var path = require('path');
  3. var amberc = require('./amberc.js');
  4. // Get Amber root directory from the location of this script so that
  5. // we can find the st and js directories etc.
  6. var amber_dir = path.normalize(path.join(path.dirname(process.argv[1]), '..'));
  7. // Get default location of compiler.jar
  8. var closure_jar = path.resolve(path.join(process.env['HOME'], 'compiler.jar'));
  9. var compiler = new amberc.Compiler(amber_dir, closure_jar);
  10. compiler.main();