From b893608a5775618892dbbec83bae2edb506969b8 Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Thu, 1 Oct 2020 20:43:00 +0530 Subject: [PATCH] Update README --- README.md | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f131171..214c532 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ -# bfc +# bfc (*.bfe) An extension of a language that shall not be named -*Hello world* +*HelloWorld.bfe* ``` -[-7>+<]>-.-[->+5<]>++.+7..+3.[-3>+<]>-5.--[->+4<]>-.-8.+3.-6.-8. ``` + ## Setup oddities 1. Copy antlr4's cpp libs to `./libs/antlr4`. (Please take care that the include folder points straight to the files not to `antlr-runtime`) @@ -20,6 +21,36 @@ An extension of a language that shall not be named - [X] Number shorthand - [X] Loop statements - [ ] Shorthand segments -- [ ] Processing +- [X] Processing - [X] Translate to bf - - [ ] Execute result \ No newline at end of file + - [X] Execute results + +## Syntax + +**Basic** + +```bf +,. IO +<> Address manipulation ++- Value manipulation +[] Looping construct +``` +**Comments** + +`//` - Single Line + +`/* */` - Multi Line + +**Repeats** + +``` + +() +``` +Eg. +``` ++65. //prints A +> +(+65>)3 //stores AAA +(<.)3 //prints AAA +``` \ No newline at end of file