misc/kforth: Add system status, work on vocab, better write_num.

- Now system structure includes a status variable and an associated
  function for writing the status out.
- Adding more words to the builtin dictionary.
- write_num round 3.
- Include option to not print the stack each iteration.
This commit is contained in:
2018-06-05 15:40:55 -07:00
parent 3b284b7c08
commit 6a49675314
14 changed files with 1080 additions and 97 deletions
+2
View File
@@ -5,6 +5,8 @@
#include <stdint.h>
typedef int32_t KF_INT;
typedef int64_t KF_LONG;
constexpr uint8_t STACK_SIZE = 128;
#endif
+2
View File
@@ -17,6 +17,8 @@ public:
// Line I/O
bool rdln(char *buf, size_t len, size_t *readlen);
void wrln(char *buf, size_t len);
void newline(void) { this->wrch('\n'); };
private:
};