Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
903f7b2
commit 36371fc
Showing
21 changed files
with
1,714 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
# Project name | ||
project(brainfuck C) | ||
|
||
set (brainfuck_VERSION_MAJOR 2) | ||
set (brainfuck_VERSION_MINOR 2) | ||
set (brainfuck_VERSION_PATCH 0) | ||
|
||
# Set directories. | ||
set(brainfuck_VERSION_MAJOR 2) | ||
set(brainfuck_VERSION_MINOR 4) | ||
set(brainfuck_VERSION_PATCH 0) | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include) | ||
|
||
add_definitions("-Wall -g") | ||
add_executable(brainfuck src/main.c src/brainfuck.c src/brainfuck.h) | ||
add_library(libbrainfuck STATIC src/brainfuck.c) | ||
set_target_properties(libbrainfuck PROPERTIES PREFIX "") | ||
add_executable(brainfuck src/main.c) | ||
target_link_libraries(brainfuck libbrainfuck) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
++++++++[->-[->-[->-[-]<]<]<] | ||
>++++++++[<++++++++++>-]<[>+>+<<-]>-.>-----.> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
>+++++++++[<+++++++++++>-]<[>[-]>[-]<<[>+>+<<-]>>[<<+>>-]>>> | ||
[-]<<<+++++++++<[>>>+<<[>+>[-]<<-]>[<+>-]>[<<++++++++++>>>+< | ||
-]<<-<-]+++++++++>[<->-]>>+>[<[-]<<+>>>-]>[-]+<<[>+>-<<-]<<< | ||
[>>+>+<<<-]>>>[<<<+>>>-]>[<+>-]<<-[>[-]<[-]]>>+<[>[-]<-]<+++ | ||
+++++[<++++++<++++++>>-]>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>- | ||
]<<<<<<.>>[-]>[-]++++[<++++++++>-]<.>++++[<++++++++>-]<++.>+ | ||
++++[<+++++++++>-]<.><+++++..--------.-------.>>[>>+>+<<<-]> | ||
>>[<<<+>>>-]<[<<<<++++++++++++++.>>>>-]<<<<[-]>++++[<+++++++ | ||
+>-]<.>+++++++++[<+++++++++>-]<--.---------.>+++++++[<------ | ||
---->-]<.>++++++[<+++++++++++>-]<.+++..+++++++++++++.>++++++ | ||
++[<---------->-]<--.>+++++++++[<+++++++++>-]<--.-.>++++++++ | ||
[<---------->-]<++.>++++++++[<++++++++++>-]<++++.----------- | ||
-.---.>+++++++[<---------->-]<+.>++++++++[<+++++++++++>-]<-. | ||
>++[<----------->-]<.+++++++++++..>+++++++++[<---------->-]< | ||
-----.---.>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>>+++ | ||
+[<++++++>-]<--.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<. | ||
><+++++..--------.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++ | ||
++++++++++++.>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<++ | ||
+++++++>-]<--.---------.>+++++++[<---------->-]<.>++++++[<++ | ||
+++++++++>-]<.+++..+++++++++++++.>++++++++++[<---------->-]< | ||
-.---.>+++++++[<++++++++++>-]<++++.+++++++++++++.++++++++++. | ||
------.>+++++++[<---------->-]<+.>++++++++[<++++++++++>-]<-. | ||
-.---------.>+++++++[<---------->-]<+.>+++++++[<++++++++++>- | ||
]<--.+++++++++++.++++++++.---------.>++++++++[<---------->-] | ||
<++.>+++++[<+++++++++++++>-]<.+++++++++++++.----------.>++++ | ||
+++[<---------->-]<++.>++++++++[<++++++++++>-]<.>+++[<-----> | ||
-]<.>+++[<++++++>-]<..>+++++++++[<--------->-]<--.>+++++++[< | ||
++++++++++>-]<+++.+++++++++++.>++++++++[<----------->-]<++++ | ||
.>+++++[<+++++++++++++>-]<.>+++[<++++++>-]<-.---.++++++.---- | ||
---.----------.>++++++++[<----------->-]<+.---.[-]<<<->[-]>[ | ||
-]<<[>+>+<<-]>>[<<+>>-]>>>[-]<<<+++++++++<[>>>+<<[>+>[-]<<-] | ||
>[<+>-]>[<<++++++++++>>>+<-]<<-<-]+++++++++>[<->-]>>+>[<[-]< | ||
<+>>>-]>[-]+<<[>+>-<<-]<<<[>>+>+<<<-]>>>[<<<+>>>-]<>>[<+>-]< | ||
<-[>[-]<[-]]>>+<[>[-]<-]<++++++++[<++++++<++++++>>-]>>>[>+>+ | ||
<<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>[-]>[-]++++[<++++++++> | ||
-]<.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<.><+++++..--- | ||
-----.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++++++++++++++ | ||
.>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<+++++++++>-]<- | ||
-.---------.>+++++++[<---------->-]<.>++++++[<+++++++++++>-] | ||
<.+++..+++++++++++++.>++++++++[<---------->-]<--.>+++++++++[ | ||
<+++++++++>-]<--.-.>++++++++[<---------->-]<++.>++++++++[<++ | ||
++++++++>-]<++++.------------.---.>+++++++[<---------->-]<+. | ||
>++++++++[<+++++++++++>-]<-.>++[<----------->-]<.+++++++++++ | ||
..>+++++++++[<---------->-]<-----.---.+++.---.[-]<<<] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>++++++++++>+>+[ | ||
[+++++[>++++++++<-]>.<++++++[>--------<-]+<<<]>.>>[ | ||
[-]<[>+<-]>>[<<+>+>-]<[>+<-[>+<-[>+<-[>+<-[>+<-[>+<- | ||
[>+<-[>+<-[>+<-[>[-]>+>+<<<-[>+<-]]]]]]]]]]]+>>> | ||
]<<< | ||
] |
Oops, something went wrong.