diff --git a/README.md b/README.md index 2c97d32..3e49fbc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ ## B.F.G. -[![Go](https://github.com/tristanmorgan/bfg/actions/workflows/go-test-build.yml/badge.svg)](https://github.com/tristanmorgan/bfg/actions/workflows/go-test-build.yml) +* [![license MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) +* [![GoReportCard](https://goreportcard.com/badge/github.com/tristanmorgan/bfg)](https://goreportcard.com/report/github.com/tristanmorgan/bfg) +* [![Go](https://github.com/tristanmorgan/bfg/actions/workflows/go-test-build.yml/badge.svg)](https://github.com/tristanmorgan/bfg/actions/workflows/go-test-build.yml) BFG is an optimised [Brainfuck](https://esolangs.org/wiki/Brainfuck) interpreter written in Go. diff --git a/sample/ascii.bf b/sample/ascii.bf new file mode 100755 index 0000000..fa324a7 --- /dev/null +++ b/sample/ascii.bf @@ -0,0 +1,16 @@ +#!/usr/bin/env bf + +8x12=96 +++++++++ +[>++++++++++++<-] + +start at 32 +++++++++++ +++++++++++ +++++++++++ +++ +count down 96 and print up from space +>[-<.+>] + +new line +++++++++++. diff --git a/sample/rev.bf b/sample/rev.bf new file mode 100755 index 0000000..807994a --- /dev/null +++ b/sample/rev.bf @@ -0,0 +1,15 @@ +#!/usr/bin/env bf +[reverse lines of text written by Tristan Morgan] +,+ +[ + ----------- + [ + >,---------- + ] + < + [ + ++++++++++.< + ] + ++++++++++. + ,+ +]