aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2015-01-09 21:10:31 +0800
committerJinweiClarkChao <[email protected]>2015-01-09 21:10:31 +0800
commit398335c2bcda0be07938b03a3805310ba2050f7e (patch)
treea41643809084638616a31de441192709b3feed05
parent693913fe9b236b12a987f7c7ad2824c2d776e271 (diff)
downloadbrainfuck-398335c2bcda0be07938b03a3805310ba2050f7e.tar.gz
rm useless
-rw-r--r--HelloWorld.bf (renamed from brainfuck.bf)0
-rw-r--r--README.md7
-rw-r--r--brainfuck.c (renamed from brainfuck/brainfuck/main.cpp)12
-rw-r--r--brainfuck/brainfuck.sln22
-rw-r--r--brainfuck/brainfuck/brainfuck.vcxproj84
-rw-r--r--brainfuck/brainfuck/brainfuck.vcxproj.filters22
6 files changed, 7 insertions, 140 deletions
diff --git a/brainfuck.bf b/HelloWorld.bf
index e0a8381..e0a8381 100644
--- a/brainfuck.bf
+++ b/HelloWorld.bf
diff --git a/README.md b/README.md
index 66b2fa1..f1f0c80 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,13 @@
1brainfuck 1brainfuck
2========= 2=========
3 3
4##Usage:
5```bash
6gcc brainfuck.c -o brainfuck
7./brainfuck HelloWorld.bf
8```
9
10##What's brainfuck
4Brainfuck is represented by an array with 30,000 cells initialized to zero 11Brainfuck is represented by an array with 30,000 cells initialized to zero
5and a data pointer pointing at the current cell. 12and a data pointer pointing at the current cell.
6 13
diff --git a/brainfuck/brainfuck/main.cpp b/brainfuck.c
index 669ab0a..cda6857 100644
--- a/brainfuck/brainfuck/main.cpp
+++ b/brainfuck.c
@@ -1,15 +1,3 @@
1/*
2+ : Increments the value at the current cell by one.
3- : Decrements the value at the current cell by one.
4> : Moves the data pointer to the next cell (cell on the right).
5< : Moves the data pointer to the previous cell (cell on the left).
6. : Prints the ASCII value at the current cell (i.e. 65 = 'A').
7, : Reads a single input character into the current cell.
8[ : If the value at the current cell is zero, skips to the corresponding ] .
9Otherwise, move to the next instruction.
10] : If the value at the current cell is zero, move to the next instruction.
11Otherwise, move backwards in the instructions to the corresponding [ .
12*/
13#include <stdio.h> 1#include <stdio.h>
14#include <stdlib.h> 2#include <stdlib.h>
15#include <string.h> 3#include <string.h>
diff --git a/brainfuck/brainfuck.sln b/brainfuck/brainfuck.sln
deleted file mode 100644
index 97b1599..0000000
--- a/brainfuck/brainfuck.sln
+++ /dev/null
@@ -1,22 +0,0 @@
1
2Microsoft Visual Studio Solution File, Format Version 12.00
3# Visual Studio 2013
4VisualStudioVersion = 12.0.30723.0
5MinimumVisualStudioVersion = 10.0.40219.1
6Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "brainfuck", "brainfuck\brainfuck.vcxproj", "{3C1E6E82-6A2E-4F2C-850E-707F3A84274E}"
7EndProject
8Global
9 GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 Debug|Win32 = Debug|Win32
11 Release|Win32 = Release|Win32
12 EndGlobalSection
13 GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 {3C1E6E82-6A2E-4F2C-850E-707F3A84274E}.Debug|Win32.ActiveCfg = Debug|Win32
15 {3C1E6E82-6A2E-4F2C-850E-707F3A84274E}.Debug|Win32.Build.0 = Debug|Win32
16 {3C1E6E82-6A2E-4F2C-850E-707F3A84274E}.Release|Win32.ActiveCfg = Release|Win32
17 {3C1E6E82-6A2E-4F2C-850E-707F3A84274E}.Release|Win32.Build.0 = Release|Win32
18 EndGlobalSection
19 GlobalSection(SolutionProperties) = preSolution
20 HideSolutionNode = FALSE
21 EndGlobalSection
22EndGlobal
diff --git a/brainfuck/brainfuck/brainfuck.vcxproj b/brainfuck/brainfuck/brainfuck.vcxproj
deleted file mode 100644
index a5a1aca..0000000
--- a/brainfuck/brainfuck/brainfuck.vcxproj
+++ /dev/null
@@ -1,84 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|Win32">
5 <Configuration>Debug</Configuration>
6 <Platform>Win32</Platform>
7 </ProjectConfiguration>
8 <ProjectConfiguration Include="Release|Win32">
9 <Configuration>Release</Configuration>
10 <Platform>Win32</Platform>
11 </ProjectConfiguration>
12 </ItemGroup>
13 <PropertyGroup Label="Globals">
14 <ProjectGuid>{3C1E6E82-6A2E-4F2C-850E-707F3A84274E}</ProjectGuid>
15 <Keyword>Win32Proj</Keyword>
16 <RootNamespace>brainfuck</RootNamespace>
17 </PropertyGroup>
18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20 <ConfigurationType>Application</ConfigurationType>
21 <UseDebugLibraries>true</UseDebugLibraries>
22 <PlatformToolset>v120</PlatformToolset>
23 <CharacterSet>Unicode</CharacterSet>
24 </PropertyGroup>
25 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26 <ConfigurationType>Application</ConfigurationType>
27 <UseDebugLibraries>false</UseDebugLibraries>
28 <PlatformToolset>v120</PlatformToolset>
29 <WholeProgramOptimization>true</WholeProgramOptimization>
30 <CharacterSet>Unicode</CharacterSet>
31 </PropertyGroup>
32 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33 <ImportGroup Label="ExtensionSettings">
34 </ImportGroup>
35 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37 </ImportGroup>
38 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40 </ImportGroup>
41 <PropertyGroup Label="UserMacros" />
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43 <LinkIncremental>true</LinkIncremental>
44 </PropertyGroup>
45 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46 <LinkIncremental>false</LinkIncremental>
47 </PropertyGroup>
48 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49 <ClCompile>
50 <PrecompiledHeader>
51 </PrecompiledHeader>
52 <WarningLevel>Level3</WarningLevel>
53 <Optimization>Disabled</Optimization>
54 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
55 </ClCompile>
56 <Link>
57 <SubSystem>Console</SubSystem>
58 <GenerateDebugInformation>true</GenerateDebugInformation>
59 </Link>
60 </ItemDefinitionGroup>
61 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
62 <ClCompile>
63 <WarningLevel>Level3</WarningLevel>
64 <PrecompiledHeader>
65 </PrecompiledHeader>
66 <Optimization>MaxSpeed</Optimization>
67 <FunctionLevelLinking>true</FunctionLevelLinking>
68 <IntrinsicFunctions>true</IntrinsicFunctions>
69 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
70 </ClCompile>
71 <Link>
72 <SubSystem>Console</SubSystem>
73 <GenerateDebugInformation>true</GenerateDebugInformation>
74 <EnableCOMDATFolding>true</EnableCOMDATFolding>
75 <OptimizeReferences>true</OptimizeReferences>
76 </Link>
77 </ItemDefinitionGroup>
78 <ItemGroup>
79 <ClCompile Include="main.cpp" />
80 </ItemGroup>
81 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
82 <ImportGroup Label="ExtensionTargets">
83 </ImportGroup>
84</Project> \ No newline at end of file
diff --git a/brainfuck/brainfuck/brainfuck.vcxproj.filters b/brainfuck/brainfuck/brainfuck.vcxproj.filters
deleted file mode 100644
index 203a71c..0000000
--- a/brainfuck/brainfuck/brainfuck.vcxproj.filters
+++ /dev/null
@@ -1,22 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup>
4 <Filter Include="源文件">
5 <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6 <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7 </Filter>
8 <Filter Include="头文件">
9 <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10 <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11 </Filter>
12 <Filter Include="资源文件">
13 <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15 </Filter>
16 </ItemGroup>
17 <ItemGroup>
18 <ClCompile Include="main.cpp">
19 <Filter>源文件</Filter>
20 </ClCompile>
21 </ItemGroup>
22</Project> \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)