Update README

This commit is contained in:
2020-10-01 20:43:00 +05:30
parent 2b8f716038
commit b893608a57

View File

@@ -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
- [X] Execute results
## Syntax
**Basic**
```bf
,. IO
<> Address manipulation
+- Value manipulation
[] Looping construct
```
**Comments**
`//` - Single Line
`/* */` - Multi Line
**Repeats**
```
<symbol><number>
(<symbols>)<number>
```
Eg.
```
+65. //prints A
>
(+65>)3 //stores AAA
(<.)3 //prints AAA
```