aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2026-03-24 18:14:09 +0900
committerShinya Sato <shinnya.sato@gmail.com>2026-03-24 18:14:09 +0900
commit3db7ebc0d503511e255926d105aa0d5f6cbfdadd (patch)
tree785f7fbb384e1757271405ee6a35fcf169224933 /src/config.h
parent11dd49da1625e1a8197c6d9f8d22743a974ddb72 (diff)
downloadinpla-3db7ebc0d503511e255926d105aa0d5f6cbfdadd.tar.gz
inpla-3db7ebc0d503511e255926d105aa0d5f6cbfdadd.zip
v0.13.3
Diffstat (limited to '')
-rw-r--r--src/config.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/config.h b/src/config.h
index 5365829..2f20bea 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,4 +1,6 @@
// Configurations ---------------------------------------------------
+#ifndef CONFIG_H_
+#define CONFIG_H_
// ------------------------------------------------
// Number of Agent Ports
@@ -10,11 +12,21 @@
// ------------------------------------------------
-// Maximum Number of VMCode Sequence
+// AST Heap
+// ------------------------------------------------
+// MAX_AST_HEAP defines the heap size of AST.
+// Increase this value if the parser runs out of heap space.
+// Default: 100000
+#define MAX_AST_HEAP 100000
+
+
+
+// ------------------------------------------------
+// VMCode Sequence
// ------------------------------------------------
// MAX_VMCODE_SEQUENCE defines the maximum number of VM codes
// for each rule. This value limits the code size stored in the RuleTable.
-// Default is 1024.
+// Default: 1024.
#define MAX_VMCODE_SEQUENCE 1024
// MAX_EXEC_VMCODE_SEQUENCE defines the maximum number of VM codes
@@ -22,10 +34,19 @@
// This buffer for this is dynamically allocated
// at the start of the top-level execution
// and de-allocated immediately after the compilation and execution finish.
-// Default is 1000000.
+// Default: 1000000.
#define MAX_EXEC_VMCODE_SEQUENCE 1000000
+// ------------------------------------------------
+// IMCode Sequence
+// ------------------------------------------------
+// MAX_IMCODE_SEQUENCE defines the maximum line number of intermediate codes.
+// This buffer is statically allocated.
+// Increase this value if the compiler runs out of heap space.
+// Default: 1024.
+//#define MAX_IMCODE_SEQUENCE 1024
+#define MAX_IMCODE_SEQUENCE 1024
// ------------------------------------------------
@@ -141,3 +162,7 @@
#define COUNT_INTERACTION // Count the amount of interactions.
+
+
+#endif
+