aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-07-05 00:15:55 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-07-05 00:15:55 +0300
commit5b8c61db1fcfaa9733a5287672faa93d0085d718 (patch)
tree6b449549f0ad4382926b35ce04f1455d3e09313b
parente82c73d2b57e58894d8c93fc720559df6392d58b (diff)
downloadbcgen-5b8c61db1fcfaa9733a5287672faa93d0085d718.tar.gz
bcgen-5b8c61db1fcfaa9733a5287672faa93d0085d718.zip
make repo a bit cleaner
-rw-r--r--.gitignore1
-rw-r--r--README.md29
-rwxr-xr-xexample/execbin93744 -> 0 bytes
-rw-r--r--rules.py4
4 files changed, 4 insertions, 30 deletions
diff --git a/.gitignore b/.gitignore
index a9b52b0..9feb4eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
gen/*
*.o
+example/exec
diff --git a/README.md b/README.md
index 1bb5875..84b4376 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,6 @@
# Byte code generator
-Separate project for now, but essentially create a program that takes some input
-(for example)
-```
-addr(_GGG_)
-{
- R0 = R1 + R2;
- return NEXT_INSN;
-}
+A relatively simple script that generates pretty fast bytecode systems.
+Relies on some non-standard C, but should in theory be completely portable.
-addi(_GGi_)
-{
- R0 = R1 + IMM;
- return NEXT_INSN;
-}
-
-beqi(RGi__)
-{
- if (R0 == IMM)
- return BRANCH;
-
- return NEXT_INSN;
-}
-```
-
-and generates implementations with registers fixed and some kind of muxing
-compilation functions that selects the correct implementation from some runtime
-`compile_addr(1, 2, 3);`.
+See `example` for how to use.
diff --git a/example/exec b/example/exec
deleted file mode 100755
index 2189325..0000000
--- a/example/exec
+++ /dev/null
Binary files differ
diff --git a/rules.py b/rules.py
deleted file mode 100644
index b0aabbf..0000000
--- a/rules.py
+++ /dev/null
@@ -1,4 +0,0 @@
-g = BCGen(r = 7, f = 6, head='gbreg_t t = 0;')
-g.rule('addr', '_RRR__', 'R0 = R1 + R2;')
-g.rule('addr_f', '_FFF__', 'F0 = F1 + F2;')
-g.rule('bltr', 'rRR__I', 'if (R0 < R1) JUMP(IMM);')