Giter Site home page Giter Site logo

wagakki-band-lang's Introduction

wagakki-band-lang

A programming language with 8 commands below that are named after members of Wagakki Band. This language is a deriverable of a programming language called Brainf*ck.

Brainf*ck command wagakki-band-lang command description
> 山葵 Increment the data pointer (to point to the next cell to the right).
< 黒流 Decrement the data pointer (to point to the next cell to the left).
+ いぶくろ聖志 Increment (increase by one) the byte at the data pointer.
- 蜷川べに Decrement (decrease by one) the byte at the data pointer.
. 鈴華ゆう子 Output the byte at the data pointer.
, 亜沙 Accept one byte of input, storing its value in the byte at the data pointer.
[ 神永大輔 If the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching ] command.
] 町屋 If the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching [ command.

How to build

Bild the project with Gradle wrapper script.

Unix/Mac:

./gradlew build

Windows:

gradlew.bat build

After running the command above, archive files will be generated under build/distributions.

$PROJECT_DIR/build/distribution
wagakki-band-lang-0.0.1-SNAPSHOT.tar
wagakki-band-lang-0.0.1-SNAPSHOT.zip

Extract either file above, then you can find the file structure as below.

wagakki-band-lang-0.0.1-SNAPSHOT
├── bin
│   ├── wagakki-band-lang
│   └── wagakki-band-lang.bat
└── lib
    ├── eclipse-collections-7.0.0.jar
    ├── eclipse-collections-api-7.0.0.jar
    └── wagakki-band-lang-0.0.1-SNAPSHOT.jar

Then you can execute wagakki-band-lang as below.

Unix/Mac:

bin/wagakki-band-lang source-file-path

Windows:

bin/wagakki-band-lang.bat source-file-path

Program examples

Hello World

hello_world.wgb:

山葵 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志
神永大輔 黒流 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 山葵
蜷川べに 町屋 黒流 鈴華ゆう子 山葵 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 
いぶくろ聖志 神永大輔 黒流 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 山葵 蜷川べに 町屋 黒流 いぶくろ聖志
鈴華ゆう子 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 鈴華ゆう子 
鈴華ゆう子 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 鈴華ゆう子 神永大輔 蜷川べに 町屋 山葵 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 神永大輔 黒流 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 山葵 蜷川べに 町屋 黒流 鈴華ゆう子 山葵 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 神永大輔 黒流 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 山葵 蜷川べに 町屋 黒流 鈴華ゆう子 山葵 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 神永大輔 黒流 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 山葵 蜷川べに 町屋 黒流 鈴華ゆう子 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 鈴華ゆう子 蜷川べに 蜷川べに 
蜷川べに 蜷川べに 蜷川べに 蜷川べに 鈴華ゆう子 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに
鈴華ゆう子 神永大輔 蜷川べに 町屋 山葵 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志
いぶくろ聖志 いぶくろ聖志 神永大輔 黒流 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 山葵 蜷川べに 町屋 黒流
いぶくろ聖志 鈴華ゆう子 神永大輔 蜷川べに 町屋 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 
いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 鈴華ゆう子 

Execute the program:

$ bin/wagakki-band-lang hello_world.wgb 
Hello World!

Add 2 numeric inputs

亜沙 山葵 亜沙 山葵 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 いぶくろ聖志 神永大輔 黒流 
蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 蜷川べに 山葵 蜷川べに 町屋 黒流 黒流 神永大輔 
山葵 いぶくろ聖志 黒流 蜷川べに 町屋 山葵 鈴華ゆう子 

Execute the program:

$ bin/wagakki-band-lang add.wgb        
12
3              
$ bin/wagakki-band-lang add.wgb
34 
7
$ bin/wagakki-band-lang add.wgb
45 
9  

wagakki-band-lang's People

Contributors

itohiro73 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.