This is an old revision of the document!
Download
You can download AspectScript from here. Or, you can use subversion to download AspectScript.
http://pleiad.dcc.uchile.cl/svn/incubator/js/
That includes:
+ aspectscript/ + jsdefs.js --------------------// JavaScript AST definition. + jsparse.js -------------------// JavaScript parser. + jsrewrite.js -----------------// Library for code instrumentation of JavaScript. + jst.php ----------------------// A small library for instrumenting code online. + paperExamples/ + (examples) ----------------// Examples presented in the paper. + tests/ + run.sh --------------------// Script to execute the AspectScript tests. + (tests) -------------------// AspectScript tests. + fw-testing.js -------------------// A JavaScript framework of testing for AspectScript. + js -----------------------------// A binary for the JavaScript interpreter of Firefox.
Testing
You can test AspectScript (or some variation of it) using its suite case. To test, you need a machine Unix to execute the script: aspectscript/tests/run.sh. Currently, the suite case shows four “test failed”:
- test 15.js: Unknown
- test21-modifyingJPData.js: It is possible to change the join points structure.
- testParser01.js: The parser incorrectly resolves compositions of the if expression.
- testRee16-jpOrder: Order in the execution of join points.
Try it on!
A tutorial about AspecScript, you can find in tutorial.