summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/luma.hh13
-rw-r--r--include/luma/arch.h37
-rw-r--r--include/luma/print.h5
-rw-r--r--include/luma/utf8dec.h5
-rw-r--r--include/luma/utf8enc.h5
5 files changed, 52 insertions, 13 deletions
diff --git a/include/luma.hh b/include/luma.hh
deleted file mode 100644
index ba7ad27..0000000
--- a/include/luma.hh
+++ /dev/null
@@ -1,13 +0,0 @@
-#if !defined(LUMA__HEADER)
-# define LUMA__HEADER
-# include <string>
-using namespace std::literals::string_literals;
-class luma {
-public:
- [[noreturn]] luma(int const argc,char const * * argv);
- ~luma();
-private:
- void arghandl(int const argc, char const * * argv);
- std::basic_string<char> lumafile = ""s;
-};
-# endif
diff --git a/include/luma/arch.h b/include/luma/arch.h
new file mode 100644
index 0000000..b929ce4
--- /dev/null
+++ b/include/luma/arch.h
@@ -0,0 +1,37 @@
+# if !defined(LUMA_HDR_ARCH)
+# define LUMA_HDR_ARCH
+enum luma_arch {
+ // Null
+ luma_arch_null,
+ // Keywords
+ luma_arch_lab,
+ luma_arch_next,
+ // Instructions
+ luma_arch_add,
+ luma_arch_call,
+ luma_arch_cp,
+ luma_arch_div,
+ luma_arch_ex,
+ luma_arch_fac,
+ luma_arch_get,
+ luma_arch_hello,
+ luma_arch_luma,
+ luma_arch_mult,
+ luma_arch_pow,
+ luma_arch_root,
+ luma_arch_sub,
+ // Numbers
+ luma_arch_zero,
+ luma_arch_one,
+ luma_arch_two,
+ luma_arch_three,
+ luma_arch_four,
+ luma_arch_five,
+ luma_arch_six,
+ luma_arch_seven,
+ luma_arch_eight,
+ luma_arch_nine,
+ luma_arch_dek,
+ luma_arch_el,
+};
+# endif
diff --git a/include/luma/print.h b/include/luma/print.h
new file mode 100644
index 0000000..0105940
--- /dev/null
+++ b/include/luma/print.h
@@ -0,0 +1,5 @@
+# if !defined(LUMA_HDR_PRINT)
+# define LUMA_HDR_PRINT
+# include <uchar.h>
+extern void luma_print(char * str,...);
+# endif
diff --git a/include/luma/utf8dec.h b/include/luma/utf8dec.h
new file mode 100644
index 0000000..56ef640
--- /dev/null
+++ b/include/luma/utf8dec.h
@@ -0,0 +1,5 @@
+# if !defined(LUMA_HDR_UTF8DEC)
+# define LUMA_HDR_UTF8DEC
+# include <stdint.h>
+extern uint32_t * luma_utf8enc(char const * str);
+# endif
diff --git a/include/luma/utf8enc.h b/include/luma/utf8enc.h
new file mode 100644
index 0000000..8b9aa25
--- /dev/null
+++ b/include/luma/utf8enc.h
@@ -0,0 +1,5 @@
+# if !defined(LUMA_HDR_UTF8ENC)
+# define LUMA_HDR_UTF8ENC
+# include <stdint.h>
+extern uint8_t const * luma_utf8enc(uint32_t * codep);
+# endif