Git Product home page Git Product logo

openrobot's Introduction

openrobot - A Simple Compile-To-C Language For NXT Programming

Build Status

openrobot is a simple platform for programming NXT robots built atop of NeXT Btye Codes (NBC). At it's core, openrobot takes simple source code as input and generates C output. This C output is then fed into the nbc compiler where NXT instructions can be generated.

##The Language

openrobot has a language of its own that is heavily based off Python. Here is some sample source code:

# This is a test program to be parsed

speed = 4

def move():
  speed = speed + 1
  print speed

def main():
  move()

##How To Use

Setting up openrobot is quite easy. Make sure you have Python 2.7.

git clone https://github.com/shrimpboyho/openrobot.git
cd openrobot

From here you can run the tests.

python robotpy tests/test.py

##Why?

openrobot was created with education in mind. By exposing students and hobbyists to a simple programming language, the transition from GUI based programming to text based programming can be easily done. openrobot avoids archaic syntax and represents logic in a manner heavily based off of python.

openrobot's People

Contributors

nnj1 avatar shrimpboyho avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

openrobot's Issues

Creating gh-pages

So I created the gh-pages branch, but since you created the repository, I don't have access to change the settings. So, Github hasn't generated an IO page for us just yet. Could you take care of this?

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.