summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/rgens/parser/LoadOptions.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/bjc/rgens/parser/LoadOptions.java')
-rw-r--r--src/main/java/bjc/rgens/parser/LoadOptions.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/main/java/bjc/rgens/parser/LoadOptions.java b/src/main/java/bjc/rgens/parser/LoadOptions.java
new file mode 100644
index 0000000..1af0923
--- /dev/null
+++ b/src/main/java/bjc/rgens/parser/LoadOptions.java
@@ -0,0 +1,50 @@
+package bjc.rgens.parser;
+
+import java.nio.file.Path;
+
+/**
+ * Options used during the loading of config sets and config set related things.
+ *
+ * @author Ben Culkin.
+ */
+public class LoadOptions {
+ /**
+ * Should timings be tracked?
+ */
+ public boolean doPerf;
+
+ /**
+ * Should debug stats be tracked?
+ */
+ public boolean doDebug;
+
+ /**
+ * Should trace stats be tracked?
+ */
+ public boolean doTrace;
+
+ /**
+ * The default grammar set name.
+ */
+ public String defName;
+
+ /**
+ * The path the current file is in.
+ */
+ public Path parent;
+
+ /**
+ * The file the current config set is being loaded from.
+ */
+ public Path cfgFile;
+
+ /**
+ * The config set being loaded.
+ */
+ public ConfigSet cfgSet;
+
+ /**
+ * The grammar set being loaded.
+ */
+ public RGrammarSet gramSet;
+}