From 1f5504e9300aa0a1c4ddd5f2e3ae0ea21c1c32a9 Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Sat, 21 Nov 2020 16:51:50 -0500 Subject: Some minor CLFormat tweaks --- clformat/TODO | 7 ++++++- clformat/src/main/java/bjc/utils/ioutils/format/CLValue.java | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'clformat') diff --git a/clformat/TODO b/clformat/TODO index a62a89e..abe3a37 100644 --- a/clformat/TODO +++ b/clformat/TODO @@ -12,4 +12,9 @@ allows you to bind directives to various characters and customize their behavior One thing that will need to be involved is that all of the directives should probably have their interfaces tweaked to allow you to provide a custom form of them. One could argue this is the sort of thing that macros could do, but I can -see no compelling reason not to implement both features \ No newline at end of file +see no compelling reason not to implement both features + +@TODO Nov 14th, 2020 Ben Culkin :OnceDirective +Implement a directive (`O probably) that will only be executed once per given +invocation of 'format', or maybe one for 'once per enclosing directive'. Could +be useful, especially once we have more stateful directives. \ No newline at end of file diff --git a/clformat/src/main/java/bjc/utils/ioutils/format/CLValue.java b/clformat/src/main/java/bjc/utils/ioutils/format/CLValue.java index 746bf31..c623e6f 100644 --- a/clformat/src/main/java/bjc/utils/ioutils/format/CLValue.java +++ b/clformat/src/main/java/bjc/utils/ioutils/format/CLValue.java @@ -17,6 +17,9 @@ import bjc.esodata.*; * models lexical scopes (extend on FunctionalMap may do the right thing, not sure) * - Local variables, stored on the FormatContext as well, but these * aren't copied over when a new context is built. + * + * For static/global variables, maybe some equivalent of 'local' from perl to + * localize them. */ /** * Represents a parameter value to an edict that may have a dynamic value -- cgit v1.2.3