summaryrefslogtreecommitdiff
path: root/opfuncs.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-08-05 20:26:05 +0200
committertomsmeding <tom.smeding@gmail.com>2016-08-06 10:10:32 +0200
commitf67988fbfde6ad8a91466ef5d4227dcf9e5db6ce (patch)
treedb85d3936f717331c3eeed4fae43e5ed43324be9 /opfuncs.h
parente6bb770a52980ef3d85c2d4b93fb240c026ce7f7 (diff)
Working preliminary version of parser
Diffstat (limited to 'opfuncs.h')
-rw-r--r--opfuncs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/opfuncs.h b/opfuncs.h
new file mode 100644
index 0000000..a5e212c
--- /dev/null
+++ b/opfuncs.h
@@ -0,0 +1,8 @@
+#pragma once
+
+int precedence(const char *op);
+int precedence_len(const char *op,const int len);
+int associativity(const char *op);
+int associativity_len(const char *op,const int len);
+int parseoplength(const char *op);
+const char* opconststring_len(const char *op,const int len);