eg/router/router.js
function(rs, args) {
			// This function is invoked by messages such as:
			//   what is 5 subtracted by 2
			//   add 6 to 7
			if (args[0].match(/^\d+$/)) {
				// They used the first form, with a number.
				return Controllers.doMath(args[1], args[0], args[2]);
			}
			else {
				// The second form, first word being the operation.
				return Controllers.doMath(args[0], args[1], args[2]);
			}
		}
function(rs, args) {
			// This function is invoked by messages such as:
			//   what is 5 subtracted by 2
			//   add 6 to 7
			if (args[0].match(/^\d+$/)) {
				// They used the first form, with a number.
				return Controllers.doMath(args[1], args[0], args[2]);
			}
			else {
				// The second form, first word being the operation.
				return Controllers.doMath(args[0], args[1], args[2]);
			}
		}
function ( rs , args ) { // This function is invoked by messages such as: //   what is 5 subtracted by 2 //   add 6 to 7 if ( args [ 0 ] . match ( / ^\d+$ / ) ) { // They used the first form, with a number. return Controllers . doMath ( args [ 1 ] , args [ 0 ] , args [ 2 ] ) ; } else { // The second form, first word being the operation. return Controllers . doMath ( args [ 0 ] , args [ 1 ] , args [ 2 ] ) ; } }
The object macro function itself.
The object macro function itself .