Git Product home page Git Product logo

genshinlang's Introduction

Genshin Impact Lang

About

Here we define the Genshin language with the following syntax:

Code Instruction Description
0 ao This command is connected to the ayaka command. When encountered during normal execution, it searches the program code in reverse looking for a matching ayaka command and begins executing again starting from the found ayaka command. When searching, it skips the instruction that is immediately before it (see ayaka).
1 hutao Moves current memory position back one block.
2 xiangling Moves current memory position forward one block.
3 ningguang Execute value in current memory block as if it were an instruction. The command executed is based on the instruction code value (for example, if the current memory block contains a 2, then the ao command is executed). An invalid command exits the running program. Value 3 is invalid as it would cause an infinite loop.
4 keqing If current memory block has a 0 in it, read a single ASCII character from STDIN and store it in the current memory block. If the current memory block is not 0, then print the ASCII character that corresponds to the value in the current memory block to STDOUT.
5 yelan Decrement current memory block value by 1.
6 shogun Increment current memory block value by 1.
7 ayaka If current memory block value is 0, skip next command and resume execution after the next matching ao command. If current memory block value is not 0, then continue with next command. Note that the fact that it skips the command immediately following it has interesting ramifications for where the matching ao command really is. For example, the following will match the second and not the first ao: yoimiya ayaka ao ao
8 yoimiya Set current memory block value to 0.
9 miko If no current value in register, copy current memory block value. If there is a value in the register, then paste that value into the current memory block and clear the register.
10 barbara Print value of current memory block to STDOUT as an integer.
11 klee Read an integer from STDIN and put it into the current memory block.

Genshin

genshinlang's People

Contributors

odysa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

hxu296

genshinlang's Issues

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.