add lambda expression support
This commit is contained in:
parent
67c9df0726
commit
645a78bead
1 changed files with 7 additions and 0 deletions
|
@ -127,6 +127,13 @@ public class ISBPL {
|
|||
}
|
||||
return i.get();
|
||||
};
|
||||
case "{":
|
||||
return (idx, words, file, stack) -> {
|
||||
AtomicInteger i = new AtomicInteger(idx);
|
||||
ISBPLCallable block = readBlock(i, words, file, false);
|
||||
stack.push(new ISBPLObject(getType("func"), block));
|
||||
return i.get();
|
||||
};
|
||||
case "fork":
|
||||
return (idx, words, file, stack) -> {
|
||||
idx++;
|
||||
|
|
Loading…
Add table
Reference in a new issue