Giter Site home page Giter Site logo

bf-runtime's Introduction

๐Ÿ‘‹ Hey, I'm Henry Langmack!

  • ๐Ÿ“ I'm 16, and I'm currently living in New Jersey.
  • ๐Ÿ•’ I've been programming since I was 9 and was introduced by a cousin.
  • ๐Ÿ’ป Shortly after I started attending KidOYO during summers and did student mentor work in the summer of 2020. Recently, I've been shipping a lot of apps using Flutter and SwiftUI. Interesed in SAAS.

bf-runtime's People

Contributors

henry-lang avatar

Watchers

 avatar

bf-runtime's Issues

Bug with nested loops

When the program encounters a closing bracket (']'), from what I understood, it sets program->current to the last opening bracket, which causes problems when you have nested loops. This can be fixed implementing the following:

  • Create an char** array which is your stack
  • Every time you encounter a [, loop through the entire program (to the right), and with each '[' you encounter, add its position into the stack, for each ']' you encounter, remove the last position from the stack. When you encounter ']' that removes the last element from the stack, that is the corresponding bracket
  • Do the same thing in reverse every time you encounter a ].

I don't know if this is the most efficient way to do this, but it works, and that's enough for me

If you want an example just look at my implementation.

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.