Code Monkey home page Code Monkey logo

anysemicolon's Introduction

AnySemicolon

Brainf**kの再実装; セミコロンとそれに似た文字


このリポジトリは実装が完了したのでアーカイブされました

目次

記法

諸情報

配列の初期値は0です
配列の要素数は300000です

基本(文字兼用)

  • ; - インクリメント
    ! or iの後に付けて回数を表す

  • : - デクリメント

ポインタ

  • ! - ポインタをインクリメント
    !;; - ポインタを1後に -> インクリメントx2

  • i - ポインタをデクリメント

繰り返し

  • <, >
    < ... >...の作業を、配列の要素が初期値である0でない間繰り返す

I/O

  • j - そのポインタの値を出力
  • ? - そのポインタに値を入力

In Brainf**k:

++++++++++ # 繰り返し回数
[
    >+++++++
    >++++++++++
    >+++++++++++
    >+++
    >+++++++++
    >+
    <<<<<<-
]
>++.
>+.
>--..
+++.
>++.
>---.
<<.
+++.
------.
<-.
>>+.
>>.

In anySemicolon:

;;;;;;;;;; # 繰り返し回数
<
    !;;;;;;;
    !;;;;;;;;;;
    !;;;;;;;;;;;
    !;;;
    !;;;;;;;;;
    !;
    iiiiii:
>
!;;j
!;j
!::jj
;;;j
!;;j
!:::j
iij
;;;j
::::::j
i:j
!!;j
!!j

Result:

Hello, world!

インストール

  1. Go言語をインストール(Go v1.19.4で開発)
  2. このリポジトリをクローン
  3. プロジェクトルートで、go buildを実行
  4. ./anySemicolon <FILENAME>を実行

anysemicolon's People

Contributors

hthcrwzy avatar

Watchers

 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.