Git Product home page Git Product logo

brainrs's People

Contributors

deepsourcebot avatar hipycas avatar

Stargazers

 avatar

Watchers

 avatar

brainrs's Issues

Function definitions

Allow definition of custom "function", with optional parameters like this:

:f:[++++<-]; Optional parenthesis for no parameters
:g(t): [t<-]; Parameters are just pieces of bf code that can be executed

Function definitions start with : and end with :, and in between the function name which must be a single character not already used and the parameters inside parenthesis. The end of the function definition is determined by a semicolon (;).

Brainf**k project framework (like cargo)

brained (name idea) is a CLI tool to ease the development of Brainf**k projects. Under the hood, it makes use of the brainrs interpreter, and gives you a project structure, build and run pipeline and tools and a easier way of working with your code.

Project structure

project_folder/
 |-- src/
 |     |-- main.bf
 |     |-- funcs.bf
 |     |-- ... (other code)
 |-- build/ (generated build files)
 |-- Brained.toml (configuration file)

All Brainf**k code files should be placed in the src directory, where all will be passed as included files and then main.rs will be the last to be executed. All output, if any, would go to the build folder. The Brained.toml file takes care of dependencies and all data related to the project.

File execution order

If your files should execute in any specific order, you can achieve so by indicating it in the Brained.toml file.

Include files

Before running the main input code, allow to pass with the -i flag a series of other code files that should be run before, and share the tape with the main file, thus allowing for code splitting functionalities.

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.