Fegeya FreeBrain - First Look

Hello there! FreeBrain is my esoteric language for fun!
  • Easy-use
  • Antidote for Brainfuck.
  • Written in C++17
  • Simple and intelligent(!) interpreter
Now, look at the Hello World program (sooooooooooooooooooorry for this.)
C-like:
!~ H (uppercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ e (lowercase)
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ l (lowercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ l (lowercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ o (lowercase)
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ Whitespace
!->:>_^>~++++++++++++++++++++++++++++++++<^_<:
!~ W (upper case)
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ o (lowercase)
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ r (lowercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ l (lowercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ d (lowercase)
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ ! (Exclamation mark)
!->:>_^>~+++++++++++++++++++++++++++++++++<^_<:
!~ Newline
[!->:>_^> ? <^_<:] ?* (~++++++++++++++++++++++++++++++++++++++++++++++++++) *? !->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<*>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:

Output:
- Hello World! (newline)

Is This FreeBrain Code How to Interprets from Intelligentpreter (!)

* !-> (Print Keyword)
* :>_^> (Output Begin)
* <^_<: (Output End)

* ~ (Integer Variable)

Okay. You are learned FreeBrain's basics. Let's get started.

Print 1 and -1 Variables.

C-like:
!~ 5
~+++++               
!~ Newline
[!->:>_^> ? <^_<:] ?* (~++++++++++++++++++++++++++++++++++++++++++++++++++) *? !->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<*>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:
!~ -5
+++++~
!~ Newline
[!->:>_^> ? <^_<:] ?* (~++++++++++++++++++++++++++++++++++++++++++++++++++) *? !->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<*>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:

!~ Output : 5\n-5\n

Output:
1
-1
(newline)

Comment Lines:
FreeBrain only supports Single Comment Line type.

Example:

C-like:
!~ Comment
!~ Line!

Endless Loop (Oh.)

Example:

C-like:
!~ Every-time prints F within loop.
[!->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:] {~~}

Output:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFfff.

(Endless loop)

Loop:
Example:


C-like:
!~ Prints H
!->:>_^>~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ Prints e
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ Prints ll (Loop)
[!->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:] {~++}
!~ Prints o
!->:>_^>~+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<^_<:
!~ Prints Exclamation mark * 3 (Loop)
[!->:>_^>(~+++++++++++++++++++++++++++++++++)<^_<:] {~+++}
!~ Newline
[!->:>_^> ? <^_<:] ?* (~++++++++++++++++++++++++++++++++++++++++++++++++++) *? !->:>_^>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<*>(~++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)<^_<:

Output:
Hello!!! (newline)

Print Half Pyramid!
Example:

C-like:
!~ Differences: This is prints:
!~ This code doesn't use ASCII method directly.(|key| + n)
!~ Note: Algorithm Method:
!~ x = len(|*|) + \n
!~ Example (Algorithm Method):
!~ len(n) = len(1 + \n) + ... + len(n)
!~ len(3) = len(1 + \n) + len(2 + \n) + len(3)
!~ *
!~ * *
!~ * * *
[!->:>_^>(~++++++++++++++++++++++++++++++++++++++++++)<^_<:] {~+} {^~+++^}
Output:
*
**
***

Tips!: Use Own ASCII-Code Generator for ~+++++ like codes.
Tips!: ASCII Code Table: ASCII Code - The extended ASCII table
Note: FreeBrain uses ASCII-Code for Prints.
Example for ASCII-Code Generator:

Bash:
freebr --g
(input) : 12
~++++++++++++

Source Code:

Note: FreeBrain licensed under the terms of MIT License, If you want use this project, please fork this and use under the MIT License. Goodbye!



Tests:
  • İnanılmaz
İfadeler: Kerem00

Yorumlar

Gösterilecek yorum bulunamadı.

Blog girdisi detayları

Ekleyen
ferhatgec
Okuma süresi
2 dakika okuma
Görüntüleme
218
Son güncelleme

Yazılım kategorisindeki diğer girdiler

ferhatgec adlı kullanıcının diğer girdileri

Bu girdiyi paylaş

Geri
Yukarı