diff options
| author | Mistivia <i@mistivia.com> | 2025-03-05 18:31:55 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-05 18:31:55 +0800 |
| commit | 1ce0d45242097a07b7a4ee539a074ec812851a58 (patch) | |
| tree | 5825213b60c3da442780e2a3fa1bbc0750ab25f1 /src/as_op.h | |
| parent | 2c228ecb7d373fd3a7150768302ce0ade6714246 (diff) | |
finish parser
Diffstat (limited to 'src/as_op.h')
| -rw-r--r-- | src/as_op.h | 14 |
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 + |
