aboutsummaryrefslogtreecommitdiff
path: root/src/inpla.y
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2023-01-12 23:23:29 +0900
committerShinya Sato <shinnya.sato@gmail.com>2023-01-12 23:23:29 +0900
commit47df25063a7994b586b4171b52d6eaa61ba9262d (patch)
treed1cec600d25dfd46e4a64817f3ee6aa009c3d6b3 /src/inpla.y
parent747e4413770ee08d503ab11774eac73d29df300a (diff)
downloadinpla-47df25063a7994b586b4171b52d6eaa61ba9262d.tar.gz
inpla-47df25063a7994b586b4171b52d6eaa61ba9262d.zip
v0.10.3
Diffstat (limited to '')
-rw-r--r--src/inpla.y16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inpla.y b/src/inpla.y
index 33f4701..161bd33 100644
--- a/src/inpla.y
+++ b/src/inpla.y
@@ -22,8 +22,8 @@
// ----------------------------------------------
-#define VERSION "0.10.2"
-#define BUILT_DATE "29 December 2022"
+#define VERSION "0.10.3"
+#define BUILT_DATE "12 January 2023"
// ------------------------------------------------------------------
@@ -2969,24 +2969,24 @@ void VMCode_puts(void **code, int n) {
i+=3;
} else if (code[i] == CodeAddr[OP_LOADP_L]) {
- printf("loadpl reg%lu $%ld\n",
+ printf("loadp_l reg%lu $%ld\n",
(unsigned long)code[i+1],
(unsigned long)code[i+2]);
i+=2;
} else if (code[i] == CodeAddr[OP_LOADP_R]) {
- printf("loadpr reg%lu $%ld\n",
+ printf("loadp_r reg%lu $%ld\n",
(unsigned long)code[i+1],
(unsigned long)code[i+2]);
i+=2;
} else if (code[i] == CodeAddr[OP_CHID_L]) {
- printf("chidl $%ld\n",
+ printf("chgid_l $%ld\n",
(unsigned long)code[i+1]);
i+=1;
} else if (code[i] == CodeAddr[OP_CHID_R]) {
- printf("chidr $%ld\n",
+ printf("chgid_r $%ld\n",
(unsigned long)code[i+1]);
i+=1;
@@ -7776,7 +7776,7 @@ int make_rule_oneway(Ast *ast) {
} else {
arity = get_arity_on_ast(ruleAgent_L);
}
- if (arity >= MAX_PORT) {
+ if (arity > MAX_PORT) {
printf("ERROR: Too many arguments of `%s'. It should be MAX_PORT(=%d) or less.\n",
ruleAgent_L->left->sym, MAX_PORT);
return 0;
@@ -7789,7 +7789,7 @@ int make_rule_oneway(Ast *ast) {
} else {
arity = get_arity_on_ast(ruleAgent_R);
}
- if (arity >= MAX_PORT) {
+ if (arity > MAX_PORT) {
printf("ERROR: Too many arguments of `%s'. It should be MAX_PORT(=%d) or less.\n",
ruleAgent_R->left->sym, MAX_PORT);
return 0;