소스 검색

amberc.js: update doc on how to use amberc

Manfred Kroehnert 12 년 전
부모
커밋
2890528ec2
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      bin/amberc.js

+ 5 - 4
bin/amberc.js

@@ -1,10 +1,11 @@
 /**
  * This is a "compiler" for Amber code.
- * Create and run it the following way:
- *     var amberc = new AmberC();
- *     amberc.main();
+ * Put the following code into compiler.js:
+ *     var amberc = require('amberc');
+ *     var compiler = new amberc.Compiler('path/to/amber', ['/optional/path/to/compiler.jar]);
+ *     compiler.main();
  *
- * Execute the JS file without arguments or with -h / --help for help.
+ * Execute 'node compiler.js' without arguments or with -h / --help for help.
  */
 
 /**