aboutsummaryrefslogtreecommitdiff
path: root/src/as_op.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-03-05 18:31:55 +0800
committerMistivia <i@mistivia.com>2025-03-05 18:31:55 +0800
commit1ce0d45242097a07b7a4ee539a074ec812851a58 (patch)
tree5825213b60c3da442780e2a3fa1bbc0750ab25f1 /src/as_op.h
parent2c228ecb7d373fd3a7150768302ce0ade6714246 (diff)
finish parser
Diffstat (limited to 'src/as_op.h')
-rw-r--r--src/as_op.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/as_op.h b/src/as_op.h
new file mode 100644
index 0000000..ec88670
--- /dev/null
+++ b/src/as_op.h
@@ -0,0 +1,14 @@
+#ifndef FVM_AS_OP_H_
+#define FVM_AS_OP_H_
+
+enum op {
+ ADD, SUB, MUL, DIV, MOD, EQ,
+ // place holder for the end of the table
+ OPEND
+};
+typedef enum op Op;
+
+Op str2op(const char *str);
+
+#endif
+