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-02-27 19:59:29 -08:00
parent 3b284b7c08
commit 6a49675314
14 changed files with 1080 additions and 97 deletions

View File

@@ -1,7 +1,9 @@
CXXSTD := c++14
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -g -O0
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -Os -static
LDFLAGS := -static
OBJS := linux/io.o \
io.o \
system.o \
parser.o \
word.o \
dict.o \
@@ -11,7 +13,8 @@ TARGET := kforth
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(CFLAGS) -o $@ $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
strip $@
clean:
rm -f $(OBJS) $(TARGET)