Skip to content

Commit adb4979

Browse files
author
Shawn Clake
committed
Minor changes
1 parent c0c6946 commit adb4979

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scriptax/drivers/builtin/Scriptax.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ def handleDriverCommand(self, command: Command) -> ApitaxResponse:
5959

6060
def getDriverScript(self, path) -> str:
6161
if path == 'bob/bob.ah':
62-
return "from scriptax import tester.bobytest(wtf='nope') as Slurp; sig(butts='beaut'); extends(Slurp); api getSig() {log(parent.butts); Slurp.doSig(); } api doBob() {log('THIS IS THE BOBBY');log(addOne(somenum=6));} api addOne(somenum) {return addOneRecursive(num=somenum);} api addOneRecursive(num) { num += 1; if(num < 10) num = addOneRecursive(num=num); return num;}"
63-
return "sig(wtf='yup'); api doSig() {log(parent.wtf);} api addOne(num) { if(num > 5) return num + 1; else return num; } api getPath () {log('method in script with path: ' + parent.path);} api resetPath () {parent.path='RESET';} api setPath(path){parent.path=path;} api test () {log('testing method');} log('Received filepath: " + path + "'); path='" + path + "'; arbVal=42;"
62+
return "from scriptax import tester.bobytest(helloo='nope') as Slurp; sig(testingthis='beaut'); extends(Slurp); api getSig() {log(parent.testingthis); Slurp.doSig(); } api doBob() {log('THIS IS THE BOBBY');log(addOne(somenum=6));} api addOne(somenum) {return addOneRecursive(num=somenum);} api addOneRecursive(num) { num += 1; if(num < 10) num = addOneRecursive(num=num); return num;}"
63+
return "sig(helloo='yup'); api doSig() {log(parent.helloo);} api addOne(num) { if(num > 5) return num + 1; else return num; } api getPath () {log('method in script with path: ' + parent.path);} api resetPath () {parent.path='RESET';} api setPath(path){parent.path=path;} api test () {log('testing method');} log('Received filepath: " + path + "'); path='" + path + "'; arbVal=42;"

scriptax/tests/SymbolTableTest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#scriptax = "from scriptax import test.testing as Tester;"
1919
#scriptax += "from scriptax import test.meow as MEOWWW;"
20-
# scriptax += "from scriptax import bob.bob(butts='kk') as Wahp;"
20+
# scriptax += "from scriptax import bob.bob(testingthis='kk') as Wahp;"
2121
# scriptax += "api someMethod () {log('TESTING SOME METHOD'); log(parent.variableTest);}"
2222
# scriptax += "api paramMethod(test) {log(test);}"
2323
# scriptax += "api returnMethod() {return 'wazzup';log('THIS SHOULD NOT BE REACHABLE');}"
@@ -26,7 +26,7 @@
2626
# scriptax += "someInstance.setPath(path='methods are good to go');someMethod();someInstance.getPath();someInstance.resetPath();someInstance.getPath();Tester.getPath();Tester.resetPath();MEOWWW.getPath();"
2727
# scriptax += "variableTest=5; if(shawn && variableTest > 5) return someInstance.addOne(num=5.1);"
2828
# scriptax += "paramMethod(test='no way');log(returnMethod());log(someInstance.addOne(num=5));"
29-
# scriptax += "bobInstance = new Wahp(butts='yeee');bobInstance.doBob();log(bobInstance.addOne(somenum=43));"
29+
# scriptax += "bobInstance = new Wahp(testingthis='yeee');bobInstance.doBob();log(bobInstance.addOne(somenum=43));"
3030
# scriptax += "someVar = {'bob': 5}; someVar.bob = 6; someVar.shawn = 'test'; log(someVar.shawn);"
3131
# scriptax += "someDict = {'blerp': 0x987abc}; someVar.shawn = someDict; log(someVar.shawn.blerp);"
3232
# scriptax += "someList = [9,7,5,3,1]; log(someList.4); someVar.shawn.blerp = someList; log(someVar); log(someVar.shawn); someVar.shawn.blerp[] = {'newItem': 'yup'}; log(someVar.shawn.blerp.5.newItem);"

0 commit comments

Comments
 (0)