Giter Club home page Giter Club logo

frozen-syntax's Introduction

Frozen Syntax

frozen-syntax's People

Contributors

hypersonic avatar joshua-chin avatar zanesterling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

frozen-syntax's Issues

Create basic execution environment for input code

Code needs to execute in an environment. This environment should contain, at least:

  • Variables
  • A parent environment, which or none for the root environment
  • A context, which is the object executing this code (an agent, the player, etc)

Plan client-server framework

Sketch out and implement the skeleton of the framework for client-server interactions.
Security can come later.

Provide a way to create "native" functions

A native function would be one that is implemented in an underlying language (in our case, Python).

Really, what we need is an internal representation of a function.

Implement Events

Right now there's a function that get called whenever an event is created, but it doesn't do anything. It should handle events.

Create an interface between the engine and interpreter

The lisp stuff will be have the world passed into it, and will therefore be able to call whatever functions it needs to. However, Seabass needs to know what those functions are so that they can exist. There should also be a function that will be called by the engine that performs a single beta reduction timestep's worth of beta reductions on a player's lisp code.

Optimize event list before sending to client

The engine generates a large number of events that become outdated later in the timestep. In order to avoid complication of the engine with concerns about generating optimized messages, there should be an optimizer that the engine calls before serializing the events, which removes and redundant events in order to minimize heavy bandwidth usage.

Add walls

Walls need to exist on the engine's side.

Parser generates incorrect ASTs

Currently, the parser generates the AST with the first argument as a value.

Take the code
(define discriminant (lambda (a b c) (- (* b b) (* 4 a c))))

Currently, the AST generated would look like:

               define
              /      \
    discriminant     lambda
                      /  \
                     a    -_____
                    / \    \    \
                   b   c    *    *__
                           / \   /\ \
                          b   b  4 a c

It should actually look like:

        ._________________
       / \                \
  define  discriminant     .___________
                          / \          \
                     lambda  .          .____________
                           / | \       / \           \
                          a  b  c     -   .           .____
                                        / | \       / | \  \
                                       *  b  b     *  4  a  c

Basically, the first element of the list should not be set as a value in the ASTNode. Values should only be used for leaves.

Generate maps

Maps will be made of walls, need to be interesting and symmetrical (or at least fair)

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.