add gen-doc.sh (assumes isbpldoc to be installed), add JIO mirrorInterpreterData

This commit is contained in:
Daniella 2022-05-27 12:24:22 +02:00
parent 34b9030612
commit c8d07cf371
6 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ test*.isbpl
*.class
*.jar
*.bf.isbpl
rust-interpreter

View file

@ -1084,6 +1084,10 @@ public class ISBPL {
case "jio.context":
func = (stack) -> stack.push(toISBPL(this));
break;
case "jio.mirror":
// Do nothing, we are in the java interpreter already!
func = (stack) -> {};
break;
case "null":
func = (stack) -> stack.push(new ISBPLObject(getType("null"), 0));
break;

View file

@ -621,6 +621,11 @@
-
#### `mirrorInterpreterData ::: -> `
-
#### `context ::: -> `
-

View file

@ -656,6 +656,11 @@ over type definitions, to string processing.
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
Any string in ISBPL

3
gen-doc.sh Executable file
View 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

View file

@ -173,7 +173,7 @@ def TYPE_JIO construct jio {
jio.getclass
}
context {
pop
mirrorInterpreterData
native jio.context
jio.context
}
@ -181,6 +181,11 @@ def TYPE_JIO construct jio {
pop
"java.lang.Thread" JIO class currentThread0 getId0 JIO context debuggerIPC stack get1
}
mirrorInterpreterData {
pop
native jio.mirror
jio.mirror
}
} =TYPE_JIO
def JIO 0 TYPE_JIO settype =JIO