add gen-doc.sh (assumes isbpldoc to be installed), add JIO mirrorInterpreterData
This commit is contained in:
parent
34b9030612
commit
c8d07cf371
6 changed files with 24 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ test*.isbpl
|
||||||
*.class
|
*.class
|
||||||
*.jar
|
*.jar
|
||||||
*.bf.isbpl
|
*.bf.isbpl
|
||||||
|
rust-interpreter
|
||||||
|
|
|
@ -1084,6 +1084,10 @@ public class ISBPL {
|
||||||
case "jio.context":
|
case "jio.context":
|
||||||
func = (stack) -> stack.push(toISBPL(this));
|
func = (stack) -> stack.push(toISBPL(this));
|
||||||
break;
|
break;
|
||||||
|
case "jio.mirror":
|
||||||
|
// Do nothing, we are in the java interpreter already!
|
||||||
|
func = (stack) -> {};
|
||||||
|
break;
|
||||||
case "null":
|
case "null":
|
||||||
func = (stack) -> stack.push(new ISBPLObject(getType("null"), 0));
|
func = (stack) -> stack.push(new ISBPLObject(getType("null"), 0));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -621,6 +621,11 @@
|
||||||
-
|
-
|
||||||
|
|
||||||
|
|
||||||
|
#### `mirrorInterpreterData ::: -> `
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
|
||||||
#### `context ::: -> `
|
#### `context ::: -> `
|
||||||
|
|
||||||
-
|
-
|
||||||
|
|
|
@ -656,6 +656,11 @@ over type definitions, to string processing.
|
||||||
Returns the ISBPL representation of a java class (statics and constructors are usable here)
|
Returns the ISBPL representation of a java class (statics and constructors are usable here)
|
||||||
|
|
||||||
|
|
||||||
|
#### `mirrorInterpreterData ::: -> `
|
||||||
|
|
||||||
|
If using a native interpreter, mirror the data of it to the Java one for JIO access.
|
||||||
|
|
||||||
|
|
||||||
## >String
|
## >String
|
||||||
|
|
||||||
Any string in ISBPL
|
Any string in ISBPL
|
||||||
|
|
3
gen-doc.sh
Executable file
3
gen-doc.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
isbpldoc $1.isbpl > $1.md.tmp
|
||||||
|
git merge-file docs/$1.md docs/base/$1.md $1.md.tmp || echo Manual merge needed!
|
||||||
|
mv $1.md.tmp docs/base/$1.md
|
|
@ -173,7 +173,7 @@ def TYPE_JIO construct jio {
|
||||||
jio.getclass
|
jio.getclass
|
||||||
}
|
}
|
||||||
context {
|
context {
|
||||||
pop
|
mirrorInterpreterData
|
||||||
native jio.context
|
native jio.context
|
||||||
jio.context
|
jio.context
|
||||||
}
|
}
|
||||||
|
@ -181,6 +181,11 @@ def TYPE_JIO construct jio {
|
||||||
pop
|
pop
|
||||||
"java.lang.Thread" JIO class currentThread0 getId0 JIO context debuggerIPC stack get1
|
"java.lang.Thread" JIO class currentThread0 getId0 JIO context debuggerIPC stack get1
|
||||||
}
|
}
|
||||||
|
mirrorInterpreterData {
|
||||||
|
pop
|
||||||
|
native jio.mirror
|
||||||
|
jio.mirror
|
||||||
|
}
|
||||||
} =TYPE_JIO
|
} =TYPE_JIO
|
||||||
def JIO 0 TYPE_JIO settype =JIO
|
def JIO 0 TYPE_JIO settype =JIO
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue