Giter Club home page Giter Club logo

whiteboard's Introduction

whiteboard

whiteboard is a language for implementing solutions on real whiteboard

Whiteboard language is a C-like language designed to encode most the conventions used during coding sessions on physical whiteboard during interviews. It doesn't have a compiler only a human based interpreter where exact flow is agreed on by all participating parties. It has implicit garbage collector and unlimited amount of memory. Only single thread execution is supported in first version.

types

Only following types are supported:

  • int
  • bool
  • array
  • String
  • user defined class

All fields in a class are public and can be accessed directly. Reasonable constructor is implicitly defined.

functions

Even the language modeled from Java functions are allowed. Implicitly they are public static.

'result' is a special variable. If declared it will be used as returned value at the end of function.

syntax

All semicolons are optional even in places where lack of one leads to ambiguity. In this case most reasonable case will chosen by the interpreter. This rule apply to other cases of ambiguity.

recursion

TCO is supported. Stack size is reasonably large.

library

Standard library represents all variations of all existing standard libraries including future ones. All typos are resolved reasonably (see above).

context

Verbal expressions play a role of execution context which injects working code in arbitrary places in the whiteboard. The interpreter must take it in account in addition to a photo of main program.

whiteboard's People

Contributors

rusabd avatar

Watchers

 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.