-
Notifications
You must be signed in to change notification settings - Fork 0
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
970bc38
commit 1f850d9
Showing
7 changed files
with
29 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
all: | ||
(cd src && make) | ||
mkdir -p build | ||
mv src/temp/BrainMachina build/ | ||
mv src/temp/brainfvck build/ | ||
rm -rf src/temp | ||
|
||
hello_world_1: | ||
./build/BrainMachina ./examples/hello_world_1.bm | ||
./build/brainfvck ./examples/hello_world_1.bm | ||
|
||
hello_world_2: | ||
./build/BrainMachina ./examples/hello_world_2.bm | ||
./build/brainfvck ./examples/hello_world_2.bm |
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 |
---|---|---|
|
@@ -20,11 +20,11 @@ def run(self): | |
|
||
|
||
setup( | ||
name='BrainMachina', | ||
name='brainfvck', | ||
version='1.0.0', | ||
author='Aly Shmahell', | ||
author_email='[email protected]', | ||
license=license, | ||
url='https://github.com/AlyShmahell/BrainMachina', | ||
url='https://github.com/AlyShmahell/brainfvck', | ||
cmdclass={'install': customInstallClass} | ||
) |
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,24 +1,24 @@ | ||
all: BrainMachina.l BrainMachina.y | ||
all: brainfvck.l brainfvck.y | ||
# calling flex | ||
flex BrainMachina.l | ||
# copying lex.yy.c to BrainMachina.lexer.c | ||
cp lex.yy.c BrainMachina.lexer.c | ||
flex brainfvck.l | ||
# copying lex.yy.c to brainfvck.lexer.c | ||
cp lex.yy.c brainfvck.lexer.c | ||
# removing lex.yy.c | ||
rm lex.yy.c | ||
# calling bison | ||
bison -d BrainMachina.y | ||
# copying BrainMachina.tab.h to BrainMachina.tokens.h | ||
cp BrainMachina.tab.h BrainMachina.tokens.h | ||
# removing BrainMachina.tab.h | ||
rm BrainMachina.tab.h | ||
# copying BrainMachina.tab.c to BrainMachina.c | ||
cp BrainMachina.tab.c BrainMachina.c | ||
# removing BrainMachina.tab.c | ||
rm -rf BrainMachina.tab.c | ||
bison -d brainfvck.y | ||
# copying brainfvck.tab.h to brainfvck.tokens.h | ||
cp brainfvck.tab.h brainfvck.tokens.h | ||
# removing brainfvck.tab.h | ||
rm brainfvck.tab.h | ||
# copying brainfvck.tab.c to brainfvck.c | ||
cp brainfvck.tab.c brainfvck.c | ||
# removing brainfvck.tab.c | ||
rm -rf brainfvck.tab.c | ||
# making temp | ||
mkdir temp -p | ||
# compiling BrainMachina.tab.c | ||
g++ BrainMachina.c -o temp/BrainMachina -std=c++11 | ||
# removing BrainMachina.c, BrainMachina.tokens.h and BrainMachina.lexer.c | ||
rm -rf BrainMachina.c BrainMachina.tokens.h BrainMachina.lexer.c | ||
# compiling brainfvck.tab.c | ||
g++ brainfvck.c -o temp/brainfvck -std=c++11 | ||
# removing brainfvck.c, brainfvck.tokens.h and brainfvck.lexer.c | ||
rm -rf brainfvck.c brainfvck.tokens.h brainfvck.lexer.c | ||
|
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,6 +1,6 @@ | ||
%{ | ||
#include <stdio.h> | ||
#include "BrainMachina.tokens.h" | ||
#include "brainfvck.tokens.h" | ||
int line = 1; | ||
%} | ||
|
||
|
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