mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-11 20:01:10 +01:00
saving transcript and maximizing its size
This commit is contained in:
parent
7e6289d096
commit
2290dc5070
2 changed files with 3 additions and 3 deletions
|
@ -384,7 +384,7 @@ public class Fcl {
|
|||
addPrimitive("abort", () -> { throw new Aborted(stack.pop().asStr().value()); });
|
||||
addPrimitive("eval", () -> eval(stack.pop().asStr().value()));
|
||||
addPrimitive("words", () -> {
|
||||
List<String> words = new ArrayList(wordList());
|
||||
List<String> words = new ArrayList<>(wordList());
|
||||
Collections.sort(words);
|
||||
for (String each : words) {
|
||||
transcript.show(each);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.vectron.fcl.exceptions;
|
||||
|
||||
public class Aborted extends FclException {
|
||||
public Aborted(String str) {
|
||||
super(str);
|
||||
public Aborted(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue