add string blocks
This commit is contained in:
parent
b41c079c67
commit
23f974a026
1 changed files with 10 additions and 0 deletions
10
ISBPL.java
10
ISBPL.java
|
@ -245,6 +245,16 @@ public class ISBPL {
|
|||
stack.push(new ISBPLObject(getType("int"), type.id));
|
||||
return i.get();
|
||||
};
|
||||
case "string!":
|
||||
return (idx, words, file, stack) -> {
|
||||
AtomicInteger i = new AtomicInteger(idx);
|
||||
String s = "";
|
||||
for(String w : readBlock(i, words, file))
|
||||
s += w + " ";
|
||||
s = s.substring(0, s.length() - 1);
|
||||
stack.push(toISBPLString(s));
|
||||
return i.get();
|
||||
};
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue