Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jint = jint || {};
- jint.modload = [];
- jint.docvars = [];
- jint.modload["init"] = "Init";
- //---Require Statements:
- require("calc.js");
- //---End Require Statements---//
- jint.docvars["help"] = "A simple documentation hack. Call it with a function name in quotes.";
- jint.docvars["doc"] = "Documentation tool. Call it with 'help' or no arguments to get more info.";
- jint.doc = function() {
- if (arguments[0] === undefined) {
- return Object.keys(jint.docvars);
- } else {
- return jint.docvars[arguments[0]];
- }
- }
- jint.modloader = function() {
- print("Loading modules...\n");
- for (key in jint.modload) {
- print(jint.modload[key] + " Module Loaded.\n");
- }
- }
- jint.modloader();
- jint.a = "is it someone new?";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement