aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-27 08:13:56 +0200
committerJulien Dessaux2021-09-27 08:13:56 +0200
commit52321c4777b367955fcf454f48a836e5fd073039 (patch)
tree0ef5af0889335fd7140b7ef1e947eb564b7be588
parentFixed system info greatest point calculation after re-reading the spec (diff)
downloadgofunge98-52321c4777b367955fcf454f48a836e5fd073039.tar.gz
gofunge98-52321c4777b367955fcf454f48a836e5fd073039.tar.bz2
gofunge98-52321c4777b367955fcf454f48a836e5fd073039.zip
Added README
-rw-r--r--README.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b366ad1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,52 @@
+# GoFunge98 : a Funge-98 interpreter written in go
+
+This repository contains code for a go program that can interpret a valid [Funge-98](https://github.com/catseye/Funge-98/blob/master/doc/funge98.markdown) program. It passes the [mycology test suite](https://github.com/Deewiant/Mycology).
+
+Current limitations are :
+- currently does not implement any fingerprints
+- does not implement concurrent execution with the `t` command
+- does not implement file I/O with the `i` and `o` commands
+- does not implement system execution with the `=` command
+
+## Contents
+
+- [Dependencies](#dependencies)
+- [Quick install](#quick-install)
+- [Usage](#usage)
+- [Building](#building)
+
+## Dependencies
+
+go is required. Only go version >= 1.17 on linux amd64 (Gentoo) is being regularly tested.
+
+## Quick Install
+
+```
+go install git.adyxax.org/adyxax/gofunge98/cmd/headless_interpreter@latest
+```
+
+## Usage
+
+Launching the headless_interpreter is as simple as :
+```
+headless_interpreter -f something.b98
+```
+
+The interpreter will then load and execute the specified Funge-98 program until the program normally terminates or is interrupted or killed.
+
+## Building
+
+To run tests, use :
+```
+go test -cover ./...
+```
+
+For a debug build, use :
+```
+go build ./cmd/headless_interpreter/
+```
+
+For a release build, use :
+```
+go build -ldflags '-s -w -extldflags "-static"' ./cmd/headless_interpreter/
+```