First implementation Toy Forth interpreter

This commit is contained in:
Fabio Scotto di Santolo
2025-11-19 18:10:08 +01:00
commit 577e38f36b
3 changed files with 247 additions and 0 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
##
# Toy Forth
#
# @file
# @version 0.1
CC=gcc
CFLAGS=-W -Wall -O2
SRC=toyforth.c
OUT=toyforth
all: $(OUT)
$(OUT): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $@
run: $(OUT)
./$(OUT) program.tf
clean:
rm -f $(OUT)
# end