Update README
This commit is contained in:
39
README.md
39
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
|
||||
- [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
|
||||
```
|
Reference in New Issue
Block a user