Git Product home page Git Product logo

brain-turtle's Introduction

brain-turtle

A brain library for generating turtle graphics commands that could potentially be interpreted to draw awesome turtle based graphics!

NOTE: This is not a working example of anything yet. This library is being developed so that future versions of the language will be able to use it. This gives us an idea of what a full library in brain would look like.

Example

use package turtle;

for _ in 0..3 {
  turtle::forward(100);
  turtle::turn(120);
}

Future Enhancements

These are enhancements that could happen very soon, but we are just not sure how yet.

  • Getting values for turtle properties (pen::is_down(), etc.)
    • This is a hard problem because we don't keep any state so we would have to query with an output command and then read/parse input. Parsing is hard because we don't have a very sophisticated IO model. Maybe with a good, buffered IO library we could support parsing. This means that we would have to wait for the allocator to get implemented.
  • Unit tests
    • This will require a unit testing framework to be built.

Far Future Enhancements

  • Floating point arguments

brain-turtle's People

Contributors

sunjay avatar

Watchers

James Cloos 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.